首页 > 代码库 > Netty3 源码分析 - ChannelEvent
Netty3 源码分析 - ChannelEvent
Event name | Event type and condition | Meaning | |
"messageReceived" | MessageEvent | a message object (e.g. ChannelBuffer) was received from a remote peer | |
"exceptionCaught" | ExceptionEvent | 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" | WriteCompletionEvent | 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" | MessageEvent | 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. |
Netty3 源码分析 - ChannelEvent