public interface FlightRecorderListener
Modifier and Type | Method | Description |
---|---|---|
default void |
recorderInitialized |
Receives notification when Flight Recorder is initialized. |
default void |
recordingStateChanged |
Receives notification when the state of a recording changes. |
default void recorderInitialized(FlightRecorder recorder)
This method is also be invoked when a listener is added to an already initialized Flight Recorder.
This method allows clients to implement their own initialization mechanism that is executed before a FlightRecorder
instance is returned by FlightRecorder.getFlightRecorder()
.
FlightRecorder.getFlightRecorder()
or start new recordings.recorder
- Flight Recorder instance, not null
default void recordingStateChanged(Recording recording)
Callback is invoked when a recording reaches the RUNNING
, STOPPED
and CLOSED
state.
recording
- the recording where the state change occurred, not null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jfr/jdk/jfr/FlightRecorderListener.html