Interface AsyncErrorHandler<T>
- Type Parameters:
T- theMessagepayload type.
public interface AsyncErrorHandler<T>
Interface for handling message processing errors async. If the error handler completes normally, the message or
messages will be considered recovered for further processing purposes. If the message should not be considered
recovered, an exception must be returned from the error handler.
- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<Void>handle(Collection<Message<T>> messages, Throwable t) Asynchronously handle the errors thrown processing the givenMessageinstances.default CompletableFuture<Void>Asynchronously handle the errors thrown processing the givenMessage.
-
Method Details
-
handle
Asynchronously handle the errors thrown processing the givenMessage.- Parameters:
message- the message.t- the thrown exception.- Returns:
- a completable future.
-
handle
Asynchronously handle the errors thrown processing the givenMessageinstances.- Parameters:
messages- the messages.t- the thrown exception.- Returns:
- a completable future.
-