Package org.onosproject.net.pi.runtime
Class PiMeterBand
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMeterBand
-
@Beta public final class PiMeterBand extends Object
Represents a band used within a meter.
-
-
Constructor Summary
Constructors Constructor Description PiMeterBand(PiMeterBandType type, long rate, long burst)
Creates a band with rate and burst.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
burst()
Returns the burst of this band.boolean
equals(Object obj)
int
hashCode()
long
rate()
Returns the rate of this band.String
toString()
PiMeterBandType
type()
Returns the type of this band.
-
-
-
Constructor Detail
-
PiMeterBand
public PiMeterBand(PiMeterBandType type, long rate, long burst)
Creates a band with rate and burst.- Parameters:
type
- type of this bandrate
- rate of this bandburst
- burst of this band
-
-
Method Detail
-
type
public PiMeterBandType type()
Returns the type of this band.- Returns:
- type of this band
-
rate
public long rate()
Returns the rate of this band.- Returns:
- rate of this band
-
burst
public long burst()
Returns the burst of this band.- Returns:
- burst of this band
-
-