Package com._1c.g5.v8.dt.telemetry
Interface ITelemetryDump
-
- All Known Implementing Classes:
CompositeTelemetryDump
,IterableConvertingTelemetryDump
public interface ITelemetryDump
Telemetry dump access interface. Allows to access anyTelemetryRecord
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEmpty()
Checks if the telemetry dump is emptylong
peekOldestRecordTimestamp()
Requests the timestamp of the oldest record in the dump.TelemetryRecord
pop()
Pops the record of the dump.
-
-
-
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
-
-