Interface AggregateRoot<T>
- All Superinterfaces:
Entity<T>
- All Known Implementing Classes:
ImmutableAggregateRoot,LazyAggregateRoot,ModifiableAggregateRoot
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault Entity<?>parent()previous()longwithEventIndex(Long index, String messageId) withSequenceNumber(long sequenceNumber) Methods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
aliases, allEntities, ancestorValue, apply, apply, apply, apply, apply, apply, assertAndApply, assertAndApply, assertAndApply, assertAndApply, assertLegal, assertThat, associations, dissociations, ensure, entities, get, getEntity, highestEventIndex, id, idProperty, ifPresent, isEmpty, isPresent, isRoot, mapIfPresent, playBackToCondition, playBackToEvent, possibleTargets, relationships, root, rootAnnotation, type, update, withType
-
Method Details
-
parent
-
lastEventId
String lastEventId()- Specified by:
lastEventIdin interfaceEntity<T>
-
lastEventIndex
Long lastEventIndex()- Specified by:
lastEventIndexin interfaceEntity<T>
-
withEventIndex
- Specified by:
withEventIndexin interfaceEntity<T>
-
sequenceNumber
long sequenceNumber()- Specified by:
sequenceNumberin interfaceEntity<T>
-
withSequenceNumber
- Specified by:
withSequenceNumberin interfaceEntity<T>
-
timestamp
Instant timestamp() -
previous
-