| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultBand.Builder |
ERR_MSG, MAX_PRECEDENCE, MIN_PRECEDENCE| Constructor and Description |
|---|
DefaultBand(Band.Type type,
long rate,
java.lang.Long burstSize,
java.lang.Short prec) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultBand.Builder |
builder() |
java.lang.Long |
burst()
The burst size at which the meter applies.
|
long |
bytes()
Return the bytes seen by this band.
|
java.lang.Short |
dropPrecedence()
Only meaningful in the case of a REMARK band type.
|
long |
packets()
Returns the packets seen by this band.
|
long |
rate()
The rate at which this meter applies.
|
void |
setBytes(long bytes)
Sets the number of bytes seen by this band.
|
void |
setPackets(long packets)
Sets the number of packets seen by this band.
|
java.lang.String |
toString() |
Band.Type |
type()
Signals the type of band to create.
|
public DefaultBand(Band.Type type, long rate, java.lang.Long burstSize, java.lang.Short prec)
public long rate()
Bandpublic java.lang.Long burst()
Bandpublic java.lang.Short dropPrecedence()
BanddropPrecedence in interface Bandpublic Band.Type type()
Bandpublic long packets()
Bandpublic long bytes()
Bandpublic void setPackets(long packets)
BandEntrysetPackets in interface BandEntrypackets - a packet countpublic void setBytes(long bytes)
BandEntrypublic java.lang.String toString()
toString in class java.lang.Objectpublic static DefaultBand.Builder builder()