Class G1HeapSummaryHandler
java.lang.Object
io.opentelemetry.instrumentation.runtimemetrics.java17.internal.memory.G1HeapSummaryHandler
- All Implemented Interfaces:
RecordedEventHandler,AutoCloseable,Consumer<jdk.jfr.consumer.RecordedEvent>,Predicate<jdk.jfr.consumer.RecordedEvent>
This class handles G1HeapSummary JFR events. For GC purposes they come in pairs. Basic heap
values are sourced from GCHeapSummary - this is young generational details This class is internal
and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(jdk.jfr.consumer.RecordedEvent ev) voidclose()JFR event name (e.g. jdk.ObjectAllocationInNewTLAB)Return theJfrFeaturethis handler is associated with.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.instrumentation.runtimemetrics.java17.internal.RecordedEventHandler
getPollingDuration, getThreshold, test
-
Constructor Details
-
G1HeapSummaryHandler
public G1HeapSummaryHandler(io.opentelemetry.api.metrics.Meter meter)
-
-
Method Details
-
getEventName
Description copied from interface:RecordedEventHandlerJFR event name (e.g. jdk.ObjectAllocationInNewTLAB)- Specified by:
getEventNamein interfaceRecordedEventHandler- Returns:
- String representation of JFR event name
-
getFeature
Description copied from interface:RecordedEventHandlerReturn theJfrFeaturethis handler is associated with.- Specified by:
getFeaturein interfaceRecordedEventHandler
-
accept
public void accept(jdk.jfr.consumer.RecordedEvent ev) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRecordedEventHandler
-