Class RecordingStream
java.lang.Object
jdk.jfr.consumer.RecordingStream
- All Implemented Interfaces:
java.lang.AutoCloseable
public class RecordingStream
extends java.lang.Object
implements java.lang.AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()disable(java.lang.String s) enable(java.lang.String s) voidonEvent(java.lang.String name, java.util.function.Consumer<RecordedEvent> consumer) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RecordingStream
public RecordingStream()
-
-
Method Details
-
startAsync
public void startAsync() -
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable
-
enable
-
enable
-
disable
-
onEvent
-