Aggregate Storage
public abstract class AggregateStorage<I> extends AbstractStorage<I, M, R> implements StorageWithLifecycleFlags<I, M, R>
An event-sourced storage of aggregate part events and snapshots.
Parameters
<I>
the type of IDs of aggregates managed by this storage
Functions
Link copied to clipboard
Ensures the storage is not closed.
Link copied to clipboard
Obtains distinct aggregate IDs from the stored event records.
Link copied to clipboard
Creates iterator of aggregate event history with the reverse traversal.
Link copied to clipboard
Forms and returns an AggregateHistory based on the aggregate history.
Link copied to clipboard
Link copied to clipboard
Truncates the storage, dropping all records which occur before the Nth snapshot for each entity.
Truncates the storage, dropping all records older than
date
but not newer than the Nth snapshot.Link copied to clipboard
Writes the passed record into the storage.
Inherited functions
Link copied to clipboard
Ensures the storage is not closed.
Link copied to clipboard
Verifies whether the storage is multitenant.
Link copied to clipboard
Reads the lifecycle status for the entity with the passed ID.
Link copied to clipboard
Writes the lifecycle status for the entity with the passed ID.