public final class MessageSender extends Object implements AmqpSender
| Modifier and Type | Field and Description |
|---|---|
protected ScheduledExecutorService |
executor |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close() |
void |
closeSync() |
static CompletableFuture<MessageSender> |
create(MessagingFactory factory,
String sendLinkName,
String senderPath) |
String |
getClientId() |
ErrorContext |
getContext() |
protected Exception |
getLastKnownError() |
int |
getMaxMessageSize() |
String |
getSendPath() |
protected CompletableFuture<Void> |
onClose() |
void |
onClose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition) |
void |
onError(Exception completionException) |
void |
onFlow(int creditIssued) |
void |
onOpenComplete(Exception completionException) |
void |
onSendComplete(org.apache.qpid.proton.engine.Delivery delivery) |
CompletableFuture<Void> |
send(Iterable<org.apache.qpid.proton.message.Message> messages) |
CompletableFuture<Void> |
send(org.apache.qpid.proton.message.Message msg) |
protected void |
setClosed() |
protected void |
throwIfClosed() |
protected final ScheduledExecutorService executor
public static CompletableFuture<MessageSender> create(MessagingFactory factory, String sendLinkName, String senderPath)
public String getSendPath()
public int getMaxMessageSize()
public CompletableFuture<Void> send(Iterable<org.apache.qpid.proton.message.Message> messages)
public CompletableFuture<Void> send(org.apache.qpid.proton.message.Message msg)
public void onOpenComplete(Exception completionException)
onOpenComplete in interface AmqpLinkcompletionException - completionException=null if open is successfulpublic void onClose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
public void onError(Exception completionException)
public void onSendComplete(org.apache.qpid.proton.engine.Delivery delivery)
onSendComplete in interface AmqpSenderpublic ErrorContext getContext()
public void onFlow(int creditIssued)
onFlow in interface AmqpSenderprotected CompletableFuture<Void> onClose()
protected Exception getLastKnownError()
public String getClientId()
protected final void setClosed()
public final CompletableFuture<Void> close()
public final void closeSync()
throws EventHubException
EventHubExceptionprotected final void throwIfClosed()
Copyright © 2019. All rights reserved.