Interface TokenBucketEntry
-
- All Known Implementing Classes:
DefaultTokenBucket
@Beta public interface TokenBucketEntry
Represents a stored token bucket.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setProcessedBytes(long bytes)
Updates the number of bytes seen by this token bucket.void
setProcessedPackets(long packets)
Updates the number of packets seen by this 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.
-
-