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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbytesRead(int numberOfBytes) voidchannelRead(ChannelHandlerContext ctx, Object msg) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
BytesReadMonitor
protected BytesReadMonitor()
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter- Throws:
Exception
-
bytesRead
protected abstract void bytesRead(int numberOfBytes)
-