@Beta
public interface TokenBucket
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
TokenBucket.Action
Action applied to the exceeding traffic. 
 | 
static interface  | 
TokenBucket.Builder
Token bucket builder. 
 | 
static class  | 
TokenBucket.Type
Token bucket type. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static short | 
MAX_DSCP
Upper bound for DSCP. 
 | 
static short | 
MIN_DSCP
Lower bound for DSCP. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
TokenBucket.Action | 
action()
Action used by this token bucket
 for the exceeding traffic. 
 | 
long | 
burstSize()
Maximum burst size subject to the SLAs
 specified for this token bucket. 
 | 
short | 
dscp()
Dscp value, it meaning depends on the used marking. 
 | 
long | 
processedBytes()
Stats which reports how many bytes have been
 processed so far. 
 | 
long | 
processedPackets()
Stats which reports how many packets have been
 processed so far. 
 | 
long | 
rate()
Rate of traffic subject to the SLAs
 specified for this token bucket. 
 | 
TokenBucket.Type | 
type()
Token bucket type. 
 | 
static final short MAX_DSCP
static final short MIN_DSCP
long rate()
long burstSize()
TokenBucket.Action action()
short dscp()
TokenBucket.Type type()
long processedPackets()
long processedBytes()