public class TaskTimeoutSettings extends Object
Constructor and Description |
---|
TaskTimeoutSettings()
Creates a new
TaskTimeoutSettings with default timeout settings. |
TaskTimeoutSettings(int timeoutMs,
int warningThresholdMs,
int warningIntervalMs)
Creates a new
TaskTimeoutSettings with the provided timeout settings. |
Modifier and Type | Method and Description |
---|---|
int |
getTimeoutMs()
Returns the timeout of the message handler in milliseconds.
|
int |
getWarningIntervalMs()
Returns the interval in milliseconds between warnings.
|
int |
getWarningThresholdMs()
Returns the threshold in milliseconds after which a warning is logged.
|
void |
setTimeoutMs(int timeoutMs)
Sets the timeout of the message handler in milliseconds.
|
void |
setWarningIntervalMs(int warningIntervalMs)
Sets the interval in milliseconds between warnings.
|
void |
setWarningThresholdMs(int warningThresholdMs)
Sets the threshold in milliseconds after which a warning is logged.
|
public TaskTimeoutSettings(int timeoutMs, int warningThresholdMs, int warningIntervalMs)
TaskTimeoutSettings
with the provided timeout settings.timeoutMs
- the timeout in millisecondswarningThresholdMs
- the threshold in milliseconds after which a warning is logged. Setting this to a value
higher than or equal to timeout
will disable warnings.warningIntervalMs
- the interval in milliseconds between warningspublic TaskTimeoutSettings()
TaskTimeoutSettings
with default timeout settings.
This means all timeouts are disabled.public int getTimeoutMs()
public void setTimeoutMs(int timeoutMs)
timeoutMs
- the timeout of the message handler in millisecondspublic int getWarningThresholdMs()
timeout
will disable warnings.public void setWarningThresholdMs(int warningThresholdMs)
timeout
will disable warnings.warningThresholdMs
- the threshold in milliseconds after which a warning is loggedpublic int getWarningIntervalMs()
public void setWarningIntervalMs(int warningIntervalMs)
warningIntervalMs
- the interval in milliseconds between warningsCopyright © 2010–2025. All rights reserved.