Interface PacketQueue
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,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
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetPort()
Return port, ornull
if it is not present.Return queueId, ornull
if it is not present.Class<? extends PacketQueue>
default @NonNull PortNumber
Return port, guaranteed to be non-null.default @NonNull QueueId
Return queueId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.QueuePropertyHeader
getQueueProperty, nonnullQueueProperty
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends PacketQueue> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.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
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
Return port, guaranteed to be non-null.- Returns:
PortNumber
port, guaranteed to be non-null.- Throws:
NoSuchElementException
- if port is not present
-