Class TimeoutProperties
java.lang.Object
org.axonframework.extension.springboot.TimeoutProperties
Configuration properties for time limits of processing transactions and handlers in Axon Framework.
- Since:
- 4.11.0
- Author:
- Mitchell Herrijgers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTimeout settings for message handlers.Timeout settings for transactions (UnitOfWork).booleanWhether timeouts are enabled.voidsetEnabled(boolean enabled) Sets whether timeouts are enabled.voidSets the timeout settings for message handlers.voidSets the timeout settings for transactions.
-
Constructor Details
-
TimeoutProperties
public TimeoutProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether timeouts are enabled. Defaults totrue. Setting this to false disabled all timeouts, even the ones set through theMessageHandlerTimeoutannotations.- Returns:
- whether timeouts are enabled
-
setEnabled
public void setEnabled(boolean enabled) Sets whether timeouts are enabled. -
getTransaction
Timeout settings for transactions (UnitOfWork). Default to 30-second timeout, 10-second warning threshold and a warning interval of 1 second for all types of transactions.- Returns:
- the timeout settings for transactions
-
setTransaction
Sets the timeout settings for transactions.- Parameters:
properties- the timeout settings for transactions
-
getHandler
Timeout settings for message handlers. Defaults to 30-second timeout, 10-second warning threshold and a warning interval of 1 second for all types of message handlers.- Returns:
- the timeout settings for message handlers
-
setHandler
Sets the timeout settings for message handlers.- Parameters:
properties- the timeout settings for message handlers
-