Interface PacketQueue
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
,QueuePropertyHeader
- All Known Subinterfaces:
Queues
@Generated("mdsal-binding-generator") public interface PacketQueue extends org.opendaylight.yangtools.yang.binding.DataObject, QueuePropertyHeader
This class represents the following YANG schema fragment defined in module openflow-protocol
grouping packet-queue { leaf queue-id { type oft:queue-id; } leaf port { type oft:port-number; } uses queue-property-header; }
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PortNumber
getPort()
Return port, ornull
if it is not present.QueueId
getQueueId()
Return queueId, ornull
if it is not present.Class<? extends PacketQueue>
implementedInterface()
default @NonNull PortNumber
requirePort()
Return port, guaranteed to be non-null.default @NonNull QueueId
requireQueueId()
Return queueId, guaranteed to be non-null.-
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.QueuePropertyHeader
getQueueProperty, nonnullQueueProperty
-
-
-
-
Method Detail
-
implementedInterface
Class<? extends PacketQueue> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceQueuePropertyHeader
-
getQueueId
QueueId getQueueId()
Return queueId, ornull
if it is not present.- Returns:
QueueId
queueId, ornull
if it is not present.
-
requireQueueId
default @NonNull QueueId requireQueueId()
Return queueId, guaranteed to be non-null.- Returns:
QueueId
queueId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if queueId is not present
-
getPort
PortNumber getPort()
Return port, ornull
if it is not present.- Returns:
PortNumber
port, ornull
if it is not present.
-
requirePort
default @NonNull PortNumber requirePort()
Return port, guaranteed to be non-null.- Returns:
PortNumber
port, guaranteed to be non-null.- Throws:
NoSuchElementException
- if port is not present
-
-