Event name |
Event type and condition |
Meaning |
|
"messageReceived" |
a message object (e.g. ChannelBuffer) was received from a remote peer |
||
"exceptionCaught" |
an exception was raised by an I/O thread or a ChannelHandler |
||
"channelOpen" |
ChannelStateEvent |
a Channel is open, but not bound nor connected |
Be aware that this event is fired from within the I/O thread. You should never execute any heavy operation in there as it will block the dispatching to other workers! |
"channelClosed" |
ChannelStateEvent |
a Channel was closed and all its related resources were released |
|
"channelBound" |
ChannelStateEvent |
a Channel is open and bound to a local address, but not connected. |
Be aware that this event is fired from within the I/O thread. You should never execute any heavy operation in there as it will block the dispatching to other workers! |
"channelUnbound" |
ChannelStateEvent |
a Channel was unbound from the current local address |
|
"channelConnected" |
ChannelStateEvent |
a Channel is open, bound to a local address, and connected to a remote address |
Be aware that this event is fired from within the I/O thread. You should never execute any heavy operation in there as it will block the dispatching to other workers! |
"writeComplete" |
something has been written to a remote peer |
|
|
"channelDisconnected" |
ChannelStateEvent |
a Channel was disconnected from its remote peer |
|
"channelInterestChanged" |
ChannelStateEvent |
a Channel‘s interestOps was changed |
Event name |
Event type and condition |
Meaning |
"childChannelOpen" |
ChildChannelStateEvent |
a child Channel was open (e.g. a server channel accepted a connection.) |
"childChannelClosed" |
ChildChannelStateEvent |
a child Channel was closed (e.g. the accepted connection was closed.) |
Event name |
Event type and condition |
Meaning |
"write" |
Send a message to the Channel. |
|
"bind" |
ChannelStateEvent |
Bind the Channel to the specified local address. |
"unbind" |
ChannelStateEvent |
Unbind the Channel from the current local address. |
"connect" |
ChannelStateEvent |
Connect the Channel to the specified remote address. |
"disconnect" |
ChannelStateEvent |
Disconnect the Channel from the current remote address. |
"close" |
ChannelStateEvent |
Close the Channel. |
原文地址:http://blog.csdn.net/vonzhoufz/article/details/39181917