public static final class DefaultQueueDescription.Builder extends Object implements QueueDescription.Builder
Modifier and Type | Method and Description |
---|---|
QueueDescription |
build()
Builds an immutable bridge description.
|
DefaultQueueDescription.Builder |
burst(Long burst)
Returns queue description builder with a given burst.
|
DefaultQueueDescription.Builder |
dscp(Integer dscp)
Returns queue description builder with given dscp.
|
DefaultQueueDescription.Builder |
maxRate(Bandwidth maxRate)
Returns queue description builder with max rate.
|
DefaultQueueDescription.Builder |
minRate(Bandwidth minRate)
Returns queue description builder with a given min rate.
|
DefaultQueueDescription.Builder |
priority(Long priority)
Returns queue description builder with a given priority.
|
DefaultQueueDescription.Builder |
queueId(QueueId queueId)
Returns queue description builder with given name.
|
DefaultQueueDescription.Builder |
type(EnumSet<QueueDescription.Type> type)
Returns queue description builder with given type.
|
public QueueDescription build()
QueueDescription.Builder
build
in interface QueueDescription.Builder
public DefaultQueueDescription.Builder queueId(QueueId queueId)
QueueDescription.Builder
queueId
in interface QueueDescription.Builder
queueId
- queue identifierpublic DefaultQueueDescription.Builder dscp(Integer dscp)
QueueDescription.Builder
dscp
in interface QueueDescription.Builder
dscp
- dscppublic DefaultQueueDescription.Builder type(EnumSet<QueueDescription.Type> type)
QueueDescription.Builder
type
in interface QueueDescription.Builder
type
- typepublic DefaultQueueDescription.Builder maxRate(Bandwidth maxRate)
QueueDescription.Builder
maxRate
in interface QueueDescription.Builder
maxRate
- Maximum allowed bandwidthpublic DefaultQueueDescription.Builder minRate(Bandwidth minRate)
QueueDescription.Builder
minRate
in interface QueueDescription.Builder
minRate
- Minimum guaranteed bandwidthpublic DefaultQueueDescription.Builder burst(Long burst)
QueueDescription.Builder
burst
in interface QueueDescription.Builder
burst
- burst sizepublic DefaultQueueDescription.Builder priority(Long priority)
QueueDescription.Builder
priority
in interface QueueDescription.Builder
priority
- priority