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

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint32
    Return port, or null if it is not present.
    Return queueId, or null 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 QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends QueuePacket> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface CommonQueue
      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