T
- a generic specifying the Saga type contained in this SagaRepository
implementationpublic abstract static class LockingSagaRepository.Builder<T> extends Object
LockingSagaRepository
implementations.
The LockFactory
is defaulted to a pessimistic locking strategy, implemented in the
PessimisticLockFactory
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LockingSagaRepository.Builder<T> |
lockFactory(LockFactory lockFactory)
Sets the
LockFactory used to lock an aggregate. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public LockingSagaRepository.Builder<T> lockFactory(LockFactory lockFactory)
LockFactory
used to lock an aggregate. Defaults to a pessimistic locking strategy,
implemented in the PessimisticLockFactory
.lockFactory
- a LockFactory
used to lock an aggregateprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2018. All rights reserved.