接口 InterceptableChannel
public interface InterceptableChannel
AMessageChannel
that maintains a listChannelInterceptors
and allows interception of message sending.- 从以下版本开始:
- 4.1
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
addInterceptor(int index, ChannelInterceptor interceptor)
Add a channel interceptor at the specified index.void
addInterceptor(ChannelInterceptor interceptor)
Add a channel interceptor to the end of the list.List<ChannelInterceptor>
getInterceptors()
Return the list of configured interceptors.ChannelInterceptor
removeInterceptor(int index)
Remove the interceptor at the given index.boolean
removeInterceptor(ChannelInterceptor interceptor)
Remove the given interceptor.void
setInterceptors(List<ChannelInterceptor> interceptors)
Set the list of channel interceptors clearing any existing interceptors.
方法详细资料
setInterceptors
void setInterceptors(List<ChannelInterceptor> interceptors)
Set the list of channel interceptors clearing any existing interceptors.
addInterceptor
void addInterceptor(ChannelInterceptor interceptor)
Add a channel interceptor to the end of the list.
addInterceptor
void addInterceptor(int index, ChannelInterceptor interceptor)
Add a channel interceptor at the specified index.
getInterceptors
List<ChannelInterceptor> getInterceptors()
Return the list of configured interceptors.
removeInterceptor
boolean removeInterceptor(ChannelInterceptor interceptor)
Remove the given interceptor.
removeInterceptor
ChannelInterceptor removeInterceptor(int index)
Remove the interceptor at the given index.