Package-level declarations
Types
Link copied to clipboard
public abstract class Aggregate<I, S extends EntityState, B extends ValidatingBuilder<S>> extends CommandHandlingEntity<I, S, B> implements EventPlayer, EventReactor
Abstract base for aggregates.
Link copied to clipboard
A container for the storage fields specific for the AggregateStorage and its implementations.
Link copied to clipboard
public abstract class AggregatePart<I, S extends EntityState, B extends ValidatingBuilder<S>, R extends AggregateRoot<I>> extends Aggregate<I, S, B>
A part of a larger aggregate.
Link copied to clipboard
public abstract class AggregatePartRepository<I, A extends AggregatePart<I, ? extends Object, ? extends Object, R>, R extends AggregateRoot<I>> extends AggregateRepository<I, A>
Common abstract base for repositories that manage
AggregatePart
s.Link copied to clipboard
A request to read events for a particular
Aggregate
from AggregateStorage.Link copied to clipboard
public abstract class AggregateRepository<I, A extends Aggregate<I, ? extends Object, ? extends Object>> extends Repository<I, E> implements CommandDispatcher, EventProducingRepository, EventDispatcherDelegate
The repository which manages instances of
Aggregate
s.Link copied to clipboard
A root object for a larger aggregate.
Link copied to clipboard
A mapping of aggregate roots to the associated parts.
Link copied to clipboard
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.
Link copied to clipboard
public class AggregateTransaction<I, S extends EntityState, B extends ValidatingBuilder<S>> extends EventPlayingTransaction<I, E, S, B>
A transaction, within which Aggregate instances are modified.
Link copied to clipboard
Marks a method of an aggregate as one that modifies the state of the aggregate with data from the passed event.
Link copied to clipboard
public final class DefaultAggregatePartRepository<I, A extends AggregatePart<I, ? extends Object, ? extends Object, R>, R extends AggregateRoot<I>> extends AggregatePartRepository<I, A, R> implements DefaultRepository
Default implementation of
AggregatePartRepository
.Link copied to clipboard
public final class DefaultAggregateRepository<I, A extends Aggregate<I, ? extends Object, ? extends Object>> extends AggregateRepository<I, A> implements DefaultRepository
Default implementation of
AggregateRepository
.Link copied to clipboard
Dispatches events to be imported to the associated aggregate repository.
Link copied to clipboard
An in-mem implementation of AggregateRootDirectory.
Link copied to clipboard
public final class UnsupportedImportEventException extends RuntimeException implements MessageUnhandled
Thrown when there are no aggregates that accept an event message for import.