Top Description Fields Constructors Methods
jdk.jfr

public final Enum RecordingState

extends Enum<RecordingState>
Class Inheritance

Indicates a state in the life cycle of a recording.
Since
9

Field Summary

Modifier and TypeField and Description
public static final RecordingState
CLOSED

The recording is closed and all resources that are associated with the recording are released.

public static final RecordingState
DELAYED

The recording is scheduled to start with a start time in the future.

public static final RecordingState
NEW

The initial state when a Recording is created.

public static final RecordingState
RUNNING

The recording is recording data and an invocation of the Recording#stop() method will transition the recording to the STOPPED state.

public static final RecordingState
STOPPED

The recording is stopped and is holding recorded data that can be dumped to disk.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static RecordingState
public static RecordingState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLOSEDback to summary
public static final RecordingState CLOSED

The recording is closed and all resources that are associated with the recording are released.

Nothing that can be done with a recording from this point, and it's no longer retrievable from the FlightRecorder#getRecordings() method.

DELAYEDback to summary
public static final RecordingState DELAYED

The recording is scheduled to start with a start time in the future.

An invocation of the Recording#start() method will transition the recording to the RUNNING state.

NEWback to summary
public static final RecordingState NEW

The initial state when a Recording is created.

RUNNINGback to summary
public static final RecordingState RUNNING

The recording is recording data and an invocation of the Recording#stop() method will transition the recording to the STOPPED state.

STOPPEDback to summary
public static final RecordingState STOPPED

The recording is stopped and is holding recorded data that can be dumped to disk.

An invocation of the Recording#close() method will release the data and transition the recording to the CLOSED state.

Constructor Detail

RecordingStateback to summary
private RecordingState()

Method Detail

valueOfback to summary
public static RecordingState valueOf(String name)
valuesback to summary
public static RecordingState[] values()