public interface SendCallback
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(MessageImpl<?> msg,
SendCallback scb)
used to specify a callback to be invoked on completion of a send operation for individual messages sent in a
batch.
|
CompletableFuture<MessageId> |
getFuture() |
MessageImpl<?> |
getNextMessage()
Return next message in chain
|
SendCallback |
getNextSendCallback() |
void |
sendComplete(Exception e)
invoked when send operation completes
|
void sendComplete(Exception e)
e - void addCallback(MessageImpl<?> msg, SendCallback scb)
msg - message sentscb - callback associated with the messageSendCallback getNextSendCallback()
MessageImpl<?> getNextMessage()
CompletableFuture<MessageId> getFuture()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.