-
- All Implemented Interfaces:
-
org.enodeframework.commanding.CommandProcessor
public final class DefaultCommandProcessor implements CommandProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDefaultCommandProcessor.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegeraggregateRootMaxInactiveSecondsprivate IntegercommandMailBoxPersistenceMaxBatchSizeprivate IntegerscanExpiredAggregateIntervalMilliseconds
-
Constructor Summary
Constructors Constructor Description DefaultCommandProcessor(ProcessingCommandHandler processingCommandHandler, ScheduleService scheduleService)
-
Method Summary
Modifier and Type Method Description final IntegergetAggregateRootMaxInactiveSeconds()final UnitsetAggregateRootMaxInactiveSeconds(Integer aggregateRootMaxInactiveSeconds)final IntegergetCommandMailBoxPersistenceMaxBatchSize()final UnitsetCommandMailBoxPersistenceMaxBatchSize(Integer commandMailBoxPersistenceMaxBatchSize)final IntegergetScanExpiredAggregateIntervalMilliseconds()final UnitsetScanExpiredAggregateIntervalMilliseconds(Integer scanExpiredAggregateIntervalMilliseconds)Unitprocess(ProcessingCommand processingCommand)Process the given command. Unitstart()Start processor Unitstop()Stop processor -
-
Constructor Detail
-
DefaultCommandProcessor
DefaultCommandProcessor(ProcessingCommandHandler processingCommandHandler, ScheduleService scheduleService)
-
-
Method Detail
-
getAggregateRootMaxInactiveSeconds
final Integer getAggregateRootMaxInactiveSeconds()
-
setAggregateRootMaxInactiveSeconds
final Unit setAggregateRootMaxInactiveSeconds(Integer aggregateRootMaxInactiveSeconds)
-
getCommandMailBoxPersistenceMaxBatchSize
final Integer getCommandMailBoxPersistenceMaxBatchSize()
-
setCommandMailBoxPersistenceMaxBatchSize
final Unit setCommandMailBoxPersistenceMaxBatchSize(Integer commandMailBoxPersistenceMaxBatchSize)
-
getScanExpiredAggregateIntervalMilliseconds
final Integer getScanExpiredAggregateIntervalMilliseconds()
-
setScanExpiredAggregateIntervalMilliseconds
final Unit setScanExpiredAggregateIntervalMilliseconds(Integer scanExpiredAggregateIntervalMilliseconds)
-
process
Unit process(ProcessingCommand processingCommand)
Process the given command.
-
-
-
-