T
- The message type this interceptor chain can processpublic class DefaultInterceptorChain<T extends Message<?>> extends Object implements InterceptorChain
Constructor and Description |
---|
DefaultInterceptorChain(UnitOfWork<? extends T> unitOfWork,
Iterable<? extends MessageHandlerInterceptor<? super T>> interceptors,
MessageHandler<? super T> handler)
Initialize the default interceptor chain to dispatch the given
message , through the
chain , to the handler . |
Modifier and Type | Method and Description |
---|---|
Object |
proceed()
Signals the Interceptor Chain to continue processing the message.
|
public DefaultInterceptorChain(UnitOfWork<? extends T> unitOfWork, Iterable<? extends MessageHandlerInterceptor<? super T>> interceptors, MessageHandler<? super T> handler)
message
, through the
chain
, to the handler
.unitOfWork
- The UnitOfWork the message is executed ininterceptors
- The interceptors composing the chainhandler
- The handler for the messagepublic Object proceed() throws Exception
InterceptorChain
proceed
in interface InterceptorChain
Exception
- any exceptions thrown by interceptors or the message handlerCopyright © 2010–2024. All rights reserved.