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