public class FactorialClientHandler extends SimpleChannelInboundHandler<java.math.BigInteger>
ChannelHandler.Sharable| 构造器和说明 |
|---|
FactorialClientHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(ChannelHandlerContext ctx)
Calls
ChannelHandlerContext.fireChannelActive() to forward
to the next ChannelInboundHandler in the ChannelPipeline. |
void |
channelRead0(ChannelHandlerContext ctx,
java.math.BigInteger msg)
Is called for each message of type
I. |
void |
exceptionCaught(ChannelHandlerContext ctx,
java.lang.Throwable cause)
Calls
ChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline. |
java.math.BigInteger |
getFactorial() |
acceptInboundMessage, channelReadchannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic java.math.BigInteger getFactorial()
public 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.math.BigInteger msg)
SimpleChannelInboundHandlerI.channelRead0 在类中 SimpleChannelInboundHandler<java.math.BigInteger>ctx - the ChannelHandlerContext which this SimpleChannelInboundHandler
belongs tomsg - the message to handlepublic 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