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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when aChannel
is open, but not bound nor connected.void
Invoked when a childChannel
was open.void
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 Details
-
localAddress
-
childOptions
-
bindFuture
-
-
Constructor Details
-
Binder
Binder(SocketAddress localAddress)
-
-
Method Details
-
channelOpen
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
Description copied from class:SimpleChannelUpstreamHandler
Invoked when a childChannel
was open. (e.g. a server channel accepted a connection)- Overrides:
childChannelOpen
in classSimpleChannelUpstreamHandler
- Throws:
Exception
-
exceptionCaught
Description copied from class:SimpleChannelUpstreamHandler
Invoked when an exception was raised by an I/O thread or aChannelHandler
.- Overrides:
exceptionCaught
in classSimpleChannelUpstreamHandler
- Throws:
Exception
-