Interface ByteBucket
-
- All Known Implementing Classes:
ByteBucketMT
,ByteBucketST
public interface ByteBucket
Byte-bucket implementation based on the token bucket algorithm. Buckets can be configured with a guaranteed normal rate, along with a burst rate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAvailableByteCount()
int
getRate()
void
setBytesUsed(int bytes_used)
void
setFrozen(boolean frozen)
void
setRate(int rate_bytes_per_sec)
-