Package | Description |
---|---|
org.axonframework.eventsourcing |
Classes related to event sourcing.
|
Modifier and Type | Method and Description |
---|---|
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.aggregateFactory(AggregateFactory<T> aggregateFactory)
Sets the
AggregateFactory used to create new Aggregate instances. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.aggregateModel(AggregateModel<T> aggregateModel) |
static <T> EventSourcingRepository.Builder<T> |
EventSourcingRepository.builder(Class<T> aggregateType)
Instantiate a Builder to be able to create a
EventSourcingRepository for aggregate type T . |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.cache(Cache cache)
Sets the
Cache which services repositories for specific aggregate types. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.eventStore(EventStore eventStore)
Sets the
EventStore that holds the event stream this repository needs to event source an Aggregate. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.eventStreamFilter(Predicate<? super DomainEventMessage<?>> filter)
Sets the
Predicate used to filter events when reading from the EventStore. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.filterByAggregateType()
Configures a filter that rejects events with a different Aggregate type than the one specified by this
Repository's
AggregateModel . |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.handlerDefinition(HandlerDefinition handlerDefinition) |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.lockFactory(LockFactory lockFactory)
Sets the
LockFactory used to lock an aggregate. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.parameterResolverFactory(ParameterResolverFactory parameterResolverFactory) |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.repositoryProvider(RepositoryProvider repositoryProvider)
Sets the
RepositoryProvider which services repositories for specific aggregate types. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.snapshotTriggerDefinition(SnapshotTriggerDefinition snapshotTriggerDefinition)
Sets the
SnapshotTriggerDefinition specifying when to trigger a snapshot for an Aggregate contained
in this repository. |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.spanFactory(RepositorySpanFactory spanFactory) |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.spanFactory(SpanFactory spanFactory)
Deprecated.
|
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.subtype(Class<? extends T> subtype) |
EventSourcingRepository.Builder<T> |
EventSourcingRepository.Builder.subtypes(Set<Class<? extends T>> subtypes) |
Constructor and Description |
---|
CachingEventSourcingRepository(EventSourcingRepository.Builder<T> builder)
Instantiate a
CachingEventSourcingRepository based on the fields contained in the
EventSourcingRepository.Builder . |
EventSourcingRepository(EventSourcingRepository.Builder<T> builder)
Instantiate a
EventSourcingRepository based on the fields contained in the EventSourcingRepository.Builder . |
Copyright © 2010–2024. All rights reserved.