Class TimeoutProperties
java.lang.Object
org.axonframework.extension.springboot.TimeoutProperties
Configuration properties for time limits of processing through the
UnitOfWork and
message handlers in Axon Framework.- Since:
- 4.11.0
- Author:
- Mitchell Herrijgers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTimeout properties formessage handlers.static classTimeout properties for theUnitOfWork. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTimeout settings formessage handlers.Timeout settings for theUnitOfWork.booleanWhether timeouts are enabled.voidsetEnabled(boolean enabled) Sets whether timeouts are enabled.voidSets the timeout settings formessage handlers.voidSets the timeout settings for theUnitOfWork.
-
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 the
MessageHandlerTimeoutannotations.- Returns:
- whether timeouts are enabled
-
setEnabled
public void setEnabled(boolean enabled) Sets whether timeouts are enabled.- Parameters:
enabled- providetrueto enable timeout behavior,falseotherwise.
-
getUnitOfWork
Timeout settings for theUnitOfWork.Default to 30-second timeout, 10-second warning threshold and a warning interval of 1 second for any
Messagetypes backed by aUnitOfWork.- Returns:
- the timeout settings for the
UnitOfWork
-
setUnitOfWork
Sets the timeout settings for theUnitOfWork.- Parameters:
properties- the timeout settings for theUnitOfWork
-
getHandler
Timeout settings formessage 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 formessage handlers.- Parameters:
properties- the timeout settings formessage handlers
-