public class ThroughputSnapshotThrottle extends Object implements SnapshotThrottle
| Constructor and Description |
|---|
ThroughputSnapshotThrottle(long throttleThroughputBytes,
long checkCycleSecs) |
| Modifier and Type | Method and Description |
|---|---|
long |
throttledByThroughput(long bytes)
Get available throughput in bytes after throttled
Must be thread-safe
|
public ThroughputSnapshotThrottle(long throttleThroughputBytes,
long checkCycleSecs)
public long throttledByThroughput(long bytes)
SnapshotThrottlethrottledByThroughput in interface SnapshotThrottlebytes - expect sizeCopyright © 2024. All rights reserved.