public class MessageSender extends ClientEntity implements IAmqpSender
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<MessageSender> |
create(MessagingFactory factory,
String sendLinkName,
String senderPath) |
ErrorContext |
getContext() |
protected Exception |
getLastKnownError() |
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) |
close, closeSync, getClientId, setClosed, throwIfClosedpublic static CompletableFuture<MessageSender> create(MessagingFactory factory, String sendLinkName, String senderPath)
public String getSendPath()
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 IAmqpLinkcompletionException - 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 IAmqpSenderpublic ErrorContext getContext()
public void onFlow(int creditIssued)
onFlow in interface IAmqpSenderprotected CompletableFuture<Void> onClose()
onClose in class ClientEntityprotected Exception getLastKnownError()
getLastKnownError in class ClientEntityCopyright © 2017. All rights reserved.