Class G1GarbageCollectionHandler
java.lang.Object
io.opentelemetry.instrumentation.runtimemetrics.java17.internal.garbagecollection.G1GarbageCollectionHandler
- All Implemented Interfaces:
RecordedEventHandler,AutoCloseable,Consumer<RecordedEvent>,Predicate<RecordedEvent>
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(RecordedEvent ev) JFR event name (e.g. jdk.ObjectAllocationInNewTLAB)Return theJfrFeaturethis handler is associated with.Optionally returns a polling duration for JFR events, if presentMethods 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
close, getThreshold, test
-
Constructor Details
-
G1GarbageCollectionHandler
public G1GarbageCollectionHandler(io.opentelemetry.api.metrics.Meter meter)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<RecordedEvent>
-
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
-
getPollingDuration
Description copied from interface:RecordedEventHandlerOptionally returns a polling duration for JFR events, if present- Specified by:
getPollingDurationin interfaceRecordedEventHandler- Returns:
OptionalofDurationrepresenting polling duration; emptyOptionalif no polling
-