final class DefaultChannelPipeline.TailContext extends AbstractChannelHandlerContext implements ChannelInboundHandler
AbstractChannelHandlerContext.AbstractWriteTask, AbstractChannelHandlerContext.WriteAndFlushTask, AbstractChannelHandlerContext.WriteTask
ChannelHandler.Sharable
executor, next, prev
Constructor and Description |
---|
TailContext(DefaultChannelPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(ChannelHandlerContext ctx)
The
Channel of the ChannelHandlerContext is now active |
void |
channelInactive(ChannelHandlerContext ctx)
The
Channel of the ChannelHandlerContext was registered is now inactive and reached its
end of lifetime. |
void |
channelRead(ChannelHandlerContext ctx,
java.lang.Object msg)
Invoked when the current
Channel has read a message from the peer. |
void |
channelReadComplete(ChannelHandlerContext ctx)
Invoked when the last message read by the current read operation has been consumed by
ChannelInboundHandler.channelRead(ChannelHandlerContext, Object) . |
void |
channelRegistered(ChannelHandlerContext ctx)
|
void |
channelUnregistered(ChannelHandlerContext ctx)
|
void |
channelWritabilityChanged(ChannelHandlerContext ctx)
Gets called once the writable state of a
Channel changed. |
void |
exceptionCaught(ChannelHandlerContext ctx,
java.lang.Throwable cause)
Gets called if a
Throwable was thrown. |
ChannelHandler |
handler()
The
ChannelHandler that is bound this ChannelHandlerContext . |
void |
handlerAdded(ChannelHandlerContext ctx)
Gets called after the
ChannelHandler was added to the actual context and it's ready to handle events. |
void |
handlerRemoved(ChannelHandlerContext ctx)
Gets called after the
ChannelHandler was removed from the actual context and it doesn't handle events
anymore. |
void |
userEventTriggered(ChannelHandlerContext ctx,
java.lang.Object evt)
Gets called if an user event was triggered.
|
alloc, bind, bind, channel, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, executor, fireChannelActive, fireChannelInactive, fireChannelRead, fireChannelReadComplete, fireChannelRegistered, fireChannelUnregistered, fireChannelWritabilityChanged, fireExceptionCaught, fireUserEventTriggered, flush, invokeChannelActive, invokeChannelInactive, invokeChannelRead, invokeChannelReadComplete, invokeChannelRegistered, invokeChannelUnregistered, invokeChannelWritabilityChanged, invokeExceptionCaught, invokeUserEventTriggered, isRemoved, name, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, setAddComplete, setAddPending, setRemoved, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attr
TailContext(DefaultChannelPipeline pipeline)
public ChannelHandler handler()
ChannelHandlerContext
ChannelHandler
that is bound this ChannelHandlerContext
.handler
in interface ChannelHandlerContext
public void channelRegistered(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandler
channelRegistered
in interface ChannelInboundHandler
java.lang.Exception
public void channelUnregistered(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandler
channelUnregistered
in interface ChannelInboundHandler
java.lang.Exception
public void channelActive(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandler
Channel
of the ChannelHandlerContext
is now activechannelActive
in interface ChannelInboundHandler
java.lang.Exception
public void channelInactive(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandler
Channel
of the ChannelHandlerContext
was registered is now inactive and reached its
end of lifetime.channelInactive
in interface ChannelInboundHandler
java.lang.Exception
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandler
Channel
changed. You can check the state with
Channel.isWritable()
.channelWritabilityChanged
in interface ChannelInboundHandler
java.lang.Exception
public void handlerAdded(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelHandler
ChannelHandler
was added to the actual context and it's ready to handle events.handlerAdded
in interface ChannelHandler
java.lang.Exception
public void handlerRemoved(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelHandler
ChannelHandler
was removed from the actual context and it doesn't handle events
anymore.handlerRemoved
in interface ChannelHandler
java.lang.Exception
public void userEventTriggered(ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception
ChannelInboundHandler
userEventTriggered
in interface ChannelInboundHandler
java.lang.Exception
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
ChannelInboundHandler
Throwable
was thrown.exceptionCaught
in interface ChannelHandler
exceptionCaught
in interface ChannelInboundHandler
java.lang.Exception
public void channelRead(ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
ChannelInboundHandler
Channel
has read a message from the peer.channelRead
in interface ChannelInboundHandler
java.lang.Exception
public void channelReadComplete(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandler
ChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
. If ChannelOption.AUTO_READ
is off, no further
attempt to read an inbound data from the current Channel
will be made until
ChannelHandlerContext.read()
is called.channelReadComplete
in interface ChannelInboundHandler
java.lang.Exception