Package org.onosproject.net.behaviour
Class DefaultQueueDescription
- java.lang.Object
-
- org.onosproject.net.AbstractDescription
-
- org.onosproject.net.behaviour.DefaultQueueDescription
-
- All Implemented Interfaces:
Annotated
,QueueDescription
,Description
@Beta public final class DefaultQueueDescription extends AbstractDescription implements QueueDescription
Default implementation of Queue description entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultQueueDescription.Builder
-
Nested classes/interfaces inherited from interface org.onosproject.net.behaviour.QueueDescription
QueueDescription.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultQueueDescription.Builder
builder()
java.util.Optional<java.lang.Long>
burst()
Returns burst, Valid only in specific type.java.util.Optional<java.lang.Integer>
dscp()
Returns dscp in range 0 to 63.boolean
equals(java.lang.Object obj)
int
hashCode()
java.util.Optional<Bandwidth>
maxRate()
Returns max rate, Valid only in specific type.java.util.Optional<Bandwidth>
minRate()
Returns min rate, Valid only in specific type.java.util.Optional<java.lang.Long>
priority()
Returns priority, Valid only in specific type.QueueId
queueId()
Returns queue identifier.java.lang.String
toString()
java.util.EnumSet<QueueDescription.Type>
type()
Returns type.-
Methods inherited from class org.onosproject.net.AbstractDescription
annotations
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.Description
annotations
-
-
-
-
Field Detail
-
MIN_DSCP
public static final int MIN_DSCP
- See Also:
- Constant Field Values
-
MAX_DSCP
public static final int MAX_DSCP
- See Also:
- Constant Field Values
-
-
Method Detail
-
queueId
public QueueId queueId()
Description copied from interface:QueueDescription
Returns queue identifier.- Specified by:
queueId
in interfaceQueueDescription
- Returns:
- queue identifier
-
type
public java.util.EnumSet<QueueDescription.Type> type()
Description copied from interface:QueueDescription
Returns type.- Specified by:
type
in interfaceQueueDescription
- Returns:
- type
-
dscp
public java.util.Optional<java.lang.Integer> dscp()
Description copied from interface:QueueDescription
Returns dscp in range 0 to 63.- Specified by:
dscp
in interfaceQueueDescription
- Returns:
- dscp
-
maxRate
public java.util.Optional<Bandwidth> maxRate()
Description copied from interface:QueueDescription
Returns max rate, Valid only in specific type.- Specified by:
maxRate
in interfaceQueueDescription
- Returns:
- Maximum allowed bandwidth, in bit/s.
-
minRate
public java.util.Optional<Bandwidth> minRate()
Description copied from interface:QueueDescription
Returns min rate, Valid only in specific type.- Specified by:
minRate
in interfaceQueueDescription
- Returns:
- Minimum guaranteed bandwidth, in bit/s.
-
burst
public java.util.Optional<java.lang.Long> burst()
Description copied from interface:QueueDescription
Returns burst, Valid only in specific type.- Specified by:
burst
in interfaceQueueDescription
- Returns:
- Burst size, in bits
-
priority
public java.util.Optional<java.lang.Long> priority()
Description copied from interface:QueueDescription
Returns priority, Valid only in specific type. small number have higher priority, in range 0 to 0xFFFFFFFF- Specified by:
priority
in interfaceQueueDescription
- Returns:
- priority
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractDescription
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractDescription
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static DefaultQueueDescription.Builder builder()
-
-