Interface AcknowledgementResultCallback<T>
public interface AcknowledgementResultCallback<T>
Provides actions to be executed after a message acknowledgement completes with either success or failure.
- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonFailure(Collection<Message<T>> messages, Throwable t) Execute an action if message acknowledgement fails.default voidonSuccess(Collection<Message<T>> messages) Execute an action after the messages are successfully acknowledged.
-
Method Details
-
onSuccess
Execute an action after the messages are successfully acknowledged.- Parameters:
messages- the messages.
-
onFailure
Execute an action if message acknowledgement fails.- Parameters:
messages- the messages.t- the error thrown by the acknowledgement.
-