Class NettyOutboundConnectionHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
com.swiftmq.impl.net.netty.scheduler.NettyOutboundConnectionHandler
- 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 NettyOutboundConnectionHandler
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
ConstructorsConstructorDescriptionNettyOutboundConnectionHandler(SwiftletContext ctx, com.swiftmq.swiftlet.net.Connection connection, com.swiftmq.swiftlet.net.ConnectionMetaData metaData) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(io.netty.channel.ChannelHandlerContext context) voidchannelInactive(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) booleanisActive()voidtoString()Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
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
-
NettyOutboundConnectionHandler
public NettyOutboundConnectionHandler(SwiftletContext ctx, com.swiftmq.swiftlet.net.Connection connection, com.swiftmq.swiftlet.net.ConnectionMetaData metaData)
-
-
Method Details
-
isActive
public boolean isActive() -
channelActive
-
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
-