Package org.littleshoot.proxy.impl
Class ProxyConnection.BytesReadMonitor
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.littleshoot.proxy.impl.ProxyConnection.BytesReadMonitor
-
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
- Enclosing class:
- ProxyConnection<I extends HttpObject>
@Sharable protected abstract class ProxyConnection.BytesReadMonitor extends ChannelInboundHandlerAdapter
Utility handler for monitoring bytes read on this connection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBytesReadMonitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidbytesRead(int numberOfBytes)voidchannelRead(ChannelHandlerContext ctx, Object msg)-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
channelRead
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter- Throws:
Exception
-
bytesRead
protected abstract void bytesRead(int numberOfBytes)
-
-