Package org.elasticsearch.telemetry
Class RecordingInstruments.RecordingLongCounter
java.lang.Object
org.elasticsearch.telemetry.RecordingInstruments.RecordingInstrument
org.elasticsearch.telemetry.RecordingInstruments.RecordingLongCounter
- All Implemented Interfaces:
Instrument
,LongCounter
- Enclosing class:
- RecordingInstruments
public static class RecordingInstruments.RecordingLongCounter
extends RecordingInstruments.RecordingInstrument
implements LongCounter
-
Field Summary
Fields inherited from class org.elasticsearch.telemetry.RecordingInstruments.RecordingInstrument
name
Fields inherited from interface org.elasticsearch.telemetry.metric.LongCounter
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
incrementBy
(long inc) void
incrementBy
(long inc, Map<String, Object> attributes) Methods inherited from class org.elasticsearch.telemetry.RecordingInstruments.RecordingInstrument
call, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.telemetry.metric.Instrument
getName
-
Constructor Details
-
RecordingLongCounter
-
-
Method Details
-
increment
public void increment()- Specified by:
increment
in interfaceLongCounter
-
incrementBy
public void incrementBy(long inc) - Specified by:
incrementBy
in interfaceLongCounter
-
incrementBy
- Specified by:
incrementBy
in interfaceLongCounter
-