Class LockingRepository.Builder<T>

java.lang.Object
org.axonframework.modelling.command.AbstractRepository.Builder<T>
org.axonframework.modelling.command.LockingRepository.Builder<T>
Type Parameters:
T - a generic specifying the Aggregate type contained in this Repository implementation
Direct Known Subclasses:
EventSourcingRepository.Builder, GenericJpaRepository.Builder, GenericJpaRepository.Builder
Enclosing class:
LockingRepository<T,A extends Aggregate<T>>

protected abstract static class LockingRepository.Builder<T> extends AbstractRepository.Builder<T>
Abstract Builder class to instantiate LockingRepository implementations.

The LockFactory is defaulted to a pessimistic locking strategy, implemented in the PessimisticLockFactory. The SpanFactory is defaulted to a NoOpSpanFactory. A goal of this Builder goal is to create an AggregateModel specifying generic T as the aggregate type to be stored. All aggregates in this repository must be instanceOf this aggregate type. To instantiate this AggregateModel, either an AggregateModel can be provided directly or an aggregateType of type Class can be used. The latter will internally resolve to an AggregateModel. Thus, either the AggregateModel or the aggregateType should be provided.