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
All Known Subinterfaces:
Mirrors, PeerHeader, PeerSession, Stats

@Generated("mdsal-binding-generator") public interface Timestamp extends org.opendaylight.yangtools.yang.binding.DataObject
The time when the encapsulated routes were received (one may also think of this as the time when they were installed in the Adj-RIB-In), expressed in seconds and microseconds since midnight (zero hour), January 1, 1970 (UTC). If zero, time is unavailable. Precision of the timestamp is implementation- dependent.

This class represents the following YANG schema fragment defined in module bmp-message

 grouping timestamp {
   leaf timestamp-sec {
     type yang:timestamp;
     default 0;
   }
   leaf timestamp-micro {
     type yang:timestamp;
     default 0;
   }
 }
 
  • 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.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp
    Return timestampMicro, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp
    Return timestampSec, or null if it is not present.
    Class<? extends Timestamp>
     
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp
    Return timestampMicro, guaranteed to be non-null.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp
    Return timestampSec, guaranteed to be non-null.
  • 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 Timestamp> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getTimestampSec

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp getTimestampSec()
      Return timestampSec, or null if it is not present.
           
               Timestamp with seconds precision.
           
       
      Returns:
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp timestampSec, or null if it is not present.
    • requireTimestampSec

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp requireTimestampSec()
      Return timestampSec, guaranteed to be non-null.
           
               Timestamp with seconds precision.
           
       
      Returns:
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp timestampSec, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if timestampSec is not present
    • getTimestampMicro

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp getTimestampMicro()
      Return timestampMicro, or null if it is not present.
           
               Timestamp with microseconds precision.
           
       
      Returns:
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp timestampMicro, or null if it is not present.
    • requireTimestampMicro

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp requireTimestampMicro()
      Return timestampMicro, guaranteed to be non-null.
           
               Timestamp with microseconds precision.
           
       
      Returns:
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp timestampMicro, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if timestampMicro is not present