Interface PublishAcknowledgmentCallback
public interface PublishAcknowledgmentCallback
Callbacks holder for publish acknowledgments.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPublishFailure(Throwable cause) Callback to invoke when the message has failed to publish.voidCallback to invoke when the message has been successfully published.
-
Method Details
-
onPublishSuccess
void onPublishSuccess()Callback to invoke when the message has been successfully published. -
onPublishFailure
Callback to invoke when the message has failed to publish.- Parameters:
cause- reason of failure
-