Interface CommandBusInterceptor
-
public interface CommandBusInterceptorAnCommandBusInterceptorallows you to intercept Commands before and after they're being handled by theLocalCommandBus
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ObjectinterceptSend(Object command, CommandBusInterceptorChain commandBusInterceptorChain)Intercept theAbstractCommandBus.send(Object)operationdefault voidinterceptSendAndDontWait(Object commandMessage, CommandBusInterceptorChain commandBusInterceptorChain)Intercept theLocalCommandBus.sendAndDontWait(Object)operationdefault ObjectinterceptSendAsync(Object command, CommandBusInterceptorChain commandBusInterceptorChain)Intercept theAbstractCommandBus.sendAsync(Object)operation
-
-
-
Method Detail
-
interceptSend
default Object interceptSend(Object command, CommandBusInterceptorChain commandBusInterceptorChain)
Intercept theAbstractCommandBus.send(Object)operation- Parameters:
command- the commandcommandBusInterceptorChain- the interceptor chain- Returns:
- the result of processing the command (default implementation just calls
CommandBusInterceptorChain.proceed())
-
interceptSendAsync
default Object interceptSendAsync(Object command, CommandBusInterceptorChain commandBusInterceptorChain)
Intercept theAbstractCommandBus.sendAsync(Object)operation- Parameters:
command- the commandcommandBusInterceptorChain- the interceptor chain- Returns:
- the result of processing the command (default implementation just calls
CommandBusInterceptorChain.proceed())
-
interceptSendAndDontWait
default void interceptSendAndDontWait(Object commandMessage, CommandBusInterceptorChain commandBusInterceptorChain)
Intercept theLocalCommandBus.sendAndDontWait(Object)operation- Parameters:
commandMessage- the command message (can be wrapped in an infrastructure wrapper, such as a Message/QueuedMessage, depending on which transport channel is used)commandBusInterceptorChain- the interceptor chain
-
-