Package org.onosproject.net.behaviour
Interface QueueDescription.Builder
-
- All Known Implementing Classes:
DefaultQueueDescription.Builder
- Enclosing interface:
- QueueDescription
public static interface QueueDescription.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueueDescription
build()
Builds an immutable bridge description.QueueDescription.Builder
burst(Long burst)
Returns queue description builder with a given burst.QueueDescription.Builder
dscp(Integer dscp)
Returns queue description builder with given dscp.QueueDescription.Builder
maxRate(Bandwidth maxRate)
Returns queue description builder with max rate.QueueDescription.Builder
minRate(Bandwidth minRate)
Returns queue description builder with a given min rate.QueueDescription.Builder
priority(Long priority)
Returns queue description builder with a given priority.QueueDescription.Builder
queueId(QueueId queueId)
Returns queue description builder with given name.QueueDescription.Builder
type(EnumSet<QueueDescription.Type> type)
Returns queue description builder with given type.
-
-
-
Method Detail
-
queueId
QueueDescription.Builder queueId(QueueId queueId)
Returns queue description builder with given name.- Parameters:
queueId
- queue identifier- Returns:
- queue description builder
-
dscp
QueueDescription.Builder dscp(Integer dscp)
Returns queue description builder with given dscp.- Parameters:
dscp
- dscp- Returns:
- queue description builder
-
type
QueueDescription.Builder type(EnumSet<QueueDescription.Type> type)
Returns queue description builder with given type.- Parameters:
type
- type- Returns:
- queue description builder
-
maxRate
QueueDescription.Builder maxRate(Bandwidth maxRate)
Returns queue description builder with max rate.- Parameters:
maxRate
- Maximum allowed bandwidth- Returns:
- queue description builder
-
minRate
QueueDescription.Builder minRate(Bandwidth minRate)
Returns queue description builder with a given min rate.- Parameters:
minRate
- Minimum guaranteed bandwidth- Returns:
- queue description builder
-
burst
QueueDescription.Builder burst(Long burst)
Returns queue description builder with a given burst.- Parameters:
burst
- burst size- Returns:
- queue description builder
-
priority
QueueDescription.Builder priority(Long priority)
Returns queue description builder with a given priority. small number have higher priority, in range 0 to 0xFFFFFFFF- Parameters:
priority
- priority- Returns:
- queue description builder
-
build
QueueDescription build()
Builds an immutable bridge description.- Returns:
- queue description
-
-