Interface TokenBucketEntry

  • All Known Implementing Classes:
    DefaultTokenBucket

    @Beta
    public interface TokenBucketEntry
    Represents a stored token bucket.
    • Method Detail

      • setProcessedPackets

        void setProcessedPackets​(long packets)
        Updates the number of packets seen by this token bucket.
        Parameters:
        packets - a packet count.
      • setProcessedBytes

        void setProcessedBytes​(long bytes)
        Updates the number of bytes seen by this token bucket.
        Parameters:
        bytes - a byte counter.