public interface FlightRecorderListener
| Modifier and Type | Method and Description |
|---|---|
default void |
recorderInitialized(FlightRecorder recorder)
Receives notification when Flight Recorder is initialized.
|
default void |
recordingStateChanged(Recording recording)
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().
recorder - Flight Recorder instance, not nullFlightRecorder.addListener(FlightRecorderListener)FlightRecorder.getFlightRecorder() or start new recordings.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
nullFlightRecorder.addListener(FlightRecorderListener),
RecordingState