Package org.apache.pulsar.client.impl
Interface SendCallback
public interface SendCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.MessageImpl<?>
Return next message in chain.void
invoked when send operation completes.
-
Method Details
-
sendComplete
invoked when send operation completes.- Parameters:
e
-
-
addCallback
used to specify a callback to be invoked on completion of a send operation for individual messages sent in a batch. Callbacks for messages in a batch get chained- Parameters:
msg
- message sentscb
- callback associated with the message
-
getNextSendCallback
SendCallback getNextSendCallback()- Returns:
- next callback in chain
-
getNextMessage
MessageImpl<?> getNextMessage()Return next message in chain.- Returns:
- next message in chain
-
getFuture
CompletableFuture<MessageId> getFuture()- Returns:
- future associated with callback
-