Package org.onosproject.net.meter
Interface Band.Builder
- 
- All Known Implementing Classes:
- DefaultBand.Builder
 - Enclosing interface:
- Band
 
 public static interface Band.Builder
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Bandbuild()Builds the band.Band.BuilderburstSize(long burstSize)Assigns a burst size to this band.Band.BuilderdropPrecedence(short prec)Assigns the drop precedence for this band.Band.BuilderofType(Band.Type type)Assigns theBand.Typeof this band.Band.BuilderwithRate(long rate)Assigns a rate to this band.
 
- 
- 
- 
Method Detail- 
withRateBand.Builder withRate(long rate) Assigns a rate to this band. The units for this rate are defined in the encapsulating meter.- Parameters:
- rate- a long value
- Returns:
- this
 
 - 
burstSizeBand.Builder burstSize(long burstSize) Assigns a burst size to this band. Only meaningful if the encapsulating meter is of burst type.- Parameters:
- burstSize- a long value.
- Returns:
- this
 
 - 
dropPrecedenceBand.Builder dropPrecedence(short prec) Assigns the drop precedence for this band. Only meaningful if the band is of REMARK type.- Parameters:
- prec- a short value
- Returns:
- this
 
 - 
ofTypeBand.Builder ofType(Band.Type type) Assigns theBand.Typeof this band.- Parameters:
- type- a band type
- Returns:
- this
 
 - 
buildBand build() Builds the band.- Returns:
- a band
 
 
- 
 
-