Interface ITelemetryDump

  • All Known Implementing Classes:
    CompositeTelemetryDump, IterableConvertingTelemetryDump

    public interface ITelemetryDump
    Telemetry dump access interface. Allows to access any TelemetryRecord adaptable telemetry records in timestamp-ordered sequence (oldest first) The implementation of this interface aren't necessary to be thread-safe, as the telemetry collection is being performed in externally synchronized manner
    • Method Detail

      • isEmpty

        boolean isEmpty()
        Checks if the telemetry dump is empty
        Returns:
        True if the dump is empty
      • peekOldestRecordTimestamp

        long peekOldestRecordTimestamp()
        Requests the timestamp of the oldest record in the dump. This action doesn't change the record set access order
        Returns:
        The topmost record timestamp. Cannot be negative or zero
        Throws:
        IllegalStateException - in case if accessed when the dump is already empty
      • pop

        TelemetryRecord pop()
        Pops the record of the dump. The record is being removed from the dump and cannot be accessed again via the dump itself
        Returns:
        The popped record, may not be null
        Throws:
        IllegalStateException - in case if accessed when the dump is already empty