Class Packet

    • Constructor Summary

      Constructors 
      Constructor Description
      Packet​(Header header, io.netty.buffer.ByteBuf buffer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getObservationDomainId()
      Returns the observation domain ID as specified by the underlying packet used to generate these records.
      java.util.stream.Stream<java.lang.Iterable<Value<?>>> getRecords()  
      long getSequenceNumber()
      Returns the sequence number as provided by the underlying packet used to generate these records.
      java.util.Iterator<Record> iterator()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • header

        public final Header header
      • records

        public final java.util.List<Record> records
    • Method Detail

      • iterator

        public java.util.Iterator<Record> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Record>
      • getObservationDomainId

        public long getObservationDomainId()
        Description copied from interface: RecordProvider
        Returns the observation domain ID as specified by the underlying packet used to generate these records.
        Specified by:
        getObservationDomainId in interface RecordProvider
        Returns:
        the observation domain ID or 0 if there is no such concept available.
      • getSequenceNumber

        public long getSequenceNumber()
        Description copied from interface: RecordProvider
        Returns the sequence number as provided by the underlying packet used to generate these records.
        Specified by:
        getSequenceNumber in interface RecordProvider
        Returns:
        the sequence number
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object