public class AggregateSnapshotter extends AbstractSnapshotter
| Constructor and Description |
|---|
AggregateSnapshotter() |
| Modifier and Type | Method and Description |
|---|---|
protected DomainEventMessage |
createSnapshot(String typeIdentifier,
Object aggregateIdentifier,
DomainEventStream eventStream)
Creates a snapshot event for an aggregate of the given
typeIdentifier of which passed events are
available in the given eventStream. |
void |
setAggregateFactories(List<AggregateFactory<?>> aggregateFactories)
Sets the aggregate factory to use.
|
createSnapshotterTask, getEventStore, getExecutor, scheduleSnapshot, setEventStore, setExecutor, setTxManagerprotected DomainEventMessage createSnapshot(String typeIdentifier, Object aggregateIdentifier, DomainEventStream eventStream)
AbstractSnapshottertypeIdentifier of which passed events are
available in the given eventStream. May return null to indicate a snapshot event is
not necessary or appropriate for the given event stream.createSnapshot in class AbstractSnapshottertypeIdentifier - The aggregate's type identifieraggregateIdentifier - The identifier of the aggregate to create a snapshot foreventStream - The event stream containing the aggregate's past eventsnull if none should be stored.public void setAggregateFactories(List<AggregateFactory<?>> aggregateFactories)
aggregateFactories - The list of aggregate factories creating the aggregates to store. May not be
null or contain any null values.NullPointerException - if aggregateFactories is null or if contains any
null values.Copyright © 2010-2014. All Rights Reserved.