Class ChannelHandlerDispatcher
java.lang.Object
org.apache.dubbo.remoting.transport.ChannelHandlerDispatcher
- All Implemented Interfaces:
ChannelHandler
ChannelListenerDispatcher
-
Constructor Summary
ConstructorsConstructorDescriptionChannelHandlerDispatcher(Collection<ChannelHandler> handlers) ChannelHandlerDispatcher(ChannelHandler... handlers) -
Method Summary
Modifier and TypeMethodDescriptionaddChannelHandler(ChannelHandler handler) voidon exception caught.voidon channel connected.voiddisconnected(Channel channel) on channel disconnected.voidon message received.removeChannelHandler(ChannelHandler handler) voidon message sent.
-
Constructor Details
-
ChannelHandlerDispatcher
public ChannelHandlerDispatcher() -
ChannelHandlerDispatcher
-
ChannelHandlerDispatcher
-
-
Method Details
-
getChannelHandlers
-
addChannelHandler
-
removeChannelHandler
-
connected
Description copied from interface:ChannelHandleron channel connected.- Specified by:
connectedin interfaceChannelHandler- Parameters:
channel- channel.
-
disconnected
Description copied from interface:ChannelHandleron channel disconnected.- Specified by:
disconnectedin interfaceChannelHandler- Parameters:
channel- channel.
-
sent
Description copied from interface:ChannelHandleron message sent.- Specified by:
sentin interfaceChannelHandler- Parameters:
channel- channel.message- message.
-
received
Description copied from interface:ChannelHandleron message received.- Specified by:
receivedin interfaceChannelHandler- Parameters:
channel- channel.message- message.
-
caught
Description copied from interface:ChannelHandleron exception caught.- Specified by:
caughtin interfaceChannelHandler- Parameters:
channel- channel.exception- exception.
-