Package org.onosproject.net.meter
Interface Band.Builder
-
- All Known Implementing Classes:
DefaultBand.Builder
- Enclosing interface:
- Band
public static interface Band.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Band
build()
Builds the band.Band.Builder
burstSize(long burstSize)
Assigns a burst size to this band.Band.Builder
dropPrecedence(short prec)
Assigns the drop precedence for this band.Band.Builder
ofType(Band.Type type)
Assigns theBand.Type
of this band.Band.Builder
withRate(long rate)
Assigns a rate to this band.
-
-
-
Method Detail
-
withRate
Band.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
-
burstSize
Band.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
-
dropPrecedence
Band.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
-
ofType
Band.Builder ofType(Band.Type type)
Assigns theBand.Type
of this band.- Parameters:
type
- a band type- Returns:
- this
-
build
Band build()
Builds the band.- Returns:
- a band
-
-