Package io.netty.channel
Class DefaultChannelPipeline.TailContext
java.lang.Object
io.netty.channel.AbstractChannelHandlerContext
io.netty.channel.DefaultChannelPipeline.TailContext
- All Implemented Interfaces:
ChannelHandler,ChannelHandlerContext,ChannelInboundHandler,ChannelInboundInvoker,ChannelOutboundInvoker,AttributeMap,ResourceLeakHint
- Enclosing class:
DefaultChannelPipeline
final class DefaultChannelPipeline.TailContext
extends AbstractChannelHandlerContext
implements ChannelInboundHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.channel.AbstractChannelHandlerContext
AbstractChannelHandlerContext.WriteTaskNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
Fields inherited from class io.netty.channel.AbstractChannelHandlerContext
executor, next, prev -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTheChannelof theChannelHandlerContextis now activevoidTheChannelof theChannelHandlerContextwas registered is now inactive and reached its end of lifetime.voidchannelRead(ChannelHandlerContext ctx, Object msg) Invoked when the currentChannelhas read a message from the peer.voidInvoked when the last message read by the current read operation has been consumed byChannelInboundHandler.channelRead(ChannelHandlerContext, Object).voidvoidvoidGets called once the writable state of aChannelchanged.voidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) Gets called if aThrowablewas thrown.handler()TheChannelHandlerthat is bound thisChannelHandlerContext.voidGets called after theChannelHandlerwas added to the actual context and it's ready to handle events.voidGets called after theChannelHandlerwas removed from the actual context and it doesn't handle events anymore.voiduserEventTriggered(ChannelHandlerContext ctx, Object evt) Gets called if an user event was triggered.Methods inherited from class io.netty.channel.AbstractChannelHandlerContext
alloc, attr, bind, bind, callHandlerAdded, callHandlerRemoved, 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, invokeWrite, invokeWriteAndFlush, isRemoved, name, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, setAddComplete, setAddPending, setRemoved, toHintString, toString, voidPromise, write, write, writeAndFlush, writeAndFlush
-
Constructor Details
-
TailContext
TailContext(DefaultChannelPipeline pipeline)
-
-
Method Details
-
handler
Description copied from interface:ChannelHandlerContextTheChannelHandlerthat is bound thisChannelHandlerContext.- Specified by:
handlerin interfaceChannelHandlerContext
-
channelRegistered
Description copied from interface:ChannelInboundHandler- Specified by:
channelRegisteredin interfaceChannelInboundHandler
-
channelUnregistered
Description copied from interface:ChannelInboundHandler- Specified by:
channelUnregisteredin interfaceChannelInboundHandler
-
channelActive
Description copied from interface:ChannelInboundHandlerTheChannelof theChannelHandlerContextis now active- Specified by:
channelActivein interfaceChannelInboundHandler
-
channelInactive
Description copied from interface:ChannelInboundHandlerTheChannelof theChannelHandlerContextwas registered is now inactive and reached its end of lifetime.- Specified by:
channelInactivein interfaceChannelInboundHandler
-
channelWritabilityChanged
Description copied from interface:ChannelInboundHandlerGets called once the writable state of aChannelchanged. You can check the state withChannel.isWritable().- Specified by:
channelWritabilityChangedin interfaceChannelInboundHandler
-
handlerAdded
Description copied from interface:ChannelHandlerGets called after theChannelHandlerwas added to the actual context and it's ready to handle events.- Specified by:
handlerAddedin interfaceChannelHandler
-
handlerRemoved
Description copied from interface:ChannelHandlerGets called after theChannelHandlerwas removed from the actual context and it doesn't handle events anymore.- Specified by:
handlerRemovedin interfaceChannelHandler
-
userEventTriggered
Description copied from interface:ChannelInboundHandlerGets called if an user event was triggered.- Specified by:
userEventTriggeredin interfaceChannelInboundHandler
-
exceptionCaught
Description copied from interface:ChannelInboundHandlerGets called if aThrowablewas thrown.- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler
-
channelRead
Description copied from interface:ChannelInboundHandlerInvoked when the currentChannelhas read a message from the peer.- Specified by:
channelReadin interfaceChannelInboundHandler
-
channelReadComplete
Description copied from interface:ChannelInboundHandlerInvoked when the last message read by the current read operation has been consumed byChannelInboundHandler.channelRead(ChannelHandlerContext, Object). IfChannelOption.AUTO_READis off, no further attempt to read an inbound data from the currentChannelwill be made untilChannelHandlerContext.read()is called.- Specified by:
channelReadCompletein interfaceChannelInboundHandler
-