Class AbstractThreadDispatchingHandler
java.lang.Object
io.opentelemetry.instrumentation.runtimemetrics.java17.internal.AbstractThreadDispatchingHandler
- All Implemented Interfaces:
RecordedEventHandler,AutoCloseable,Consumer<RecordedEvent>,Predicate<RecordedEvent>
- Direct Known Subclasses:
LongLockHandler,NetworkReadHandler,NetworkWriteHandler,ObjectAllocationInNewTlabHandler,ObjectAllocationOutsideTlabHandler
public abstract class AbstractThreadDispatchingHandler
extends Object
implements RecordedEventHandler
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) abstract Consumer<RecordedEvent> createPerThreadSummarizer(String threadName) abstract StringJFR event name (e.g. jdk.ObjectAllocationInNewTLAB)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
close, getFeature, getPollingDuration, getThreshold, test
-
Constructor Details
-
AbstractThreadDispatchingHandler
-
-
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
-
createPerThreadSummarizer
-
accept
- Specified by:
acceptin interfaceConsumer<RecordedEvent>
-