Created
July 23, 2022 00:28
-
-
Save zeroFruit/e22bf52c4f6dbe7a1d6513bf111d5f7e to your computer and use it in GitHub Desktop.
Channel concept & implementation— el Project (2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* {@link ChannelHandler} which adds callbacks for state changes. This allows the user to hook in to | |
* state changes easily. | |
*/ | |
public interface ChannelInboundHandler extends ChannelHandler { | |
/** | |
* Called when {@link Channel} of the {@link ChannelHandlerContext} was registered with its {@link | |
* ChannelEventLoop} | |
*/ | |
void channelRegistered(ChannelHandlerContext ctx) throws Exception; | |
/** Gets called if a {@link Throwable} was thrown. */ | |
void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment