|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.remoting.transport.ChannelHandlerDispatcher
public class ChannelHandlerDispatcher
ChannelListenerDispatcher
Constructor Summary | |
---|---|
ChannelHandlerDispatcher()
|
|
ChannelHandlerDispatcher(ChannelHandler... handlers)
|
|
ChannelHandlerDispatcher(Collection<ChannelHandler> handlers)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelHandlerDispatcher()
public ChannelHandlerDispatcher(ChannelHandler... handlers)
public ChannelHandlerDispatcher(Collection<ChannelHandler> handlers)
Method Detail |
---|
public Collection<ChannelHandler> getChannelHandlers()
public ChannelHandlerDispatcher addChannelHandler(ChannelHandler handler)
public ChannelHandlerDispatcher removeChannelHandler(ChannelHandler handler)
public void connected(Channel channel)
ChannelHandler
connected
in interface ChannelHandler
channel
- channel.public void disconnected(Channel channel)
ChannelHandler
disconnected
in interface ChannelHandler
channel
- channel.public void sent(Channel channel, Object message)
ChannelHandler
sent
in interface ChannelHandler
channel
- channel.message
- message.public void received(Channel channel, Object message)
ChannelHandler
received
in interface ChannelHandler
channel
- channel.message
- message.public void caught(Channel channel, Throwable exception)
ChannelHandler
caught
in interface ChannelHandler
channel
- channel.exception
- exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |