Package com._1c.g5.v8.dt.telemetry
Class IterableConvertingTelemetryDump<T>
java.lang.Object
com._1c.g5.v8.dt.telemetry.IterableConvertingTelemetryDump<T>
- All Implemented Interfaces:
ITelemetryDump
Standard implementation of the telemetry dump that coverts planar iterable of generic timestamped records into the
's.
Can be used for planar telemetry records of any type being convertable to the
Doesn't affect content of the provided iterable
Can be used for planar telemetry records of any type being convertable to the
TelemetryRecord
.Doesn't affect content of the provided iterable
-
Constructor Summary
ConstructorsConstructorDescriptionIterableConvertingTelemetryDump
(Iterable<T> iterable, Function<T, TelemetryRecord> recordConverter) Constructs the telemetry dump using the provided context -
Method Summary
-
Constructor Details
-
IterableConvertingTelemetryDump
public IterableConvertingTelemetryDump(Iterable<T> iterable, Function<T, TelemetryRecord> recordConverter) Constructs the telemetry dump using the provided context- Parameters:
iterable
- The iterable containing the telemetry recordsrecordConverter
- Converter of internal records to the standardTelemetryRecord
's
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:ITelemetryDump
Checks if the telemetry dump is empty- Specified by:
isEmpty
in interfaceITelemetryDump
- Returns:
- True if the dump is empty
-
peekOldestRecordTimestamp
public long peekOldestRecordTimestamp()Description copied from interface:ITelemetryDump
Requests the timestamp of the oldest record in the dump. This action doesn't change the record set access order- Specified by:
peekOldestRecordTimestamp
in interfaceITelemetryDump
- Returns:
- The topmost record timestamp. Cannot be negative or zero
-
pop
Description copied from interface:ITelemetryDump
Pops the record of the dump. The record is being removed from the dump and cannot be accessed again via the dump itself- Specified by:
pop
in interfaceITelemetryDump
- Returns:
- The popped record, may not be
null
-