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 Details

    • getRate

      long getRate()
    • setRate

      void setRate(long rate_bytes_per_sec)
    • getAvailableByteCount

      long getAvailableByteCount()
    • setBytesUsed

      void setBytesUsed(long bytes_used)
    • setFrozen

      void setFrozen(boolean frozen)