public class ProbeRecordingOptions
extends java.lang.Object
Controller.startProbeRecording(String, ProbeRecordingOptions)
.
The default values after constructing an instance of this class are all set to false
.Modifier and Type | Field and Description |
---|---|
static ProbeRecordingOptions |
EVENTS
Same as
NONE , only with events(true) . |
static ProbeRecordingOptions |
NONE
No special recordings are active.
|
Constructor and Description |
---|
ProbeRecordingOptions()
Create a new instance with the default options described above.
|
Modifier and Type | Method and Description |
---|---|
ProbeRecordingOptions |
connectionLeaks(boolean connectionLeaks)
Determines whether connection leaks should be recorded for the JDBC probe.
|
ProbeRecordingOptions |
events(boolean events)
Determines whether single events should be recorded for the "Events" view of the probe.
|
ProbeRecordingOptions |
freeze()
Make these recording options unmodifiable.
|
boolean |
isConnectionLeaks()
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.
|
public static final ProbeRecordingOptions NONE
constructing
a new object without
calling any further methods.public static final ProbeRecordingOptions EVENTS
NONE
, only with events(true)
.public ProbeRecordingOptions()
public ProbeRecordingOptions events(boolean events)
false
.events
- the new valuepublic ProbeRecordingOptions connectionLeaks(boolean connectionLeaks)
false
.connectionLeaks
- the new valuepublic boolean isEvents()
public boolean isConnectionLeaks()
public ProbeRecordingOptions freeze()
UnsupportedOperationException
.