Class UnitOfWorkControllingCommandBusInterceptor
java.lang.Object
dk.cloudcreate.essentials.components.foundation.reactive.command.UnitOfWorkControllingCommandBusInterceptor
- All Implemented Interfaces:
dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor
public class UnitOfWorkControllingCommandBusInterceptor
extends Object
implements dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor
CommandBusInterceptor that ensures that each Command is handled within a UnitOfWork
by using the UnitOfWorkFactory.withUnitOfWork(CheckedFunction)-
Constructor Summary
ConstructorsConstructorDescriptionUnitOfWorkControllingCommandBusInterceptor(UnitOfWorkFactory<? extends UnitOfWork> unitOfWorkFactory) -
Method Summary
Modifier and TypeMethodDescriptioninterceptSend(Object command, dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptorChain commandBusInterceptorChain) voidinterceptSendAndDontWait(Object command, dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptorChain commandBusInterceptorChain) interceptSendAsync(Object command, dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptorChain commandBusInterceptorChain)
-
Constructor Details
-
UnitOfWorkControllingCommandBusInterceptor
public UnitOfWorkControllingCommandBusInterceptor(UnitOfWorkFactory<? extends UnitOfWork> unitOfWorkFactory)
-
-
Method Details
-
interceptSend
public Object interceptSend(Object command, dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptorChain commandBusInterceptorChain) - Specified by:
interceptSendin interfacedk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor
-
interceptSendAsync
public Object interceptSendAsync(Object command, dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptorChain commandBusInterceptorChain) - Specified by:
interceptSendAsyncin interfacedk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor
-
interceptSendAndDontWait
public void interceptSendAndDontWait(Object command, dk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptorChain commandBusInterceptorChain) - Specified by:
interceptSendAndDontWaitin interfacedk.cloudcreate.essentials.reactive.command.interceptor.CommandBusInterceptor
-