@ConfigurationProperties(prefix="axon.timeout") public class TimeoutProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeoutProperties.MessageHandlerTimeoutProperties |
static class |
TimeoutProperties.TransactionTimeoutProperties |
Constructor and Description |
---|
TimeoutProperties() |
Modifier and Type | Method and Description |
---|---|
TimeoutProperties.MessageHandlerTimeoutProperties |
getHandler()
Timeout settings for message handlers.
|
TimeoutProperties.TransactionTimeoutProperties |
getTransaction()
Timeout settings for transactions (
UnitOfWork ). |
boolean |
isEnabled()
Whether timeouts are enabled.
|
void |
setEnabled(boolean enabled)
Sets whether timeouts are enabled.
|
void |
setHandler(TimeoutProperties.MessageHandlerTimeoutProperties properties)
Sets the timeout settings for message handlers.
|
void |
setTransaction(TimeoutProperties.TransactionTimeoutProperties properties)
Sets the timeout settings for transactions.
|
public boolean isEnabled()
true
. Setting this to false disabled all timeouts, even the
ones set through the MessageHandlerTimeout
annotations.public void setEnabled(boolean enabled)
public TimeoutProperties.TransactionTimeoutProperties getTransaction()
UnitOfWork
). Default to 30-second timeout, 10-second warning threshold
and a warning interval of 1 second for all types of transactions.public void setTransaction(TimeoutProperties.TransactionTimeoutProperties properties)
properties
- the timeout settings for transactionspublic TimeoutProperties.MessageHandlerTimeoutProperties getHandler()
public void setHandler(TimeoutProperties.MessageHandlerTimeoutProperties properties)
properties
- the timeout settings for message handlersCopyright © 2010–2025. All rights reserved.