Package dk.cloudcreate.essentials.components.foundation.reactive.command
-
Class Summary Class Description DurableLocalCommandBus Provides a JVM local and durable, in regard toDurableLocalCommandBus.sendAndDontWait(Object)/DurableLocalCommandBus.sendAndDontWait(Object, Duration)), variant of theCommandBusconcept
Durability forDurableLocalCommandBus.sendAndDontWait(Object)/DurableLocalCommandBus.sendAndDontWait(Object, Duration)) is delegated toDurableQueues
WhichQueueNamethat is used will be determined by the specifiedDurableLocalCommandBus.getCommandQueueName()
TheRedeliveryPolicyis determined by the specifiedDurableLocalCommandBus.getCommandQueueRedeliveryPolicy()
Note: If theSendAndDontWaitErrorHandlerprovided doesn't rethrow the exception, then the underlyingDurableQueueswill not be able to retry the command.
Due to this theDurableLocalCommandBusdefaults to using theSendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandlerDurableLocalCommandBusBuilder Builder forDurableLocalCommandBusUnitOfWorkControllingCommandBusInterceptor CommandBusInterceptorthat ensures that each Command is handled within aUnitOfWorkby using theUnitOfWorkFactory.withUnitOfWork(CheckedFunction)