Class LazyAggregateRoot<T>
java.lang.Object
io.fluxcapacitor.javaclient.modeling.LazyAggregateRoot<T>
- All Implemented Interfaces:
AggregateRoot<T>,Entity<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
Entity.Validator<T,E extends Exception> -
Field Summary
Fields inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
AGGREGATE_ID_METADATA_KEY, AGGREGATE_SN_METADATA_KEY, AGGREGATE_TYPE_METADATA_KEY, applying, loading -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<?>aliases()assertLegal(Object command) Collection<? extends Entity<?>>entities()static <T> LazyAggregateRoot<T>from(ImmutableAggregateRoot<T> delegate) get()id()previous()longtype()update(UnaryOperator<T> function) withEventIndex(Long index, String messageId) withSequenceNumber(long sequenceNumber) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.modeling.AggregateRoot
parentMethods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
allEntities, ancestorValue, apply, apply, apply, apply, apply, assertAndApply, assertAndApply, assertAndApply, assertAndApply, assertThat, associations, dissociations, ensure, getEntity, highestEventIndex, ifPresent, isEmpty, isPresent, isRoot, mapIfPresent, playBackToCondition, playBackToEvent, possibleTargets, relationships, root, rootAnnotation
-
Constructor Details
-
LazyAggregateRoot
-
-
Method Details
-
from
-
withEventIndex
- Specified by:
withEventIndexin interfaceAggregateRoot<T>- Specified by:
withEventIndexin interfaceEntity<T>
-
sequenceNumber
public long sequenceNumber()- Specified by:
sequenceNumberin interfaceAggregateRoot<T>- Specified by:
sequenceNumberin interfaceEntity<T>
-
timestamp
-
previous
-
get
-
getLastCheckpoint
-
aliases
-
entities
-
id
-
type
-
idProperty
- Specified by:
idPropertyin interfaceEntity<T>
-
lastEventId
- Specified by:
lastEventIdin interfaceAggregateRoot<T>- Specified by:
lastEventIdin interfaceEntity<T>
-
lastEventIndex
- Specified by:
lastEventIndexin interfaceAggregateRoot<T>- Specified by:
lastEventIndexin interfaceEntity<T>
-
update
-
apply
-
withType
-
withSequenceNumber
- Specified by:
withSequenceNumberin interfaceAggregateRoot<T>- Specified by:
withSequenceNumberin interfaceEntity<T>
-
assertLegal
- Specified by:
assertLegalin interfaceEntity<T>- Throws:
E extends Exception
-