Class ImmutableAggregateRoot<T>
java.lang.Object
io.fluxcapacitor.javaclient.modeling.ImmutableEntity<T>
io.fluxcapacitor.javaclient.modeling.ImmutableAggregateRoot<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 TypeMethodDescriptionapply(DeserializingMessage message) static <T> ImmutableAggregateRoot<T>from(Entity<T> a, EntityHelper entityHelper, Serializer serializer, EventStore eventStore) update(UnaryOperator<T> function) withEventIndex(Long index, String messageId) withSequenceNumber(long sequenceNumber) Methods inherited from class io.fluxcapacitor.javaclient.modeling.ImmutableEntity
apply, assertLegal, computeAliases, computeEntities, get, type, withTypeMethods 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
lastEventId, lastEventIndex, parent, previous, sequenceNumber, timestampMethods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
aliases, allEntities, ancestorValue, 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, withType
-
Constructor Details
-
ImmutableAggregateRoot
public ImmutableAggregateRoot()
-
-
Method Details
-
from
public static <T> ImmutableAggregateRoot<T> from(Entity<T> a, EntityHelper entityHelper, Serializer serializer, EventStore eventStore) -
apply
-
update
-
withEventIndex
- Specified by:
withEventIndexin interfaceAggregateRoot<T>- Specified by:
withEventIndexin interfaceEntity<T>
-
withSequenceNumber
- Specified by:
withSequenceNumberin interfaceAggregateRoot<T>- Specified by:
withSequenceNumberin interfaceEntity<T>
-