A B C D E F G H I K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- actualLatestEventOrder - Variable in exception dk.cloudcreate.essentials.components.eventsourced.aggregates.OptimisticAggregateLoadException
- AddNewAggregateSnapshotStrategy - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Strategy for when an aggregate snapshot should be added
- AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
- AddNewSnapshotWhenBehindByNumberOfEvents(long) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents
- Aggregate<ID,AGGREGATE_TYPE extends Aggregate<ID,AGGREGATE_TYPE>> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates
-
Common interface that all concrete (classical)
Aggregate's must implement. - AggregateException - Exception in dk.cloudcreate.essentials.components.eventsourced.aggregates
- AggregateException() - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.AggregateException
- AggregateException(String) - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.AggregateException
- AggregateException(String, Throwable) - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.AggregateException
- AggregateException(String, Throwable, boolean, boolean) - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.AggregateException
- AggregateException(Throwable) - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.AggregateException
- aggregateId - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
The id of the aggregate this relates to
- aggregateId - Variable in exception dk.cloudcreate.essentials.components.eventsourced.aggregates.OptimisticAggregateLoadException
- aggregateId - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
-
the identifier for the aggregate instance
- aggregateId() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.Aggregate
-
The id of the aggregate (aka.
- aggregateId() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
- aggregateId() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
- aggregateId() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.Event
-
Get the id of the aggregate this event relates to.
- aggregateId() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- aggregateId() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
- aggregateId() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
- aggregateId(ID) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.Event
-
Set the id of the aggregate this event relates to.
- AggregateIdResolver<T,ID> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Interface responsible for resolve the optional aggregate id associated with the type
T
Example of usages:
Command - return the aggregate id associated with the command (can return anOptional.empty()) in case server generated id's are used for commands that create a new Aggregate instance) Event - return the aggregate id associated with the event State - return the aggregate id associated with the aggregate state event projection View - return the aggregate id associated with the View event projection - aggregateIdType() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
The type of aggregate ID this repository uses
- aggregateIdType() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
- aggregateIdType() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
The type of aggregate ID this repository uses
- aggregateIdType() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
- aggregateImplType - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
-
the concrete aggregate implementation type
- AggregateRoot<ID,EVENT_TYPE extends Event<ID>,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic
-
A specialized and opinionated mutable
Aggregatedesign
ThisAggregateRootis designed to work with Class based Event's that inherit fromEvent.
This design is deliberate and will manage a lot of things for you as a developer at the cost of some flexibility. - AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern
-
A modern opinionated interpretation of the classic
AggregateRootdesign, where theEvent's are mutable.
The modern interpretation doesn't specify any requirement on the design of the Events, they can be Java 17+ records or simple POJO's.
Note: TheAggregateRootworks best in combination with theStatefulAggregateRepositorythat's configured to use theStatefulAggregateInstanceFactory.reflectionBasedAggregateRootFactory(), because theAggregateRootneeds to be provided its aggregated id through theAggregateRoot(Object)constructor!
The modernAggregateRootsupports keeping the state projection andEventHandlerannotated methods within theAggregateRootinstance or within anAggregateStateinstance.
If you wish to keep the state projection andEventHandlerannotated methods within anAggregateStateinstance, then you only need to implement theWithStateinterface: - AggregateRoot() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
- AggregateRoot() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Used for
AggregateSnapshotdeserialization - AggregateRoot(ID) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Used for rehydration
- aggregateRootImplementationType() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
The type of
FlexAggregateimplementation this repository handles - aggregateRootImplementationType() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
- aggregateRootImplementationType() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
The type of
StatefulAggregateimplementation this repository handles - aggregateRootImplementationType() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
- AggregateRootWithState<ID,EVENT_TYPE extends Event<ID>,STATE extends AggregateState<ID,EVENT_TYPE>,AGGREGATE_TYPE extends AggregateRootWithState<ID,EVENT_TYPE,STATE,AGGREGATE_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state
-
Variant of the
AggregateRootpattern where the aggregate's state and allEventHandlerannotated methods are placed within the concreteAggregateStateobject.
When theAggregateRootWithStateis combined withAggregateState, then theAggregateRootWithStatewill contain the command methods and theAggregateStatecontains the state fields and theEventHandlerannotated methods. - AggregateRootWithState() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- aggregateSnapshot - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
-
The aggregate snapshot loaded from the repository - if this is of type
BrokenSnapshotthen the Aggregate snapshot couldn't be deserialized - AggregateSnapshot<ID,AGGREGATE_IMPL_TYPE> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Aggregate snapshot loaded using
loadSnapshot(AggregateType, Object, Class) - AggregateSnapshot(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, AGGREGATE_IMPL_TYPE, EventOrder) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
- AggregateSnapshotDeletionStrategy - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Strategy for which historic aggregate snapshots (i.e.
- AggregateSnapshotDeletionStrategy.DeleteAllHistoricSnapshots - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Strategy that deletes any historic aggregate snapshots when a new snapshot is persisted
- AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Strategy that keeps all or a specific number of historic aggregate snapshots
- AggregateSnapshotRepository - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Repository storing and updating Aggregate instance snapshots
- AggregateState<ID,EVENT_TYPE extends Event<ID>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state
-
Base class for the state object associated with
AggregateRootWithState.
When this is combined with theAggregateRootWithStatewhen theAggregateRootWithStatewill contain the command methods and theAggregateStatecontains the state fields and theEventHandlerannotated methods. - AggregateState<ID,EVENT_TYPE,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern
-
Aggregate state object associated with a given
AggregateRootinstance (seeAggregateState.getAggregate())
Example: - AggregateState() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
- AggregateState() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateState
- aggregateType - Variable in exception dk.cloudcreate.essentials.components.eventsourced.aggregates.OptimisticAggregateLoadException
- aggregateType - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
-
the name of the aggregate's event stream
- aggregateType() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
The type of
AggregateTypethis repository is using to persist Events - aggregateType() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
- aggregateType() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
The type of
AggregateTypethis repository is using to persist Events - aggregateType() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
- aggregateUpdated(AGGREGATE_IMPL_TYPE, AggregateEventStream<ID>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
-
Callback from an Aggregate Repository to notify that the aggregate has been updated
- aggregateUpdated(AGGREGATE_IMPL_TYPE, AggregateEventStream<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- aggregateUpdated(AGGREGATE_IMPL_TYPE, AggregateEventStream<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- append(EventsToPersist<ID, EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Immutable method that appends all events in
appendEventsToPersistto theEventsToPersist.eventsin this instance. - apply(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Apply a new non persisted/uncommitted Event to this aggregate instance.
If it is the very FIRSTEventthat is being applied thenEvent.aggregateId()MUST return the ID of the aggregate the event relates to
Every consecutiveEventapplied will have itsEvent.aggregateId(Object)method called IF it doesn't already have a value. - apply(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- apply(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
Apply a new non persisted/uncommitted Event to this aggregate instance.
If it is the very FIRSTEventthat is being applied thenEvent.aggregateId()MUST return the ID of the aggregate the event relates to
Every consecutiveEventapplied will have itsEvent.aggregateId(Object)method called IF it doesn't already have a value. - apply(EVENT_TYPE) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Apply a new non persisted/uncommitted Event to this aggregate instance.
- apply(Function<EventOrder, EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Apply a new non persisted/uncommitted Event to this aggregate instance.
- applyEvent(EVENT, STATE) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.StateEvolver
-
Apply the
EVENTto the aggregate/projection/viewSTATEinstance
Note: This method is calledevolvein the decider pattern - applyEvents(StateEvolver<EVENT, STATE>, STATE, Stream<EVENT>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.StateEvolver
-
Perform a left-fold over the
eventStreamusing theinitialStateas the initial state - applyEventToTheAggregate(Event<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
Apply the event to the aggregate instance to reflect the event as a state change to the aggregate
The default implementation will automatically call any (private) methods annotated withEventHandler - applyEventToTheAggregateState(Event<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Apply the event to the aggregate instance to reflect the event as a state change to the aggregate
The default implementation will automatically call any (private) methods annotated withEventHandler - applyEventToTheAggregateState(Object) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Apply the event to the aggregate instance to reflect the event as a state change to the aggregate
The default implementation will automatically call any (private) methods annotated withEventHandler - applyRehydratedEventToTheAggregate(Object) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Apply the previously recorded/persisted event (aka historic event) to the aggregate instance to reflect the event as a state change to the aggregate
The default implementation will automatically call any (private) methods annotated withEventHandler - asError() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Convert the
HandlerResultto anHandlerResult.Error - asSuccess() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Convert the
HandlerResultto aHandlerResult.Success
B
- BrokenSnapshot - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
AggregateSnapshot.aggregateSnapshotvalue that's returned fromAggregateSnapshotRepositoryin case the Aggregate snapshot couldn't be deserialized - BrokenSnapshot(Exception) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.BrokenSnapshot
C
- cause - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.BrokenSnapshot
- CommandHandler<COMMAND,EVENT,ERROR> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Command Handler which is responsible for loading any existing Aggregate
STATEfrom the underlyingEventStore(seeCommandHandler.deciderBasedCommandHandler(ConfigurableEventStore, AggregateType, Class, AggregateIdResolver, AggregateIdResolver, AggregateSnapshotRepository, Class, Decider)) and coordinate persisting any changes to the Aggregate, in the form ofEVENT's, to theEventStoreas part of an activeUnitOfWork(if one exists)
The actual logic is delegated to an instance of aDecider - create(ID, Class<AGGREGATE>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
-
Create an instance of the
Aggregate - create(ID, Class<AGGREGATE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactory
- create(ID, Class<AGGREGATE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory.ReflectionBasedAggregateInstanceFactory
D
- decider(Handler<COMMAND, EVENT, ERROR, STATE>, InitialStateProvider<STATE>, StateEvolver<EVENT, STATE>, IsStateFinalResolver<STATE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.Decider
- Decider<COMMAND,EVENT,ERROR,STATE> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Variant of the event sourced Decider pattern, which supports building an Aggregate
STATEbased on previousEVENT's that relate to the aggregate instance, and which can handleCOMMAND's, whose side effect is either anERRORor a List ofEVENT's (can be an empty list) - deciderBasedCommandHandler(ConfigurableEventStore<CONFIG>, AggregateType, Class<ID>, AggregateIdResolver<COMMAND, ID>, AggregateIdResolver<EVENT, ID>, AggregateSnapshotRepository, Class<STATE>, Decider<COMMAND, EVENT, ERROR, STATE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.CommandHandler
-
Create an instance of a
CommandHandlerthat is responsible for loading any existing AggregateSTATEfrom the underlyingEventStoreand coordinate persisting any changes to the Aggregate, in the form ofEVENT's, to theEventStoreas part of an activeUnitOfWork(if one exists)
The actual logic is delegated to an instance of aDecider - DEFAULT_AGGREGATE_SNAPSHOTS_TABLE_NAME - Static variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- DEFAULT_REFLECTION_BASED_CONSTRUCTOR_AGGREGATE_ROOT_FACTORY - Static variable in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
-
An
StatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregate - DelayedAddAndDeleteAggregateSnapshotDelegate - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
-
Delegating
AggregateSnapshotRepositorywhich directly delegates all operations to the provideddelegateRepository, except foraggregateUpdated(Object, AggregateEventStream),deleteSnapshots(AggregateType, Object, Class, List), which are performed asynchronously in the background.
This ensures that expensive update/clean-up for aggregate snapshots in the database don't affect aggregate persistence performance. - DelayedAddAndDeleteAggregateSnapshotDelegate(AggregateSnapshotRepository) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- delegateTo(AggregateSnapshotRepository) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- deleteAllHistoricSnapshots() - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy
-
Strategy that deletes any historic aggregate snapshots when a new aggregate snapshot is persisted
- DeleteAllHistoricSnapshots() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.DeleteAllHistoricSnapshots
- deleteAllSnapshots(Class<AGGREGATE_IMPL_TYPE>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
-
Delete all snapshots for the given aggregate implementation type
- deleteAllSnapshots(Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- deleteAllSnapshots(Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- deleteSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
-
Delete all snapshots for the given aggregate instance with the given aggregate implementation type
- deleteSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- deleteSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- deleteSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, List<EventOrder>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
-
Delete all snapshots with a given
AggregateSnapshot.eventOrderOfLastIncludedEventfor the given aggregate instance, with the given aggregate implementation type - deleteSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, List<EventOrder>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- deleteSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, List<EventOrder>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- dk.cloudcreate.essentials.components.eventsourced.aggregates - module dk.cloudcreate.essentials.components.eventsourced.aggregates
- dk.cloudcreate.essentials.components.eventsourced.aggregates - package dk.cloudcreate.essentials.components.eventsourced.aggregates
- dk.cloudcreate.essentials.components.eventsourced.aggregates.decider - package dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
- dk.cloudcreate.essentials.components.eventsourced.aggregates.flex - package dk.cloudcreate.essentials.components.eventsourced.aggregates.flex
- dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot - package dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
- dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful - package dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
- dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic - package dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic
- dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state - package dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state
- dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern - package dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern
E
- equals(Object) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents
- equals(Object) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
- equals(Object) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
- error() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Error
- error(ERROR) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Factory method for returning an
ERRORfromHandler.handle(Object, Object) - Error(ERROR) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Error
-
Create an Error variant of the
HandlerResult - Event<ID> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic
-
Based Event type that's built to work in combination with
AggregateRoot
All you need to do is to inherit from this class when building your ownEventtypes. - Event() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.Event
- EventHandler - Annotation Type in dk.cloudcreate.essentials.components.eventsourced.aggregates
-
Methods annotated with this Annotation will automatically be called when an event is being applied or rehydrated on to an
Aggregateinstance - eventOrder() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.Event
-
Contains the order of the event relative to the aggregate instance (the
Event.aggregateId) it relates to
This is also commonly called the sequenceNumber and it's a sequential ever growing number that tracks the order in which events have been stored in theEventStorerelated to a specific aggregate instance (as opposed to the globalOrder that contains the order of ALL events related to a givenAggregateType) - eventOrder(EventOrder) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.Event
-
Set the event order - called by
AggregateRoot - eventOrderOfLastAppliedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Get the
of the last {}@link Eventthat was applied to theAggregateRoot(either usingAggregateRoot.rehydrate(AggregateEventStream)/AggregateRoot.rehydrate(Stream)or usingAggregateRoot.apply(Event) - eventOrderOfLastAppliedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- eventOrderOfLastAppliedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
Get the
of the last {}@link Eventthat was applied to theAggregateRoot(either usingAggregateState.rehydrate(Stream)or usingAggregateState.apply(Event) - eventOrderOfLastAppliedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
- eventOrderOfLastIncludedEvent - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
-
The
EventOrderof the last Event that was included in the snapshot - eventOrderOfLastRehydratedEvent - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
(Zero based event order) contains the eventOrder for the last (previous/historic) event applied during
AggregateRoot.rehydrate(AggregateEventStream)/FlexAggregate.rehydrate(AggregateEventStream). - eventOrderOfLastRehydratedEvent() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.Aggregate
-
Get the eventOrder of the last event during aggregate hydration (using the
Aggregate.rehydrate(AggregateEventStream)method) - eventOrderOfLastRehydratedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Get the eventOrder of the last event that was applied to the
FlexAggregateUsing:FlexAggregate.rehydrate(AggregateEventStream)FlexAggregate.rehydrate(EventsToPersist)FlexAggregate.rehydrate(Object, Stream)FlexAggregate.rehydrate(Object, List) - eventOrderOfLastRehydratedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
- eventOrderOfLastRehydratedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- eventOrderOfLastRehydratedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
- events - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
- events() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Success
- events(FlexAggregate<ID, AGGREGATE_TYPE>, EVENT_TYPE...) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Wrap the events that should be persisted relates to the given aggregate's command handling
- events(EVENT...) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Factory method for returning a list of
EVENT's fromHandler.handle(Object, Object) - events(ID, EventOrder, EVENT_TYPE...) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Wrap the events that should be persisted for this existing aggregate
- events(Object...) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Wrap the events that should be persisted as a side effect of a command method
- events(List<EVENT>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Factory method for returning a list of
EVENT's fromHandler.handle(Object, Object) - EventsToPersist<ID,EVENT_TYPE> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates
-
Wrapper object that captures the results of any command handling (e.g.
- EventsToPersist(ID, EventOrder, EVENT_TYPE...) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
- EventsToPersist(ID, EventOrder, List<EVENT_TYPE>) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
- eventStore() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
-
The
EventStorethat's being used for support - eventStore() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
-
The
EventStorethat's being used for support - expectedLatestEventOrder - Variable in exception dk.cloudcreate.essentials.components.eventsourced.aggregates.OptimisticAggregateLoadException
F
- findMostRecentLastIncludedEventOrderFor(String, String, HandleAwareUnitOfWork) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- FlexAggregate<ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex
-
Simple, easy and opinionated aggregate that allows you to apply events that don't have any requirements with regards to inheritance (i.e.
- FlexAggregate() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
- FlexAggregateRepository<ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex
-
Opinionated
FlexAggregateRepository that's built to persist and load a specificFlexAggregatetype in combination withEventStore,EventStoreUnitOfWorkFactoryand aFlexAggregateRepository. - FlexAggregateRepository.DefaultFlexAggregateRepository<ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex
- from(ConfigurableEventStore<CONFIG>, CONFIG, StatefulAggregateInstanceFactory, Class<AGGREGATE_IMPL_TYPE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfiguration.
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class) - from(ConfigurableEventStore<CONFIG>, CONFIG, StatefulAggregateInstanceFactory, Class<AGGREGATE_IMPL_TYPE>, AggregateSnapshotRepository) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfiguration.
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class) - from(ConfigurableEventStore<CONFIG>, CONFIG, StatefulAggregateInstanceFactory, Class<ID>, Class<AGGREGATE_IMPL_TYPE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfiguration - from(ConfigurableEventStore<CONFIG>, CONFIG, StatefulAggregateInstanceFactory, Class<ID>, Class<AGGREGATE_IMPL_TYPE>, AggregateSnapshotRepository) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfiguration - from(ConfigurableEventStore<CONFIG>, CONFIG, EventStoreUnitOfWorkFactory, Class<ID>, Class<AGGREGATE_TYPE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Create a
FlexAggregateRepository- theEventStorewill be configured with the suppliedeventStreamConfiguration. - from(ConfigurableEventStore<CONFIG>, AggregateType, StatefulAggregateInstanceFactory, Class<AGGREGATE_IMPL_TYPE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class) - from(ConfigurableEventStore<CONFIG>, AggregateType, StatefulAggregateInstanceFactory, Class<AGGREGATE_IMPL_TYPE>, AggregateSnapshotRepository) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class) - from(ConfigurableEventStore<CONFIG>, AggregateType, StatefulAggregateInstanceFactory, Class<ID>, Class<AGGREGATE_IMPL_TYPE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with - from(ConfigurableEventStore<CONFIG>, AggregateType, StatefulAggregateInstanceFactory, Class<ID>, Class<AGGREGATE_IMPL_TYPE>, AggregateSnapshotRepository) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Create an
StatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with - from(ConfigurableEventStore<CONFIG>, AggregateType, EventStoreUnitOfWorkFactory, Class<ID>, Class<AGGREGATE_TYPE>) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Create a
FlexAggregateRepository- if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with
G
- get(int) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Get event at index.
- getAggregate() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateState
-
Get access to the aggregate instance this state object is associated with
- getEventOrderOfLastAppliedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
- getEventOrderOfLastRehydratedEvent() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
- getNumberOfEventsBetweenAddingANewSnapshot() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents
- getNumberOfHistoricSnapshotsToKeep() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
- getUncommittedChanges() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
The the events that have been applied to this aggregate instance but not yet persisted to the underlying
EventStore - getUncommittedChanges() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- getUncommittedChanges() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
- getUncommittedChanges() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregate
-
Query any changes to the Aggregate, i.e.
H
- handle(COMMAND) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.CommandHandler
-
The
executemethod is responsible for handling aCOMMAND, which can either result in anERRORor a list ofEVENT's.
Note: This method is calleddecidein the decider pattern
Idempotent handling of aCOMMANDwill result in an empty list ofEVENT's - handle(COMMAND, STATE) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.Handler
-
The
executemethod is responsible for handling aCOMMAND, which can either result in anERRORor a list ofEVENT's (can be an empty list).
Note: This method is calleddecidein the decider pattern
Idempotent handling of aCOMMANDwill result in an empty list ofEVENT's - Handler<COMMAND,EVENT,ERROR,STATE> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Deciderrelated interface that is responsible for handlingCOMMAND(s),whose side effect is either anERRORor a List ofEVENT's (can be an empty list) - HandlerResult<ERROR,EVENT> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Captures that result of calling a
Handler.handle(Object, Object)for a specificCOMMANDand aggregateSTATE
Concrete instances can either be of typeHandlerResult.Successor typeHandlerResult.Error - HandlerResult.Error<ERROR,EVENT> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Error variant of the
HandlerResult - HandlerResult.Success<ERROR,EVENT> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Success variant of the
HandlerResult - hasBeenRehydrated() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.Aggregate
-
Has the aggregate been initialized using previously recorded/persisted events (aka.
- hasBeenRehydrated() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Has the aggregate been initialized using previously recorded/persisted events?
- hasBeenRehydrated() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
- hasBeenRehydrated() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
Has
AggregateState.rehydrate(Stream)been used - hasBeenRehydrated() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
- hashCode() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents
- hashCode() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
- hashCode() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
I
- initialAggregateEvents(ID, EVENT_TYPE...) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Wrap the events that should be persisted for this new aggregate
- InitialEventIsMissingAggregateIdException - Exception in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic
- InitialEventIsMissingAggregateIdException(String) - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.InitialEventIsMissingAggregateIdException
- initialize() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
- initialize() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Initialize the aggregate, e.g.
- initialize() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
-
Override this method to initialize the
AggregateRootWithState.statevariable in case theAggregateRootWithState.resolveStateImplementationClass()doesn't fit the requirements - initialize() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Initialize the aggregate, e.g.
- initialState() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.InitialStateProvider
-
The initial aggregate/projection/view
STATEbefore anyEVENT's have been applied / projected onto the aggregate/projection/viewSTATE
Note: The default implementation returns anullaggregate/projection/viewSTATE - InitialStateProvider<STATE> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
DeciderorViewrelated interface, which provides the InitialSTATEfor a given aggregate/projection/view.
TheInitialStateProviderworks in collaboration with theStateEvolverin the context of theDeciderorViewpattern - isCommitted() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
- isEmpty() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Is the
EventsToPersist.eventsempty - isError() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Error
- isError() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Did the command handling result in an error?
- isError() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Success
- isFinal(STATE) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.Decider
-
Return true from this method IF the aggregate's state is final and no more changes can occur, i.e.
- isFinal(STATE) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.IsStateFinalResolver
-
Return true from this method IF the aggregate's state is final and no more changes can occur, i.e.
- isRehydrating() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Is the event being supplied to
AggregateRoot.applyEventToTheAggregateState(Event)a previously persisted (i.e. - isRehydrating() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
Is the event being supplied to
AggregateState.applyEventToTheAggregate(Event)a historic event - isRehydrating() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Is the event being supplied to
AggregateRoot.applyEventToTheAggregateState(Object)a previously persisted event (i.e. - IsStateFinalResolver<STATE> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Deciderrelated interface that resolves if the aggregate's state is final and no more changes can occur, i.e. - isSuccess() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Was the result of the command handling a success?
K
- keepALimitedNumberOfHistoricSnapshots(long) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy
-
Strategy that keeps a specific number historic aggregate snapshots
- keepALimitedNumberOfHistoricSnapshots(long) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
-
Strategy that keeps all historic aggregate snapshots
- keepAllHistoricSnapshots() - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy
-
Strategy that keeps all historic aggregate snapshots
- keepAllHistoricSnapshots() - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
-
Strategy that keeps all historic aggregate snapshots
- KeepHistoricSnapshots() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
-
Strategy that keeps all historic aggregate snapshots
- KeepHistoricSnapshots(long) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
-
Strategy that keeps a specific number historic aggregate snapshots
L
- load(ID) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Load an
FlexAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
The loaded aggregate instance will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - load(ID) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Load an
StatefulAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
The loaded aggregate instance will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - load(ID, long) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Load an
FlexAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
The loaded aggregate instance will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - load(ID, EventOrder) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Load an
StatefulAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
The loaded aggregate instance will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - loadAllSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, boolean) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
-
Load all
AggregateSnapshot's related to the given aggregate instance - loadAllSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, boolean) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- loadAllSnapshots(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>, boolean) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- loadAllSnapshots(String, String, boolean, HandleAwareUnitOfWork) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- loadSnapshot(AggregateType, ID, EventOrder, Class<AGGREGATE_IMPL_TYPE>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
- loadSnapshot(AggregateType, ID, EventOrder, Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
- loadSnapshot(AggregateType, ID, EventOrder, Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
- loadSnapshot(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotRepository
- loadSnapshot(AggregateType, ID, Class<AGGREGATE_IMPL_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.DelayedAddAndDeleteAggregateSnapshotDelegate
M
- markChangesAsCommitted() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Resets the
AggregateRoot.getUncommittedChanges()- effectively marking them as having been persisted and committed to the underlyingEventStore - markChangesAsCommitted() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- markChangesAsCommitted() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
Resets the
AggregateState.uncommittedChanges()- effectively marking them as having been persisted and committed to the underlyingEventStore - markChangesAsCommitted() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Resets the
AggregateRoot.getUncommittedChanges()- effectively marking them as having been persisted and committed to the underlyingEventStore - markChangesAsCommitted() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregate
-
Resets the
StatefulAggregate.getUncommittedChanges()- effectively marking them as having been persisted and committed to the underlyingEventStore - markEventsAsCommitted() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
N
- newAggregateEvents(ID, Object...) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Wrap the events that should be persisted for this new aggregate
- noEvents() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Creates an empty
EventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g. - noEvents(FlexAggregate<ID, AGGREGATE_TYPE>) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Creates an empty
EventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g. - noEvents(ID) - Static method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Creates an empty
EventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g.
O
- OBJENESIS_AGGREGATE_ROOT_FACTORY - Static variable in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
-
An
StatefulAggregateInstanceFactorythat usesObjenesisto create a new instance of theAggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so youAggregatedesign needs to take this into consideration.
All concrete aggregates that extendsStatefulAggregatehave been prepared to be initialized byObjenesis - ObjenesisAggregateInstanceFactory() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactory
- objenesisAggregateRootFactory() - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
-
Returns an
StatefulAggregateInstanceFactorythat usesObjenesisto create a new instance of theAggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so youAggregatedesign needs to take this into consideration.
All concrete aggregates that extendsAggregateRoothave been prepared to be initialized byObjenesis - OptimisticAggregateLoadException - Exception in dk.cloudcreate.essentials.components.eventsourced.aggregates
- OptimisticAggregateLoadException(Object, Class<? extends Aggregate<?, ?>>, EventOrder, EventOrder) - Constructor for exception dk.cloudcreate.essentials.components.eventsourced.aggregates.OptimisticAggregateLoadException
P
- persist(AGGREGATE_IMPL_TYPE) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Deprecated.
- persist(EventsToPersist<ID, Object>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
- persist(EventsToPersist<ID, Object>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Associate a newly created and not yet persisted
FlexAggregateinstance with theUnitOfWorkFactory.getRequiredUnitOfWork()
Any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - PostgresqlAggregateSnapshotRepository - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot
- PostgresqlAggregateSnapshotRepository(ConfigurableEventStore<? extends AggregateEventStreamConfiguration>, HandleAwareUnitOfWorkFactory<? extends HandleAwareUnitOfWork>, JSONEventSerializer) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
-
Create a new durable Postgresql version of the
PostgresqlAggregateSnapshotRepositorythat will persistAggregateSnapshot's into thePostgresqlAggregateSnapshotRepository.DEFAULT_AGGREGATE_SNAPSHOTS_TABLE_NAMEtable
Adding newAggregateSnapshot's when it's behind by 10 events AND Deleting All HistoricAggregateSnapshot's - PostgresqlAggregateSnapshotRepository(ConfigurableEventStore<? extends AggregateEventStreamConfiguration>, HandleAwareUnitOfWorkFactory<? extends HandleAwareUnitOfWork>, JSONEventSerializer, AddNewAggregateSnapshotStrategy, AggregateSnapshotDeletionStrategy) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
-
Create a new durable Postgresql version of the
PostgresqlAggregateSnapshotRepositorythat will persistAggregateSnapshot's into thePostgresqlAggregateSnapshotRepository.DEFAULT_AGGREGATE_SNAPSHOTS_TABLE_NAMEtable - PostgresqlAggregateSnapshotRepository(ConfigurableEventStore<? extends AggregateEventStreamConfiguration>, HandleAwareUnitOfWorkFactory<? extends HandleAwareUnitOfWork>, String, JSONEventSerializer) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
-
Create a new durable Postgresql version of the
PostgresqlAggregateSnapshotRepository
Adding newAggregateSnapshot's when it's behind by 10 events AND Deleting All HistoricAggregateSnapshot's - PostgresqlAggregateSnapshotRepository(ConfigurableEventStore<? extends AggregateEventStreamConfiguration>, HandleAwareUnitOfWorkFactory<? extends HandleAwareUnitOfWork>, String, JSONEventSerializer, AddNewAggregateSnapshotStrategy, AggregateSnapshotDeletionStrategy) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
-
Create a new durable Postgresql version of the
PostgresqlAggregateSnapshotRepository - PostgresqlAggregateSnapshotRepository(ConfigurableEventStore<? extends AggregateEventStreamConfiguration>, HandleAwareUnitOfWorkFactory<? extends HandleAwareUnitOfWork>, Optional<String>, JSONEventSerializer, AddNewAggregateSnapshotStrategy, AggregateSnapshotDeletionStrategy) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.PostgresqlAggregateSnapshotRepository
-
Create a new durable Postgresql version of the
PostgresqlAggregateSnapshotRepository - projectEvents(AggregateType, ID, Class<PROJECTION>, EventStore) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInMemoryProjector
R
- ReflectionBasedAggregateInstanceFactory() - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory.ReflectionBasedAggregateInstanceFactory
- reflectionBasedAggregateRootFactory() - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
-
Returns an
StatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregate - rehydrate(EventsToPersist<ID, Object>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Initialize an aggregate instance from
EventsToPersist
Effectively performs a leftFold over all the previous events related to this aggregate instance - rehydrate(AggregateEventStream<ID>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.Aggregate
-
Effectively performs a leftFold over all the previously persisted events related to this aggregate instance
- rehydrate(AggregateEventStream<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Initialize an aggregate instance from historic events.
Effectively performs a leftFold over all the previous persisted events related to this aggregate instance - rehydrate(AggregateEventStream<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Effectively performs a leftFold over all the previously persisted events related to this aggregate instance
- rehydrate(AggregateEventStream<ID>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Effectively performs a leftFold over all the previously persisted events related to this aggregate instance
- rehydrate(ID, List<Object>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
- rehydrate(ID, Stream<Object>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Effectively performs a leftFold over all the previous events related to this aggregate instance
- rehydrate(Stream<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.AggregateRoot
-
Effectively performs a leftFold over all the previous events related to this aggregate instance
- rehydrate(Stream<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- rehydrate(Stream<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
- rehydrate(Stream<EVENT_TYPE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Effectively performs a leftFold over all the previous events related to this aggregate instance
- requiresExistingSnapshotDetailsToDetermineWhichAggregateSnapshotsToDelete() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.DeleteAllHistoricSnapshots
- requiresExistingSnapshotDetailsToDetermineWhichAggregateSnapshotsToDelete() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
- requiresExistingSnapshotDetailsToDetermineWhichAggregateSnapshotsToDelete() - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy
-
Guard method that determines if Aggregate Snapshot statistics are required in order to determine which Snapshots to delete
- resolveFrom(T) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.AggregateIdResolver
-
Resolve the optional aggregate id associated with the type
T
Example of usages:
Command - return the aggregate id associated with the command (can return anOptional.empty()) in case server generated id's are used for commands that create a new Aggregate instance) Event - return the aggregate id associated with the event State - return the aggregate id associated with the aggregate state event projection View - return the aggregate id associated with the View event projection - resolveSnapshotsToDelete(List<AggregateSnapshot<ID, AGGREGATE_IMPL_TYPE>>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.DeleteAllHistoricSnapshots
- resolveSnapshotsToDelete(List<AggregateSnapshot<ID, AGGREGATE_IMPL_TYPE>>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
- resolveSnapshotsToDelete(List<AggregateSnapshot<ID, AGGREGATE_IMPL_TYPE>>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy
-
Out of all the existing snapshots (loaded without the snapshot payload), return the
AggregateSnapshot's that should be deleted
This method is called just prior to adding a newAggregateSnapshot, so if the purpose it to keep 3 snapshots, and we already have 3 snapshots, then this method should return aStreamcontaining the oldest snapshot, which will then be deleted - resolveStateImplementationClass() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
-
Override this method to provide a non reflection based look up of the Type Argument provided to the
AggregateRootWithStateclass - resolveStateImplementationClass() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Override this method to provide a non reflection based look up of the Type Argument provided to the
AggregateRootclass
S
- save(AGGREGATE_IMPL_TYPE) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
- save(AGGREGATE_IMPL_TYPE) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Save/Associate a newly created and not yet persisted
StatefulAggregateinstance with theUnitOfWorkFactory.getRequiredUnitOfWork()
Any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - shouldANewAggregateSnapshotBeAdded(AGGREGATE_IMPL_TYPE, AggregateEventStream<ID>, Optional<EventOrder>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents
- shouldANewAggregateSnapshotBeAdded(AGGREGATE_IMPL_TYPE, AggregateEventStream<ID>, Optional<EventOrder>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy
-
Should a new aggregate snapshot be added based on
- shouldFailWith(ERROR) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Test oriented method that verify that the
HandlerResultHandlerResult.isError()and theHandlerResult.Error.error()is exactly same as theerrorparameter - shouldSucceedWith(EVENT...) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Test oriented method that verify that the
HandlerResultHandlerResult.isSuccess()and theHandlerResult.Success.events()contains exactly same events as theeventsparameter - shouldSucceedWith(List<EVENT>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult
-
Test oriented method that verify that the
HandlerResultHandlerResult.isSuccess()and theHandlerResult.Success.events()contains exactly same events as theeventsparameter - size() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
Number of events.
- state - Variable in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateRootWithState
- state() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
If the aggregate implements
WithStatethen you can call this method to access the state object
This method requires that the return type information is available at compile time: - state(Class<STATE>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern.AggregateRoot
-
Variant of the
AggregateRoot.state()where the concrete State type is specified in the argument
If the aggregate implementsWithStatethen you can call this method to access the state object - StateEvolver<EVENT,STATE> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
- StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_TYPE>> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
- StatefulAggregateInMemoryProjector - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
-
AggregatespecificInMemoryProjector
Note: An in memory projection is never associated with aUnitOfWorkand any changes to the aggregate won't automatically be persisted. - StatefulAggregateInMemoryProjector(StatefulAggregateInstanceFactory) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInMemoryProjector
- StatefulAggregateInMemoryProjector(StatefulAggregateInstanceFactory, AggregateSnapshotRepository) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInMemoryProjector
- StatefulAggregateInstanceFactory - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
-
Factory that helps the
StatefulAggregateRepository/StatefulAggregateInMemoryProjectorto create an instance of a givenAggregate. - StatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactory - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
-
StatefulAggregateInstanceFactorythat usesObjenesisto create a new instance of theAggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so youAggregatedesign needs to take this into consideration.
All concrete aggregates that extendsAggregateRoothave been prepared to be initialized byObjenesis - StatefulAggregateInstanceFactory.ReflectionBasedAggregateInstanceFactory - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
-
StatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregate - StatefulAggregateRepository<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
-
Opinionated
AggregateRepository that's built to persist and load a specificStatefulAggregatetype in combination withEventStore,UnitOfWorkFactoryand aStatefulAggregateInstanceFactory.
You can use theStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class)to create a newStatefulAggregateRepositoryinstance that supports the most common repository method.
Alternatively you can extend from theStatefulAggregateRepository.DefaultStatefulAggregateRepositoryand add your own special methods - StatefulAggregateRepository.DefaultStatefulAggregateRepository<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>> - Class in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
-
Default
StatefulAggregateRepositoryimplementation. - stream() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
- Success(EVENT...) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Success
- Success(List<EVENT>) - Constructor for class dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.HandlerResult.Success
-
Create a Success variant of the
HandlerResult - supports(Class<?>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInMemoryProjector
T
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy.AddNewSnapshotWhenBehindByNumberOfEvents
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshot
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.DeleteAllHistoricSnapshots
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AggregateSnapshotDeletionStrategy.KeepHistoricSnapshots
- toString() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
- tryLoad(ID) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Try to load an
FlexAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
If the aggregate instance exists it will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - tryLoad(ID) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Try to load an
StatefulAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
If the aggregate instance exists it will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - tryLoad(ID, long) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Try to load an
FlexAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
If the aggregate instance exists it will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - tryLoad(ID, EventOrder) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Try to load an
StatefulAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
If the aggregate instance exists it will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - tryLoad(ID, Optional<EventOrder>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository.DefaultStatefulAggregateRepository
- tryLoad(ID, Optional<EventOrder>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateRepository
-
Try to load an
StatefulAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
If the aggregate instance exists it will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed. - tryLoad(ID, Optional<Long>) - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository.DefaultFlexAggregateRepository
- tryLoad(ID, Optional<Long>) - Method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregateRepository
-
Try to load an
FlexAggregateinstance with the specifiedaggregateIdfrom the underlyingEventStore
If the aggregate instance exists it will be associated with theUnitOfWorkFactory.getRequiredUnitOfWork()and any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed.
U
- uncommittedChanges() - Method in class dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state.AggregateState
-
The the events that have been applied to this aggregate instance but not yet persisted to the underlying
EventStore - updateOnEachAggregateUpdate() - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy
- updateWhenBehindByNumberOfEvents(long) - Static method in interface dk.cloudcreate.essentials.components.eventsourced.aggregates.snapshot.AddNewAggregateSnapshotStrategy
V
- View<EVENT,STATE> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
-
Variant of the Event Sourced Projection/View concept
W
- WithState<ID,EVENT_TYPE,AGGREGATE_TYPE extends AggregateRoot<ID,EVENT_TYPE,AGGREGATE_TYPE>,AGGREGATE_STATE extends AggregateState<ID,EVENT_TYPE,AGGREGATE_TYPE>> - Interface in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern
-
Marker interface that indicates that all state and all
EventHandlerannotated methods will be hosted with theAggregateStateobject.
All Classes All Packages