public static final class DefaultBand.Builder extends java.lang.Object implements Band.Builder
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultBand |
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 the
Band.Type of this band. |
Band.Builder |
withRate(long rate)
Assigns a rate to this band.
|
public Band.Builder withRate(long rate)
Band.Builder
withRate
in interface Band.Builder
rate
- a long valuepublic Band.Builder burstSize(long burstSize)
Band.Builder
burstSize
in interface Band.Builder
burstSize
- a long value.public Band.Builder dropPrecedence(short prec)
Band.Builder
dropPrecedence
in interface Band.Builder
prec
- a short valuepublic Band.Builder ofType(Band.Type type)
Band.Builder
Band.Type
of this band.ofType
in interface Band.Builder
type
- a band typepublic DefaultBand build()
Band.Builder
build
in interface Band.Builder