Package org.onosproject.net.behaviour
Interface QosDescription.Builder
-
- All Known Implementing Classes:
DefaultQosDescription.Builder
- Enclosing interface:
- QosDescription
public static interface QosDescription.Builder
Builder of qos description entities.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QosDescription
build()
Builds an immutable qos description.QosDescription.Builder
cbs(Long cbs)
Returns qos description builder with a given cbs.QosDescription.Builder
cir(Long cir)
Returns qos description builder with a given cir.QosDescription.Builder
maxRate(Bandwidth maxRate)
Returns qos description builder with given maxRate.QosDescription.Builder
qosId(QosId qosId)
Returns qos description builder with a given name.QosDescription.Builder
queues(Map<Long,QueueDescription> queues)
Returns qos description builder with a given queues.QosDescription.Builder
type(QosDescription.Type type)
Returns qos description builder with a given type.
-
-
-
Method Detail
-
qosId
QosDescription.Builder qosId(QosId qosId)
Returns qos description builder with a given name.- Parameters:
qosId
- qos identifier- Returns:
- bridge description builder
-
type
QosDescription.Builder type(QosDescription.Type type)
Returns qos description builder with a given type.- Parameters:
type
- qos type- Returns:
- bridge description builder
-
maxRate
QosDescription.Builder maxRate(Bandwidth maxRate)
Returns qos description builder with given maxRate.- Parameters:
maxRate
- qos max rate- Returns:
- qos description builder
-
cir
QosDescription.Builder cir(Long cir)
Returns qos description builder with a given cir.- Parameters:
cir
- in bytes of IP packets per second- Returns:
- qos description builder
-
cbs
QosDescription.Builder cbs(Long cbs)
Returns qos description builder with a given cbs.- Parameters:
cbs
- in bytes and represents a token bucket- Returns:
- qos description builder
-
queues
QosDescription.Builder queues(Map<Long,QueueDescription> queues)
Returns qos description builder with a given queues.- Parameters:
queues
- the map from queue numbers to Queue records- Returns:
- qos description builder
-
build
QosDescription build()
Builds an immutable qos description.- Returns:
- qos description
-
-