| Package | Description |
|---|---|
| org.axonframework.eventsourcing |
Classes related to event sourcing.
|
| Modifier and Type | Field and Description |
|---|---|
static SnapshotTrigger |
NoSnapshotTriggerDefinition.TRIGGER
A singleton instance of a
SnapshotTrigger that does nothing. |
| Modifier and Type | Method and Description |
|---|---|
SnapshotTrigger |
EventSourcedAggregate.getSnapshotTrigger()
The trigger instance that monitors this aggregate to trigger a snapshot
|
SnapshotTrigger |
NoSnapshotTriggerDefinition.prepareTrigger(Class<?> aggregateType) |
SnapshotTrigger |
EventCountSnapshotTriggerDefinition.prepareTrigger(Class<?> aggregateType) |
SnapshotTrigger |
SnapshotTriggerDefinition.prepareTrigger(Class<?> aggregateType)
Prepares a new trigger for an aggregate with the given
aggregateIdentifier and aggregateType. |
SnapshotTrigger |
EventCountSnapshotTriggerDefinition.reconfigure(Class<?> aggregateType,
SnapshotTrigger trigger) |
default SnapshotTrigger |
SnapshotTriggerDefinition.reconfigure(Class<?> aggregateType,
SnapshotTrigger trigger)
Reconfigure the necessary infrastructure components in the given
trigger instance, which may have
been lost in the (de)serialization process. |
| Modifier and Type | Method and Description |
|---|---|
static <T> EventSourcedAggregate<T> |
EventSourcedAggregate.initialize(Callable<T> aggregateFactory,
AggregateModel<T> inspector,
EventBus eventBus,
RepositoryProvider repositoryProvider,
SnapshotTrigger snapshotTrigger)
Initializes an EventSourcedAggregate instance using the given
aggregateFactory, based on the given inspector, which publishes events to the given eventBus and stores events in the given eventStore. |
static <T> EventSourcedAggregate<T> |
EventSourcedAggregate.initialize(Callable<T> aggregateFactory,
AggregateModel<T> inspector,
EventBus eventBus,
SnapshotTrigger snapshotTrigger)
Initializes an EventSourcedAggregate instance using the given
aggregateFactory, based on the given inspector, which publishes events to the given eventBus and stores events in the given eventStore. |
static <T> EventSourcedAggregate<T> |
EventSourcedAggregate.initialize(T aggregateRoot,
AggregateModel<T> inspector,
EventBus eventBus,
RepositoryProvider repositoryProvider,
SnapshotTrigger snapshotTrigger)
Initializes an EventSourcedAggregate instance for the given
aggregateRoot, based on the given inspector, which publishes events to the given eventBus. |
static <T> EventSourcedAggregate<T> |
EventSourcedAggregate.initialize(T aggregateRoot,
AggregateModel<T> inspector,
EventBus eventBus,
SnapshotTrigger snapshotTrigger)
Initializes an EventSourcedAggregate instance for the given
aggregateRoot, based on the given inspector, which publishes events to the given eventBus. |
SnapshotTrigger |
EventCountSnapshotTriggerDefinition.reconfigure(Class<?> aggregateType,
SnapshotTrigger trigger) |
default SnapshotTrigger |
SnapshotTriggerDefinition.reconfigure(Class<?> aggregateType,
SnapshotTrigger trigger)
Reconfigure the necessary infrastructure components in the given
trigger instance, which may have
been lost in the (de)serialization process. |
static <T> EventSourcedAggregate<T> |
EventSourcedAggregate.reconstruct(T aggregateRoot,
AggregateModel<T> model,
long seqNo,
boolean isDeleted,
EventBus eventBus,
RepositoryProvider repositoryProvider,
SnapshotTrigger snapshotTrigger)
Reconstructs an EventSourcedAggregate instance with given
aggregateRoot. |
static <T> EventSourcedAggregate<T> |
EventSourcedAggregate.reconstruct(T aggregateRoot,
AggregateModel<T> model,
long seqNo,
boolean isDeleted,
EventBus eventBus,
SnapshotTrigger snapshotTrigger)
Reconstructs an EventSourcedAggregate instance with given
aggregateRoot. |
| Constructor and Description |
|---|
EventSourcedAggregate(AggregateModel<T> model,
EventBus eventBus,
RepositoryProvider repositoryProvider,
SnapshotTrigger snapshotTrigger)
Creates a new EventSourcedAggregate instance based on the given
model, which publishes events to the
given eventBus. |
EventSourcedAggregate(AggregateModel<T> model,
EventBus eventBus,
SnapshotTrigger snapshotTrigger)
Creates a new EventSourcedAggregate instance based on the given
model, which publishes events to the
given eventBus. |
EventSourcedAggregate(T aggregateRoot,
AggregateModel<T> model,
EventBus eventBus,
RepositoryProvider repositoryProvider,
SnapshotTrigger snapshotTrigger)
Initializes an Aggregate instance for the given
aggregateRoot, based on the given model, which
publishes events to the given eventBus. |
EventSourcedAggregate(T aggregateRoot,
AggregateModel<T> model,
EventBus eventBus,
SnapshotTrigger snapshotTrigger)
Initializes an Aggregate instance for the given
aggregateRoot, based on the given model, which
publishes events to the given eventBus. |
Copyright © 2010–2018. All rights reserved.