Package org.jboss.netty.bootstrap
Class ServerBootstrap.Binder
- java.lang.Object
-
- org.jboss.netty.channel.SimpleChannelUpstreamHandler
-
- org.jboss.netty.bootstrap.ServerBootstrap.Binder
-
- All Implemented Interfaces:
ChannelHandler
,ChannelUpstreamHandler
- Enclosing class:
- ServerBootstrap
private final class ServerBootstrap.Binder extends SimpleChannelUpstreamHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultChannelFuture
bindFuture
private java.util.Map<java.lang.String,java.lang.Object>
childOptions
private java.net.SocketAddress
localAddress
-
Constructor Summary
Constructors Constructor Description Binder(java.net.SocketAddress localAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelOpen(ChannelHandlerContext ctx, ChannelStateEvent evt)
Invoked when aChannel
is open, but not bound nor connected.void
childChannelOpen(ChannelHandlerContext ctx, ChildChannelStateEvent e)
Invoked when a childChannel
was open.void
exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or aChannelHandler
.-
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, handleUpstream, messageReceived, writeComplete
-
-
-
-
Field Detail
-
localAddress
private final java.net.SocketAddress localAddress
-
childOptions
private final java.util.Map<java.lang.String,java.lang.Object> childOptions
-
bindFuture
private final DefaultChannelFuture bindFuture
-
-
Method Detail
-
channelOpen
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent evt)
Description copied from class:SimpleChannelUpstreamHandler
Invoked when aChannel
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!- Overrides:
channelOpen
in classSimpleChannelUpstreamHandler
-
childChannelOpen
public void childChannelOpen(ChannelHandlerContext ctx, ChildChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandler
Invoked when a childChannel
was open. (e.g. a server channel accepted a connection)- Overrides:
childChannelOpen
in classSimpleChannelUpstreamHandler
- Throws:
java.lang.Exception
-
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandler
Invoked when an exception was raised by an I/O thread or aChannelHandler
.- Overrides:
exceptionCaught
in classSimpleChannelUpstreamHandler
- Throws:
java.lang.Exception
-
-