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

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

    Modifier and Type
    Method
    Description
    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

    channelActive, 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

    • NettyInboundConnectionHandler

      public NettyInboundConnectionHandler(SwiftletContext ctx, com.swiftmq.swiftlet.net.Connection connection)
  • Method Details

    • isClosed

      public boolean isClosed()
    • 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