public final class LoggingParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.time.Duration |
loggingInterval |
private ProblemDefinition |
problemDefinition |
Constructor and Description |
---|
LoggingParameters(ProblemDefinition problemDefinition,
java.time.Duration loggingInterval)
Instantiates new logging parameters.
|
Modifier and Type | Method and Description |
---|---|
java.time.Duration |
loggingInterval()
Gets the logging interval value.
|
ProblemDefinition |
problemDefinition() |
java.lang.String |
toString() |
private final ProblemDefinition problemDefinition
private final java.time.Duration loggingInterval
public LoggingParameters(ProblemDefinition problemDefinition, java.time.Duration loggingInterval)
Instantiates new logging parameters.
problemDefinition
- the problem definitionloggingInterval
- the logging interval in milliseconds. Logging will be enabled if and only if this value is greater than 0. Otherwise (negative value or 0) logging will be switched off.public ProblemDefinition problemDefinition()
public java.time.Duration loggingInterval()
Gets the logging interval value.
null
if logging should be entirely disabledpublic java.lang.String toString()
toString
in class java.lang.Object