public class FtpChannelTrafficShapingHandler
extends io.netty.handler.traffic.ChannelTrafficShapingHandler
Constructor and Description |
---|
FtpChannelTrafficShapingHandler(long checkInterval) |
FtpChannelTrafficShapingHandler(long writeLimit,
long readLimit) |
FtpChannelTrafficShapingHandler(long writeLimit,
long readLimit,
long checkInterval) |
FtpChannelTrafficShapingHandler(long writeLimit,
long readLimit,
long checkInterval,
long maxTime) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateSize(Object msg) |
handlerAdded, handlerRemoved, queueSize
channelRead, channelRegistered, configure, configure, configure, doAccounting, getCheckInterval, getMaxTimeWait, getMaxWriteDelay, getMaxWriteSize, getReadLimit, getWriteLimit, isHandlerActive, read, setCheckInterval, setMaxTimeWait, setMaxWriteDelay, setMaxWriteSize, setReadLimit, setWriteLimit, submitWrite, toString, trafficCounter, userDefinedWritabilityIndex, write
bind, close, connect, deregister, disconnect, flush
channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
public FtpChannelTrafficShapingHandler(long checkInterval)
checkInterval
- public FtpChannelTrafficShapingHandler(long writeLimit, long readLimit)
writeLimit
- readLimit
- public FtpChannelTrafficShapingHandler(long writeLimit, long readLimit, long checkInterval)
writeLimit
- readLimit
- checkInterval
- public FtpChannelTrafficShapingHandler(long writeLimit, long readLimit, long checkInterval, long maxTime)
writeLimit
- readLimit
- checkInterval
- maxTime
- protected long calculateSize(Object msg)
calculateSize
in class io.netty.handler.traffic.AbstractTrafficShapingHandler
Copyright © 2009–2019 Waarp. All rights reserved.