Class RecordingSettings
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.writer.api.RecordingSettings
-
-
Constructor Summary
Constructors Constructor Description RecordingSettings()Recording will use current time as its start timestamp and will initialize Types.JDK types.RecordingSettings(boolean initializeJDKTypes)Recording will use current time as its start timestampRecordingSettings(long startTimestamp)Recording will initialize Types.JDK types.RecordingSettings(long startTimestamp, boolean initializeJDKTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetStartTimestamp()booleanshouldInitializeJDKTypes()
-
-
-
Constructor Detail
-
RecordingSettings
public RecordingSettings(long startTimestamp, boolean initializeJDKTypes)- Parameters:
startTimestamp- the recording start timestamp in epoch nanoseconds (nanoseconds since 1970-01-01)initializeJDKTypes- should the Types.JDK types be initialized
-
RecordingSettings
public RecordingSettings(boolean initializeJDKTypes)
Recording will use current time as its start timestamp- Parameters:
initializeJDKTypes- should the Types.JDK types be initialized
-
RecordingSettings
public RecordingSettings(long startTimestamp)
Recording will initialize Types.JDK types.- Parameters:
startTimestamp- the recording start timestamp in epoch nanoseconds (nanoseconds since 1970-01-01)
-
RecordingSettings
public RecordingSettings()
Recording will use current time as its start timestamp and will initialize Types.JDK types.
-
-
Method Detail
-
getStartTimestamp
public long getStartTimestamp()
- Returns:
- recording timestamp in epoch nanoseconds (nanoseconds since 1970-01-01)
-
shouldInitializeJDKTypes
public boolean shouldInitializeJDKTypes()
- Returns:
- true if Types.JDK types are to be initialized
-
-