final class DefaultChannelPipeline.TailContext extends AbstractChannelHandlerContext implements ChannelInboundHandler
AbstractChannelHandlerContext.AbstractWriteTask, AbstractChannelHandlerContext.WriteAndFlushTask, AbstractChannelHandlerContext.WriteTaskChannelHandler.Sharableexecutor, 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, attr, bind, bind, channel, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, executor, fireChannelActive, fireChannelInactive, fireChannelRead, fireChannelReadComplete, fireChannelRegistered, fireChannelUnregistered, fireChannelWritabilityChanged, fireExceptionCaught, fireUserEventTriggered, flush, hasAttr, invokeChannelActive, invokeChannelInactive, invokeChannelRead, invokeChannelReadComplete, invokeChannelRegistered, invokeChannelUnregistered, invokeChannelWritabilityChanged, invokeExceptionCaught, invokeUserEventTriggered, isRemoved, name, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, setAddComplete, setAddPending, setRemoved, toHintString, toString, voidPromise, write, write, writeAndFlush, writeAndFlushTailContext(DefaultChannelPipeline pipeline)
public ChannelHandler handler()
ChannelHandlerContextChannelHandler that is bound this ChannelHandlerContext.handler in interface ChannelHandlerContextpublic void channelRegistered(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerchannelRegistered in interface ChannelInboundHandlerjava.lang.Exceptionpublic void channelUnregistered(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerchannelUnregistered in interface ChannelInboundHandlerjava.lang.Exceptionpublic void channelActive(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerChannel of the ChannelHandlerContext is now activechannelActive in interface ChannelInboundHandlerjava.lang.Exceptionpublic void channelInactive(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerChannel of the ChannelHandlerContext was registered is now inactive and reached its
end of lifetime.channelInactive in interface ChannelInboundHandlerjava.lang.Exceptionpublic void channelWritabilityChanged(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerChannel changed. You can check the state with
Channel.isWritable().channelWritabilityChanged in interface ChannelInboundHandlerjava.lang.Exceptionpublic void handlerAdded(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelHandlerChannelHandler was added to the actual context and it's ready to handle events.handlerAdded in interface ChannelHandlerjava.lang.Exceptionpublic void handlerRemoved(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelHandlerChannelHandler was removed from the actual context and it doesn't handle events
anymore.handlerRemoved in interface ChannelHandlerjava.lang.Exceptionpublic void userEventTriggered(ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception
ChannelInboundHandleruserEventTriggered in interface ChannelInboundHandlerjava.lang.Exceptionpublic void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
ChannelInboundHandlerThrowable was thrown.exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerjava.lang.Exceptionpublic void channelRead(ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
ChannelInboundHandlerChannel has read a message from the peer.channelRead in interface ChannelInboundHandlerjava.lang.Exceptionpublic void channelReadComplete(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerChannelInboundHandler.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 ChannelInboundHandlerjava.lang.Exception