Class TimeoutProperties.UnitOfWorkTimeoutProperties
java.lang.Object
org.axonframework.extension.springboot.TimeoutProperties.UnitOfWorkTimeoutProperties
- Enclosing class:
TimeoutProperties
Timeout properties for the
UnitOfWork.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTimeout settings for theUnitOfWorkconstructed by theCommandBus.Timeout settings for theUnitOfWorkconstructed by a specificEventProcessors.Timeout settings for theUnitOfWorkconstructed by anyEventProcessor, unless a more specific setting is registered via theevent-processorproperty.Timeout settings for theUnitOfWorkconstructed by theQueryBus.Converts this configuration to aTimeoutUnitOfWorkFactoryConfiguration.voidsetCommandBus(TaskTimeoutSettings commandBus) Sets the timeout settings of theUnitOfWorkconstructed by theCommandBus.voidsetEventProcessors(TaskTimeoutSettings eventProcessors) Sets the timeout settings for theUnitOfWorkconstructed by anyEventProcessorvoidsetQueryBus(TaskTimeoutSettings queryBus) Sets the timeout settings of theUnitOfWorkconstructed by theQueryBus.
-
Constructor Details
-
UnitOfWorkTimeoutProperties
public UnitOfWorkTimeoutProperties()
-
-
Method Details
-
getCommandBus
Timeout settings for theUnitOfWorkconstructed by theCommandBus.Defaults to 60-second timeout, 10-second warning threshold and a warning interval of 1 second. This timeout is used for the entire command handling process.
- Returns:
- the timeout settings the
UnitOfWorkconstructed by theCommandBus
-
setCommandBus
Sets the timeout settings of theUnitOfWorkconstructed by theCommandBus.- Parameters:
commandBus- the timeout settings of theUnitOfWorkconstructed by theCommandBus.
-
getQueryBus
Timeout settings for theUnitOfWorkconstructed by theQueryBus.Defaults to 60-second timeout, 10-second warning threshold and a warning interval of 1 second. This timeout is used for the entire query handling process.
- Returns:
- the timeout settings for the
UnitOfWorkconstructed by theQueryBus
-
setQueryBus
Sets the timeout settings of theUnitOfWorkconstructed by theQueryBus.- Parameters:
queryBus- the timeout settings of theUnitOfWorkconstructed by theQueryBus.
-
getEventProcessors
Timeout settings for theUnitOfWorkconstructed by anyEventProcessor, unless a more specific setting is registered via theevent-processorproperty.Defaults to 60-second timeout, 10-second warning threshold and a warning interval of 1 second.
- Returns:
- the timeout settings for the
UnitOfWorkconstructed by anyEventProcessor
-
setEventProcessors
Sets the timeout settings for theUnitOfWorkconstructed by anyEventProcessor- Parameters:
eventProcessors- the timeout settings for theUnitOfWorkconstructed by anyEventProcessor
-
getEventProcessor
Timeout settings for theUnitOfWorkconstructed by a specificEventProcessors.The key is the name of the event processor, the value is the timeout settings for that event processor. Defaults to an empty map.
- Returns:
- the timeout settings for the
UnitOfWorkconstructed by a specificEventProcessors.
-
mapToConfiguration
Converts this configuration to aTimeoutUnitOfWorkFactoryConfiguration.- Returns:
- the
TimeoutUnitOfWorkFactoryConfigurationbased on this configuration
-