Interface QueuePacket

  • All Superinterfaces:
    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 Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends QueuePacket> implementedInterface()
        Specified by:
        implementedInterface in interface CommonQueue
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getQueueId

        QueueId getQueueId()
        Return queueId, or null if it is not present.
             
                 id for the specific queue.
             
         
        Returns:
        QueueId queueId, or null if it is not present.
      • requireQueueId

        default @NonNull QueueId 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, or null if it is not present.
             
                 Port this queue is attached to.
             
         
        Returns:
        Uint32 port, or null 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