Class NettyInboundConnectionHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
com.swiftmq.impl.net.netty.scheduler.NettyInboundConnectionHandler
- All Implemented Interfaces:
com.swiftmq.net.protocol.ChunkListener, com.swiftmq.swiftlet.timer.event.TimerListener, io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, EventListener
public class NettyInboundConnectionHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
implements com.swiftmq.net.protocol.ChunkListener, com.swiftmq.swiftlet.timer.event.TimerListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionNettyInboundConnectionHandler(SwiftletContext ctx, com.swiftmq.swiftlet.net.Connection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelInactive(io.netty.channel.ChannelHandlerContext context) voidchannelRead(io.netty.channel.ChannelHandlerContext context, Object msg) voidchunkCompleted(byte[] b, int offset, int len) voidexceptionCaught(io.netty.channel.ChannelHandlerContext context, Throwable cause) booleanisClosed()voidtoString()Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
NettyInboundConnectionHandler
public NettyInboundConnectionHandler(SwiftletContext ctx, com.swiftmq.swiftlet.net.Connection connection)
-
-
Method Details
-
isClosed
public boolean isClosed() -
channelInactive
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext context, Throwable cause) throws Exception - Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelRead
-
performTimeAction
public void performTimeAction()- Specified by:
performTimeActionin interfacecom.swiftmq.swiftlet.timer.event.TimerListener
-
chunkCompleted
public void chunkCompleted(byte[] b, int offset, int len) - Specified by:
chunkCompletedin interfacecom.swiftmq.net.protocol.ChunkListener
-
toString
-