Interface QueuePacket
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,CommonQueue
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
NodeQueue
,PacketQueues
,Queue
@Generated("mdsal-binding-generator")
public interface QueuePacket
extends org.opendaylight.yangtools.yang.binding.DataObject, CommonQueue
Openflow queue description structure.
This class represents the following YANG schema fragment defined in module opendaylight-queue-types
grouping queue-packet { leaf queue-id { type queue-id; } leaf port { type uint32; } uses common-queue; }
-
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 TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint32
getPort()
Return port, ornull
if it is not present.Return queueId, ornull
if it is not present.Class<? extends QueuePacket>
default @NonNull org.opendaylight.yangtools.yang.common.Uint32
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.flow.types.queue.rev130925.CommonQueue
getProperty, requireProperty
-
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 QueuePacket> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceCommonQueue
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getQueueId
QueueId getQueueId()Return queueId, ornull
if it is not present.id for the specific queue.
- Returns:
QueueId
queueId, ornull
if it is not present.
-
requireQueueId
Return queueId, guaranteed to be non-null.id for the specific queue.
- Returns:
QueueId
queueId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if queueId is not present
-
getPort
org.opendaylight.yangtools.yang.common.Uint32 getPort()Return port, ornull
if it is not present.Port this queue is attached to.
- Returns:
Uint32
port, ornull
if it is not present.
-
requirePort
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requirePort()Return port, guaranteed to be non-null.Port this queue is attached to.
- Returns:
Uint32
port, guaranteed to be non-null.- Throws:
NoSuchElementException
- if port is not present
-