类 ChannelHandlerDispatcher
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.ChannelHandlerDispatcher
-
- 所有已实现的接口:
ChannelHandler
public class ChannelHandlerDispatcher extends Object implements ChannelHandler
ChannelListenerDispatcher
-
-
构造器概要
构造器 构造器 说明 ChannelHandlerDispatcher()
ChannelHandlerDispatcher(ChannelHandler... handlers)
ChannelHandlerDispatcher(Collection<ChannelHandler> handlers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ChannelHandlerDispatcher
addChannelHandler(ChannelHandler handler)
void
caught(Channel channel, Throwable exception)
on exception caught.void
connected(Channel channel)
on channel connected.void
disconnected(Channel channel)
on channel disconnected.Collection<ChannelHandler>
getChannelHandlers()
void
received(Channel channel, Object message)
on message received.ChannelHandlerDispatcher
removeChannelHandler(ChannelHandler handler)
void
sent(Channel channel, Object message)
on message sent.
-
-
-
构造器详细资料
-
ChannelHandlerDispatcher
public ChannelHandlerDispatcher()
-
ChannelHandlerDispatcher
public ChannelHandlerDispatcher(ChannelHandler... handlers)
-
ChannelHandlerDispatcher
public ChannelHandlerDispatcher(Collection<ChannelHandler> handlers)
-
-
方法详细资料
-
getChannelHandlers
public Collection<ChannelHandler> getChannelHandlers()
-
addChannelHandler
public ChannelHandlerDispatcher addChannelHandler(ChannelHandler handler)
-
removeChannelHandler
public ChannelHandlerDispatcher removeChannelHandler(ChannelHandler handler)
-
connected
public void connected(Channel channel)
从接口复制的说明:ChannelHandler
on channel connected.- 指定者:
connected
在接口中ChannelHandler
- 参数:
channel
- channel.
-
disconnected
public void disconnected(Channel channel)
从接口复制的说明:ChannelHandler
on channel disconnected.- 指定者:
disconnected
在接口中ChannelHandler
- 参数:
channel
- channel.
-
sent
public void sent(Channel channel, Object message)
从接口复制的说明:ChannelHandler
on message sent.- 指定者:
sent
在接口中ChannelHandler
- 参数:
channel
- channel.message
- message.
-
received
public void received(Channel channel, Object message)
从接口复制的说明:ChannelHandler
on message received.- 指定者:
received
在接口中ChannelHandler
- 参数:
channel
- channel.message
- message.
-
caught
public void caught(Channel channel, Throwable exception)
从接口复制的说明:ChannelHandler
on exception caught.- 指定者:
caught
在接口中ChannelHandler
- 参数:
channel
- channel.exception
- exception.
-
-