private final class ServerBootstrap.Binder extends SimpleChannelUpstreamHandler
ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
private DefaultChannelFuture |
bindFuture |
private java.util.Map<java.lang.String,java.lang.Object> |
childOptions |
private java.net.SocketAddress |
localAddress |
| Constructor and Description |
|---|
Binder(java.net.SocketAddress localAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelOpen(ChannelHandlerContext ctx,
ChannelStateEvent evt)
Invoked when a
Channel is open, but not bound nor connected. |
void |
childChannelOpen(ChannelHandlerContext ctx,
ChildChannelStateEvent e)
Invoked when a child
Channel was open. |
void |
exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler. |
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, handleUpstream, messageReceived, writeCompleteprivate final java.net.SocketAddress localAddress
private final java.util.Map<java.lang.String,java.lang.Object> childOptions
private final DefaultChannelFuture bindFuture
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent evt)
SimpleChannelUpstreamHandlerChannel is open, but not bound nor connected.
channelOpen in class SimpleChannelUpstreamHandlerpublic void childChannelOpen(ChannelHandlerContext ctx, ChildChannelStateEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandlerChannel was open.
(e.g. a server channel accepted a connection)childChannelOpen in class SimpleChannelUpstreamHandlerjava.lang.Exceptionpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandlerChannelHandler.exceptionCaught in class SimpleChannelUpstreamHandlerjava.lang.Exception