Package com.wavefront.agent.histogram
Class QueuingChannelHandler<T>
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<Object>
-
- com.wavefront.agent.histogram.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]).
-
-
Constructor Summary
Constructors Constructor Description QueuingChannelHandler(com.squareup.tape.ObjectQueue<List<T>> tape, int maxCapacity, AtomicBoolean histogramDisabled)
-
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
-
-
-
-
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)
-
-