Package org.onosproject.net.behaviour
Interface QueueConfigBehaviour
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
@Beta public interface QueueConfigBehaviour extends HandlerBehaviour
Behaviour for handling various operations for queue configurations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addQueue(QueueDescription queueDesc)
Create a queue to a device.void
deleteQueue(QueueId queueId)
Delete a queue from a device.QueueDescription
getQueue(QueueDescription queueDesc)
Obtain a queue configured on a device.Collection<QueueDescription>
getQueues()
Obtain all queues configured on a device.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
getQueues
Collection<QueueDescription> getQueues()
Obtain all queues configured on a device.- Returns:
- a list of queue descriptions
-
getQueue
QueueDescription getQueue(QueueDescription queueDesc)
Obtain a queue configured on a device.- Parameters:
queueDesc
- queue description- Returns:
- a queue description
-
addQueue
boolean addQueue(QueueDescription queueDesc)
Create a queue to a device.- Parameters:
queueDesc
- a queue description- Returns:
- true if succeeds, or false
-
deleteQueue
void deleteQueue(QueueId queueId)
Delete a queue from a device.- Parameters:
queueId
- queue identifier
-
-