Package io.deephaven.extensions.barrage
Class BarragePerformanceLog.SnapshotMetricsHelper
java.lang.Object
io.deephaven.extensions.barrage.BarragePerformanceLog.SnapshotMetricsHelper
- All Implemented Interfaces:
BarrageMessageWriter.WriteMetricsConsumer
- Enclosing class:
BarragePerformanceLog
public static class BarragePerformanceLog.SnapshotMetricsHelper
extends Object
implements BarrageMessageWriter.WriteMetricsConsumer
-
Field Summary
FieldsFields inherited from interface io.deephaven.extensions.barrage.BarrageMessageWriter.WriteMetricsConsumer
NO_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonWrite(long bytesWritten, long writeNanos) Called once the whole message has been written, with its size and how long it took to write.
-
Field Details
-
requestTm
-
tableId
-
tableKey
-
queueNanos
public long queueNanos -
snapshotNanos
public long snapshotNanos
-
-
Constructor Details
-
SnapshotMetricsHelper
public SnapshotMetricsHelper()
-
-
Method Details
-
onWrite
public void onWrite(long bytesWritten, long writeNanos) Description copied from interface:BarrageMessageWriter.WriteMetricsConsumerCalled once the whole message has been written, with its size and how long it took to write. A view that several subscribers share is written once, so this is called once for all of them.- Specified by:
onWritein interfaceBarrageMessageWriter.WriteMetricsConsumer- Parameters:
bytesWritten- the number of bytes in the message, every batch it was written as counted, dictionary batches includedwriteNanos- the elapsed nanoseconds, not CPU time, from starting to encode the message until the visitor returned from its last batch; this includes the visitor's own time, such as delivering each batch
-