Package org.axonframework.modelling.saga.repository
@NullMarked
package org.axonframework.modelling.saga.repository
The
SagaStore abstraction and the decorators over it.
A SagaStore finds, loads, stores and deletes saga instances together with their association values. Backing
implementations live in the inmemory, jpa and jdbc sub-packages;
CachingSagaStore decorates any of them with a cache for saga
instances and for association lookups.
These types retain the synchronous Axon Framework 4 storage behavior and resource-provider model. A store takes no part in transaction management: it obtains its resource from the provider it was given, so its writes commit with whatever else the surrounding transaction covers.
-
ClassDescription
SagaRepositoryimplementation extending from theLockingSagaRepositorydealing with annotated Sagas.Builder class to instantiate aAnnotatedSagaRepository.Saga Repository implementation that adds caching behavior to the repository it wraps.Builder class to instantiate aCachingSagaStore.Abstract implementation of a saga repository that locks access to a saga while the saga is being operated on.Abstract Builder class to instantiateLockingSagaRepositoryimplementations.Exception triggered when a new saga instance could not be instantiated.SagaStore<T>Provides a mechanism to find, load update and delete sagas of typeTfrom an underlying storage like a database.Interface describing a Saga entry fetched from a SagaStore.