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()
Band
public java.lang.Long burst()
Band
public java.lang.Short dropPrecedence()
Band
dropPrecedence
in interface Band
public Band.Type type()
Band
public long packets()
Band
public long bytes()
Band
public void setPackets(long packets)
BandEntry
setPackets
in interface BandEntry
packets
- a packet countpublic void setBytes(long bytes)
BandEntry
public java.lang.String toString()
toString
in class java.lang.Object
public static DefaultBand.Builder builder()