Class QueuingChannelHandler<T>

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    @Sharable
    public class QueuingChannelHandler<T>
    extends io.netty.channel.SimpleChannelInboundHandler<Object>
    Inbound handler streaming a netty channel out to a square tape.
    Author:
    Tim Schmidt ([email protected]).
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void channelRead0​(io.netty.channel.ChannelHandlerContext channelHandlerContext, Object t)  
      Runnable getBufferFlushTask()  
      • Methods inherited from class io.netty.channel.SimpleChannelInboundHandler

        acceptInboundMessage, channelRead
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • Field Detail

      • logger

        protected static final Logger logger
    • Constructor Detail

      • QueuingChannelHandler

        public QueuingChannelHandler​(@NotNull
                                     com.squareup.tape.ObjectQueue<List<T>> tape,
                                     int maxCapacity,
                                     AtomicBoolean histogramDisabled)
    • Method Detail

      • channelRead0

        protected void channelRead0​(io.netty.channel.ChannelHandlerContext channelHandlerContext,
                                    Object t)
                             throws Exception
        Specified by:
        channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<Object>
        Throws:
        Exception
      • getBufferFlushTask

        public Runnable getBufferFlushTask()