protected static class AbstractMessageChannel.ChannelInterceptorList extends Object
Modifier and Type | Field and Description |
---|---|
protected List<ChannelInterceptor> |
interceptors |
Constructor and Description |
---|
ChannelInterceptorList(LogAccessor logger) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ChannelInterceptor interceptor) |
void |
add(int index,
ChannelInterceptor interceptor) |
void |
afterReceiveCompletion(Message<?> message,
MessageChannel channel,
Exception ex,
Deque<ChannelInterceptor> interceptorStack) |
void |
afterSendCompletion(Message<?> message,
MessageChannel channel,
boolean sent,
Exception ex,
Deque<ChannelInterceptor> interceptorStack) |
List<ChannelInterceptor> |
getInterceptors() |
int |
getSize() |
Message<?> |
postReceive(Message<?> messageArg,
MessageChannel channel) |
void |
postSend(Message<?> message,
MessageChannel channel,
boolean sent) |
boolean |
preReceive(MessageChannel channel,
Deque<ChannelInterceptor> interceptorStack) |
Message<?> |
preSend(Message<?> messageArg,
MessageChannel channel,
Deque<ChannelInterceptor> interceptorStack) |
boolean |
remove(ChannelInterceptor interceptor) |
ChannelInterceptor |
remove(int index) |
boolean |
set(List<ChannelInterceptor> interceptors) |
protected final List<ChannelInterceptor> interceptors
public ChannelInterceptorList(LogAccessor logger)
public boolean set(List<ChannelInterceptor> interceptors)
public int getSize()
public boolean add(ChannelInterceptor interceptor)
public void add(int index, ChannelInterceptor interceptor)
@Nullable public Message<?> preSend(Message<?> messageArg, MessageChannel channel, Deque<ChannelInterceptor> interceptorStack)
public void postSend(Message<?> message, MessageChannel channel, boolean sent)
public void afterSendCompletion(Message<?> message, MessageChannel channel, boolean sent, @Nullable Exception ex, Deque<ChannelInterceptor> interceptorStack)
public boolean preReceive(MessageChannel channel, Deque<ChannelInterceptor> interceptorStack)
@Nullable public Message<?> postReceive(Message<?> messageArg, MessageChannel channel)
public void afterReceiveCompletion(@Nullable Message<?> message, MessageChannel channel, @Nullable Exception ex, @Nullable Deque<ChannelInterceptor> interceptorStack)
public List<ChannelInterceptor> getInterceptors()
public boolean remove(ChannelInterceptor interceptor)
@Nullable public ChannelInterceptor remove(int index)