Package com.jprofiler.api.controller
Class ProbeRecordingOptions
java.lang.Object
com.jprofiler.api.controller.ProbeRecordingOptions
Special probe recording options for calling
Controller.startProbeRecording(String, ProbeRecordingOptions)
.
The default values after constructing an instance of this class are all set to false
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final ProbeRecordingOptions
Same asNONE
, only withevents(true)
.static final ProbeRecordingOptions
No special recordings are active. -
Constructor Summary
ConstructorDescriptionCreate a new instance with the default options described above. -
Method Summary
Modifier and TypeMethodDescriptionconnectionLeaks
(boolean connectionLeaks) Determines whether connection leaks should be recorded for the JDBC probe.events
(boolean events) Determines whether single events should be recorded for the "Events" view of the probe.freeze()
Make these recording options unmodifiable.boolean
Returns if connection leaks are recorded for the JDBC probe.boolean
isEvents()
Returns if single events are recorded for the "Events" view of the probe.
-
Field Details
-
NONE
No special recordings are active. This is the same asconstructing
a new object without calling any further methods. -
EVENTS
Same asNONE
, only withevents(true)
.
-
-
Constructor Details
-
ProbeRecordingOptions
public ProbeRecordingOptions()Create a new instance with the default options described above.
-
-
Method Details
-
events
Determines whether single events should be recorded for the "Events" view of the probe. This setting has no effect when used with a probe that does not have an event view. The default isfalse
.- Parameters:
events
- the new value- Returns:
- this instance
-
connectionLeaks
Determines whether connection leaks should be recorded for the JDBC probe. This setting has no effect when used with other probes. The default isfalse
.- Parameters:
connectionLeaks
- the new value- Returns:
- this instance
-
isEvents
public boolean isEvents()Returns if single events are recorded for the "Events" view of the probe.- Returns:
- the value
-
isConnectionLeaks
public boolean isConnectionLeaks()Returns if connection leaks are recorded for the JDBC probe.- Returns:
- the value
-
freeze
Make these recording options unmodifiable. Further modification attempts will result in aUnsupportedOperationException
.- Returns:
- this instance
-