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 a saga. |
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 a saga. 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–2023. All rights reserved.