Package org.onosproject.net.pi.runtime
Class PiMeterCellConfig.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMeterCellConfig.Builder
-
- Enclosing class:
- PiMeterCellConfig
public static final class PiMeterCellConfig.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiMeterCellConfig
build()
Builds the meter cell configuration.PiMeterCellConfig.Builder
withCommittedBand(long rate, long burst)
Sets the committed band of this meter.PiMeterCellConfig.Builder
withMeterBand(PiMeterBand band)
Sets a meter band of this meter.PiMeterCellConfig.Builder
withMeterCellId(PiMeterCellId meterCellId)
Sets the meter cell identifier for this meter.PiMeterCellConfig.Builder
withPeakBand(long rate, long burst)
Sets the peak band of this meter.
-
-
-
Method Detail
-
withMeterCellId
public PiMeterCellConfig.Builder withMeterCellId(PiMeterCellId meterCellId)
Sets the meter cell identifier for this meter.- Parameters:
meterCellId
- meter cell identifier- Returns:
- this
-
withMeterBand
public PiMeterCellConfig.Builder withMeterBand(PiMeterBand band)
Sets a meter band of this meter.- Parameters:
band
- meter band- Returns:
- this
-
withCommittedBand
public PiMeterCellConfig.Builder withCommittedBand(long rate, long burst)
Sets the committed band of this meter.- Parameters:
rate
- committed rateburst
- committed burst- Returns:
- this
-
withPeakBand
public PiMeterCellConfig.Builder withPeakBand(long rate, long burst)
Sets the peak band of this meter.- Parameters:
rate
- peak rateburst
- peak burst- Returns:
- this
-
build
public PiMeterCellConfig build()
Builds the meter cell configuration.- Returns:
- a new meter cell configuration
-
-