@ChannelHandler.Sharable public class UptimeClientHandler extends SimpleChannelInboundHandler<java.lang.Object>
ChannelHandler.Sharable| 构造器和说明 |
|---|
UptimeClientHandler() |
acceptInboundMessage, channelReadchannelReadComplete, channelRegistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic void channelActive(ChannelHandlerContext ctx)
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelActive() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelActive 在接口中 ChannelInboundHandlerchannelActive 在类中 ChannelInboundHandlerAdapterpublic void channelRead0(ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
SimpleChannelInboundHandlerI.channelRead0 在类中 SimpleChannelInboundHandler<java.lang.Object>ctx - the ChannelHandlerContext which this SimpleChannelInboundHandler
belongs tomsg - the message to handlejava.lang.Exception - is thrown if an error occurredpublic void userEventTriggered(ChannelHandlerContext ctx, java.lang.Object evt)
ChannelInboundHandlerAdapterChannelHandlerContext.fireUserEventTriggered(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.public void channelInactive(ChannelHandlerContext ctx)
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelInactive() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelInactive 在接口中 ChannelInboundHandlerchannelInactive 在类中 ChannelInboundHandlerAdapterpublic void channelUnregistered(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelUnregistered() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelUnregistered 在接口中 ChannelInboundHandlerchannelUnregistered 在类中 ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause)
ChannelInboundHandlerAdapterChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.exceptionCaught 在接口中 ChannelHandlerexceptionCaught 在接口中 ChannelInboundHandlerexceptionCaught 在类中 ChannelInboundHandlerAdapter