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.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PortNumbergetPort()Return port, ornullif it is not present.QueueIdgetQueueId()Return queueId, ornullif it is not present.Class<? extends PacketQueue>implementedInterface()default @NonNull PortNumberrequirePort()Return port, guaranteed to be non-null.default @NonNull QueueIdrequireQueueId()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:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject- Specified by:
implementedInterfacein interfaceQueuePropertyHeader
-
getQueueId
QueueId getQueueId()
Return queueId, ornullif it is not present.- Returns:
QueueIdqueueId, ornullif it is not present.
-
requireQueueId
default @NonNull QueueId requireQueueId()
Return queueId, guaranteed to be non-null.- Returns:
QueueIdqueueId, guaranteed to be non-null.- Throws:
NoSuchElementException- if queueId is not present
-
getPort
PortNumber getPort()
Return port, ornullif it is not present.- Returns:
PortNumberport, ornullif it is not present.
-
requirePort
default @NonNull PortNumber requirePort()
Return port, guaranteed to be non-null.- Returns:
PortNumberport, guaranteed to be non-null.- Throws:
NoSuchElementException- if port is not present
-
-