public interface InterceptableChannel
MessageChannel
that
maintains a list ChannelInterceptors
and allows interception of message sending.Modifier and Type | Method and Description |
---|---|
void |
addInterceptor(ChannelInterceptor interceptor)
Add a channel interceptor to the end of the list.
|
void |
addInterceptor(int index,
ChannelInterceptor interceptor)
Add a channel interceptor at the specified index.
|
java.util.List<ChannelInterceptor> |
getInterceptors()
Return the list of configured interceptors.
|
boolean |
removeInterceptor(ChannelInterceptor interceptor)
Remove the given interceptor.
|
ChannelInterceptor |
removeInterceptor(int index)
Remove the interceptor at the given index.
|
void |
setInterceptors(java.util.List<ChannelInterceptor> interceptors)
Set the list of channel interceptors clearing any existing interceptors.
|
void setInterceptors(java.util.List<ChannelInterceptor> interceptors)
void addInterceptor(ChannelInterceptor interceptor)
void addInterceptor(int index, ChannelInterceptor interceptor)
java.util.List<ChannelInterceptor> getInterceptors()
boolean removeInterceptor(ChannelInterceptor interceptor)
ChannelInterceptor removeInterceptor(int index)