Class SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler
java.lang.Object
dk.cloudcreate.essentials.reactive.command.SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler
- All Implemented Interfaces:
SendAndDontWaitErrorHandler
- Enclosing interface:
- SendAndDontWaitErrorHandler
public static class SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler
extends Object
implements SendAndDontWaitErrorHandler
Fallback
Note: If the
Instead use
SendAndDontWaitErrorHandler that only error logs any issues.Note: If the
SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler is used with a Durable Command Bus (e.g. using DurableQueues),
then any failing command will not be retried.Instead use
SendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandler-
Nested Class Summary
Nested classes/interfaces inherited from interface dk.cloudcreate.essentials.reactive.command.SendAndDontWaitErrorHandler
SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler, SendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(Throwable exception, Object command, CommandHandler commandHandler) Handle an exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)
-
Constructor Details
-
FallbackSendAndDontWaitErrorHandler
public FallbackSendAndDontWaitErrorHandler()
-
-
Method Details
-
handleError
Description copied from interface:SendAndDontWaitErrorHandlerHandle an exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)- Specified by:
handleErrorin interfaceSendAndDontWaitErrorHandler- Parameters:
exception- the exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)command- the command message that caused the exception (can be wrapped in an infrastructure wrapper, such as a Message/QueuedMessage, depending on which transport channel is used)commandHandler- the command handler that can handle the command
-