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 DefaultChannelFuturebindFutureprivate java.util.Map<java.lang.String,java.lang.Object>childOptionsprivate java.net.SocketAddresslocalAddress
-
Constructor Summary
Constructors Constructor Description Binder(java.net.SocketAddress localAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelOpen(ChannelHandlerContext ctx, ChannelStateEvent evt)Invoked when aChannelis open, but not bound nor connected.voidchildChannelOpen(ChannelHandlerContext ctx, ChildChannelStateEvent e)Invoked when a childChannelwas open.voidexceptionCaught(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:SimpleChannelUpstreamHandlerInvoked when aChannelis 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:
channelOpenin classSimpleChannelUpstreamHandler
-
childChannelOpen
public void childChannelOpen(ChannelHandlerContext ctx, ChildChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when a childChannelwas open. (e.g. a server channel accepted a connection)- Overrides:
childChannelOpenin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when an exception was raised by an I/O thread or aChannelHandler.- Overrides:
exceptionCaughtin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
-