Package io.netty.channel
Interface ChannelInboundInvoker
- All Known Subinterfaces:
ChannelHandlerContext
,ChannelPipeline
- All Known Implementing Classes:
AbstractChannelHandlerContext
,CombinedChannelDuplexHandler.DelegatingChannelHandlerContext
,DefaultChannelHandlerContext
,DefaultChannelPipeline
,DefaultChannelPipeline.HeadContext
,DefaultChannelPipeline.TailContext
,EmbeddedChannel.EmbeddedChannelPipeline
public interface ChannelInboundInvoker
-
Method Summary
Modifier and TypeMethodDescriptionAChannel
is active now, which means it is connected.AChannel
is inactive now, which means it is closed.fireChannelRead
(Object msg) AChannel
received a message.Triggers anChannelInboundHandler.channelReadComplete(ChannelHandlerContext)
event to the nextChannelInboundHandler
in theChannelPipeline
.Triggers anChannelInboundHandler.channelWritabilityChanged(ChannelHandlerContext)
event to the nextChannelInboundHandler
in theChannelPipeline
.fireExceptionCaught
(Throwable cause) fireUserEventTriggered
(Object event) AChannel
received an user defined event.
-
Method Details
-
fireChannelRegistered
ChannelInboundInvoker fireChannelRegistered()AChannel
was registered to itsEventLoop
. This will result in having theChannelInboundHandler.channelRegistered(ChannelHandlerContext)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireChannelUnregistered
ChannelInboundInvoker fireChannelUnregistered()AChannel
was unregistered from itsEventLoop
. This will result in having theChannelInboundHandler.channelUnregistered(ChannelHandlerContext)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireChannelActive
ChannelInboundInvoker fireChannelActive()AChannel
is active now, which means it is connected. This will result in having theChannelInboundHandler.channelActive(ChannelHandlerContext)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireChannelInactive
ChannelInboundInvoker fireChannelInactive()AChannel
is inactive now, which means it is closed. This will result in having theChannelInboundHandler.channelInactive(ChannelHandlerContext)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireExceptionCaught
AChannel
received anThrowable
in one of its inbound operations. This will result in having theChannelInboundHandler.exceptionCaught(ChannelHandlerContext, Throwable)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireUserEventTriggered
AChannel
received an user defined event. This will result in having theChannelInboundHandler.userEventTriggered(ChannelHandlerContext, Object)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireChannelRead
AChannel
received a message. This will result in having theChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
method called of the nextChannelInboundHandler
contained in theChannelPipeline
of theChannel
. -
fireChannelReadComplete
ChannelInboundInvoker fireChannelReadComplete()Triggers anChannelInboundHandler.channelReadComplete(ChannelHandlerContext)
event to the nextChannelInboundHandler
in theChannelPipeline
. -
fireChannelWritabilityChanged
ChannelInboundInvoker fireChannelWritabilityChanged()Triggers anChannelInboundHandler.channelWritabilityChanged(ChannelHandlerContext)
event to the nextChannelInboundHandler
in theChannelPipeline
.
-