Package org.onosproject.net.behaviour
Class DefaultQueueDescription.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.DefaultQueueDescription.Builder
-
- All Implemented Interfaces:
QueueDescription.Builder
- Enclosing class:
- DefaultQueueDescription
public static final class DefaultQueueDescription.Builder extends Object implements QueueDescription.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
build
public QueueDescription build()
Description copied from interface:QueueDescription.Builder
Builds an immutable bridge description.- Specified by:
build
in interfaceQueueDescription.Builder
- Returns:
- queue description
-
queueId
public DefaultQueueDescription.Builder queueId(QueueId queueId)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with given name.- Specified by:
queueId
in interfaceQueueDescription.Builder
- Parameters:
queueId
- queue identifier- Returns:
- queue description builder
-
dscp
public DefaultQueueDescription.Builder dscp(Integer dscp)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with given dscp.- Specified by:
dscp
in interfaceQueueDescription.Builder
- Parameters:
dscp
- dscp- Returns:
- queue description builder
-
type
public DefaultQueueDescription.Builder type(EnumSet<QueueDescription.Type> type)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with given type.- Specified by:
type
in interfaceQueueDescription.Builder
- Parameters:
type
- type- Returns:
- queue description builder
-
maxRate
public DefaultQueueDescription.Builder maxRate(Bandwidth maxRate)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with max rate.- Specified by:
maxRate
in interfaceQueueDescription.Builder
- Parameters:
maxRate
- Maximum allowed bandwidth- Returns:
- queue description builder
-
minRate
public DefaultQueueDescription.Builder minRate(Bandwidth minRate)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with a given min rate.- Specified by:
minRate
in interfaceQueueDescription.Builder
- Parameters:
minRate
- Minimum guaranteed bandwidth- Returns:
- queue description builder
-
burst
public DefaultQueueDescription.Builder burst(Long burst)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with a given burst.- Specified by:
burst
in interfaceQueueDescription.Builder
- Parameters:
burst
- burst size- Returns:
- queue description builder
-
priority
public DefaultQueueDescription.Builder priority(Long priority)
Description copied from interface:QueueDescription.Builder
Returns queue description builder with a given priority. small number have higher priority, in range 0 to 0xFFFFFFFF- Specified by:
priority
in interfaceQueueDescription.Builder
- Parameters:
priority
- priority- Returns:
- queue description builder
-
-