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
FallbackSendAndDontWaitErrorHandlerthat only error logs any issues.
Note: If theSendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandleris used with a Durable Command Bus (e.g. using DurableQueues), then any failing command will not be retried.
Instead useSendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dk.cloudcreate.essentials.reactive.command.SendAndDontWaitErrorHandler
SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler, SendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandler
-
-
Constructor Summary
Constructors Constructor Description FallbackSendAndDontWaitErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(Throwable exception, Object command, CommandHandler commandHandler)Handle an exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)
-
-
-
Method Detail
-
handleError
public void handleError(Throwable exception, Object command, CommandHandler commandHandler)
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
-
-