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

    Constructors
    Constructor
    Description
    NettyOutboundConnectionHandler(SwiftletContext ctx, com.swiftmq.swiftlet.net.Connection connection, com.swiftmq.swiftlet.net.ConnectionMetaData metaData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelActive(io.netty.channel.ChannelHandlerContext context)
     
    void
    channelInactive(io.netty.channel.ChannelHandlerContext context)
     
    void
    channelRead(io.netty.channel.ChannelHandlerContext context, Object msg)
     
    void
    chunkCompleted(byte[] b, int offset, int len)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext context, Throwable cause)
     
    boolean
     
    void
     
     

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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

      public void channelActive(io.netty.channel.ChannelHandlerContext context) throws Exception
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext context) throws Exception
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext context, Throwable cause) throws Exception
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • channelRead

      public void channelRead(io.netty.channel.ChannelHandlerContext context, Object msg) throws Exception
      Specified by:
      channelRead in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • performTimeAction

      public void performTimeAction()
      Specified by:
      performTimeAction in interface com.swiftmq.swiftlet.timer.event.TimerListener
    • chunkCompleted

      public void chunkCompleted(byte[] b, int offset, int len)
      Specified by:
      chunkCompleted in interface com.swiftmq.net.protocol.ChunkListener
    • toString

      public String toString()
      Overrides:
      toString in class Object