| Package | Description |
|---|---|
| org.axonframework.contextsupport.spring | |
| org.axonframework.eventsourcing |
Classes related to event sourcing.
|
| org.axonframework.repository |
Classes related to the repository interface and implementations.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends LockManager> |
LockingStrategy.getLockManagerType()
Returns the type of LockManager that belongs to this strategy.
|
| Constructor and Description |
|---|
CachingEventSourcingRepository(AggregateFactory<T> aggregateFactory,
EventStore eventStore,
LockManager lockManager)
Initializes a repository with a the given
aggregateFactory and a pessimistic locking strategy. |
EventSourcingRepository(AggregateFactory<T> aggregateFactory,
EventStore eventStore,
LockManager lockManager)
Initialize a repository with the given locking strategy.
|
EventSourcingRepository(Class<T> aggregateType,
EventStore eventStore,
LockManager lockManager)
Initialize a repository with the given locking strategy, using a GenericAggregateFactory to create new aggregate
instances.
|
HybridJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
LockManager lockManager)
Initializes a Hybrid Repository that stored entities of the given
aggregateType and a locking
mechanism based on the given lockManager. |
HybridJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
String aggregateTypeIdentifier,
LockManager lockManager)
Initializes a Hybrid Repository that stored entities of the given
aggregateType and a locking
mechanism based on the given lockManager. |
| Modifier and Type | Class and Description |
|---|---|
class |
NullLockManager
LockManager implementation that does nothing.
|
class |
OptimisticLockManager
Implementation of the
LockManager that uses an optimistic locking strategy. |
class |
PessimisticLockManager
Implementation of the
LockManager that uses a pessimistic locking strategy. |
| Constructor and Description |
|---|
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
LockManager lockManager)
Initialize a repository for storing aggregates of the given
aggregateType with an additional
lockManager. |
LockingRepository(Class<T> aggregateType,
LockManager lockManager)
Initialize the repository with the given
lockManager. |
Copyright © 2010-2014. All Rights Reserved.