Uses of Interface
io.fluxzero.sdk.modeling.Entity
Packages that use Entity
Package
Description
-
Uses of Entity in io.fluxzero.sdk
Methods in io.fluxzero.sdk that return EntityModifier and TypeMethodDescriptionstatic <T> Entity<T> Fluxzero.asEntity(T value) Returns an Entity containing given value.static <T> Entity<T> Fluxzero.loadAggregate(Id<T> aggregateId) Loads the aggregate root of type<T>with given aggregateId.static <T> Entity<T> Fluxzero.loadAggregate(Object aggregateId) Loads the aggregate root with the given aggregateId.static <T> Entity<T> Fluxzero.loadAggregate(Object aggregateId, Class<T> aggregateType) Loads the aggregate root of type<T>with given aggregateId.static <T> Entity<T> Fluxzero.loadAggregateFor(Object entityId) Loads the aggregate root that currently contains the entity with given entityId.static <T> Entity<T> Fluxzero.loadAggregateFor(Object entityId, Class<?> defaultType) Loads the aggregate root of type<T>that currently contains the entity with given entityId.static <T> Entity<T> Fluxzero.loadEntity(Id<T> entityId) Loads the entity with given id.static <T> Entity<T> Fluxzero.loadEntity(Object entityId) Loads the entity with given id.static <T> Entity<T> Fluxzero.loadEntity(Object entityId, Class<T> entityType) Loads an entity by functional ID and expected type.static <T> Entity<T> Loads the independently stored model identified by the given typed ID.static <T> Entity<T> Loads an independently stored model by ID.static <T> Entity<T> Loads a parent-scoped model by functional child ID and explicit parent type.static <T> Entity<T> Loads an independently stored model by ID and expected type.Methods in io.fluxzero.sdk that return types with arguments of type EntityModifier and TypeMethodDescriptionFluxzero.loadModels(List<?> modelIds, Class<T> modelType) Loads several independently stored models at one coherent state boundary. -
Uses of Entity in io.fluxzero.sdk.modeling
Subinterfaces of Entity in io.fluxzero.sdk.modelingModifier and TypeInterfaceDescriptioninterfaceRepresents the root of a legacy aggregate in a domain model.interfaceModelRoot<T>Root wrapper for an independently persistedModelrevision.interfaceShared revision contract for an independently persisted Aggregate or Model root.Classes in io.fluxzero.sdk.modeling that implement EntityModifier and TypeClassDescriptionclassA base implementation ofEntitythat forwards all method calls to a delegatedEntityinstance.classImmutable representation of anAggregateRoot, extendingImmutableEntitywith additional metadata for event sourcing.classImmutable implementation of theEntityinterface, representing a snapshot of a domain entity.classImmutable entity wrapper for one independently stored model revision.classShared immutable revision state of persisted Aggregate and Model roots.classA lazily-loaded implementation ofAggregateRootthat defers deserialization and event application until the entity value is explicitly accessed.classA mutable, statefulAggregateRootimplementation that allows in-place updates and applies events with commit support for persisting the state and synchronizing it with the Fluxzero Runtime.classA mutable view on a nested entity within aModifiableAggregateRoot.classNoOpEntity<T>A read-only, inertEntitywrapper used exclusively during the loading phase of aggregate state.classA functional, non-persistentEntitywrapper that enables safe state mutation and validation without producing side effects such as event publication or snapshot creation.Fields in io.fluxzero.sdk.modeling declared as EntityMethods in io.fluxzero.sdk.modeling that return EntityModifier and TypeMethodDescriptionEntity<?> AnnotatedEntityHolder.EntityUpdate.after()Returns the value of theafterrecord component.Applies the given message to the entity.Entity.apply(DeserializingMessage eventMessage) Applies the given deserializing message to the entity.Processes the given event and applies the corresponding logic based on its type.Applies the given events to reconstruct or update the entity's state.Applies an event and associated metadata to produce a resulting entity.Entity.apply(Collection<?> events) Applies a collection of events to the current entity, returning an updated entity.ImmutableAggregateRoot.apply(DeserializingMessage message) ImmutableEntity.apply(DeserializingMessage message) Entity.assertAndApply(Object payloadOrMessage) Verifies that the provided update is legal given the current state of the aggregate and on success applies it to the aggregate.Entity.assertAndApply(Object... updates) Applies a number of updates to the current entity after performing necessary legality assertions.Entity.assertAndApply(Object payload, io.fluxzero.common.api.Metadata metadata) Verifies that the provided update is legal given the current state of the aggregate and on success applies it to the aggregate.Entity.assertAndApply(Collection<?> updates) Applies a collection of updates sequentially to the current entity after asserting each is legal, and returns the resulting entity.ModifiableAggregateRoot.assertAndApply(Object payloadOrMessage) ModifiableEntity.assertAndApply(Object payloadOrMessage) Entity.assertLegal(Object update) Verifies that the provided update is legal given the current state of the aggregate.ImmutableEntity.assertLegal(Object update) LazyAggregateRoot.assertLegal(Object update) ModifiableAggregateRoot.assertLegal(Object update) ModifiableEntity.assertLegal(Object update) SideEffectFreeEntity.assertLegal(Object update) Entity<?> AnnotatedEntityHolder.EntityUpdate.before()Returns the value of thebeforerecord component.Entity.commit()Commits the current state of the entity, persisting any changes made to it.ImmutableEntity.commit()LazyAggregateRoot.commit()ModifiableAggregateRoot.commit()ModifiableEntity.commit()NoOpEntity.commit()SideEffectFreeEntity.commit()static Entity<?> ModelBatchScope.currentValue(String namespace, String modelId) Returns one pending exact value; aliases are deliberately not resolved.Entity<?> Entity<?> HasEntity.getEntity()Retrieves the associated Entity of the object.LazyAggregateRoot.getLastCheckpoint()protected Entity<?> EntityParameterResolver.getMatchingEntity(Object input, Parameter parameter) Attempts to retrieve anEntityinstance matching the given method parameter.ModifiableAggregateRoot.handleUpdate(UnaryOperator<Entity<T>> update) Entity.ifPresent(UnaryOperator<Entity<T>> action) Applies the specified action to this entity if it is present, returning the result of the commit.static <T> Entity<T> ModifiableAggregateRoot.load(@NonNull AggregateRepository repository, Object aggregateId, Supplier<Entity<T>> loader, AggregateCommitPolicy commitPolicy, EntityMetadata.RootConfiguration configuration, AggregateEventRouting eventRouting, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) Loads an aggregate using shared persistence settings and its Aggregate-specific event routing.static <T> Entity<T> ModifiableAggregateRoot.load(@NonNull AggregateRepository repository, Object aggregateId, Supplier<Entity<T>> loader, AggregateCommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, AggregateEventRouting eventRouting, boolean eventSourced, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) Loads an aggregate in a scope owned by the supplied repository.static <T> Entity<T> ModifiableAggregateRoot.load(Object aggregateId, Supplier<Entity<T>> loader, AggregateCommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, AggregateEventRouting eventRouting, boolean eventSourced, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) static <T> Entity<T> ModelBatchScope.overlayCurrent(String namespace, String requestedId, Class<T> requestedType, Entity<T> durable) Overlays a durable direct load with the newest pending model or alias visible to the current message.default Entity<?> AggregateRoot.parent()Entity<?> DelegatingEntity.parent()Entity<?> Entity.parent()Retrieves the parent entity of the current entity.Entity<?> ModifiableEntity.parent()Entity<?> NoOpEntity.parent()default Entity<?> PersistedRoot.parent()Entity<?> SideEffectFreeEntity.parent()AggregateRoot.previous()DelegatingEntity.previous()Entity.previous()Retrieves the previous version of this entity.LazyAggregateRoot.previous()ModifiableAggregateRoot.previous()ModifiableEntity.previous()NoOpEntity.previous()PersistedRoot.previous()static Entity<?> ImmutableRoot.retainPrevious(Entity<?> previous, EntityMetadata.RootConfiguration configuration) Applies the shared bounded revision-retention policy used by persisted roots.default Entity<?> Entity.root()Retrieves the root entity in the hierarchy.Entity.update(UnaryOperator<T> function) Updates the current entity's value using the specified unary operator and returns a new entity containing the updated value.ImmutableAggregateRoot.update(UnaryOperator<T> function) ImmutableEntity.update(UnaryOperator<T> function) LazyAggregateRoot.update(UnaryOperator<T> function) ModifiableAggregateRoot.update(UnaryOperator<T> function) ModifiableEntity.update(UnaryOperator<T> function) NoOpEntity.update(UnaryOperator<T> function) AggregateRoot.withEventIndex(Long index, String messageId) DelegatingEntity.withEventIndex(Long index, String messageId) Entity.withEventIndex(Long index, String messageId) Updates the event index and message ID of the entity and returns the updated version of the entity.ImmutableAggregateRoot.withEventIndex(Long index, String messageId) ImmutableModelRoot.withEventIndex(Long index, String messageId) LazyAggregateRoot.withEventIndex(Long index, String messageId) PersistedRoot.withEventIndex(Long index, String messageId) AggregateRoot.withSequenceNumber(long sequenceNumber) DelegatingEntity.withSequenceNumber(long sequenceNumber) Entity.withSequenceNumber(long sequenceNumber) Returns an updated entity based on this with the specified sequence number.ImmutableAggregateRoot.withSequenceNumber(long sequenceNumber) ImmutableModelRoot.withSequenceNumber(long sequenceNumber) LazyAggregateRoot.withSequenceNumber(long sequenceNumber) PersistedRoot.withSequenceNumber(long sequenceNumber) Sets the type of the entity to the specified class and returns the updated entity.Methods in io.fluxzero.sdk.modeling that return types with arguments of type EntityModifier and TypeMethodDescriptionEntity.allEntities()Retrieves a stream of all entities, including the current entity and all nested entities.Entity.ancestors()Retrieves a list of the ancestor entities for the current entity.ModelBatchScope.currentValues(String namespace) Returns pending exact values visible to the current message, in message order.UnaryOperator<Entity<?>> Change.directReplay()Returns the value of thedirectReplayrecord component.CommitAttempt.entities()Collection<? extends Entity<?>> DelegatingEntity.entities()Collection<? extends Entity<?>> Entity.entities()Retrieves child entities of this entity.Collection<? extends Entity<?>> ImmutableEntity.entities()Returns the lazily discovered direct child entities.Collection<? extends Entity<?>> LazyAggregateRoot.entities()Collection<? extends Entity<?>> ModifiableAggregateRoot.entities()Collection<? extends Entity<?>> ModifiableEntity.entities()Collection<? extends Entity<?>> NoOpEntity.entities()Entity.filterEntity(Predicate<? super Entity<T>> predicate) Filters the current entity based on the provided predicate.Entity.filterPresent()Filters the entity based on its presence status.Entity.findEntity(Predicate<? super Entity<?>> predicate) Finds the first entity in this entity hierarchy that matches the given predicate.Retrieves an entity based on the provided entity ID.Retrieves an entity by functional ID and expected type.Entity.playBackToCondition(Predicate<Entity<T>> condition) Plays back through older versions of this entity until a specified condition is met.Entity.playBackToEvent(Long eventIndex, String eventId) Finds a version of this entity matching the given eventIndex or eventId.Entity.possibleTargets(Object update) Determines the possible target entities for the given update.Methods in io.fluxzero.sdk.modeling with parameters of type EntityModifier and TypeMethodDescriptionOptional<io.fluxzero.common.handling.HandlerInvoker> DefaultEntityHelper.applyInvoker(DeserializingMessage event, Entity<?> entity, boolean searchChildren, boolean checkCompatibility) Finds a handler method annotated with@Applyand wraps it to preserve apply context flags.default Optional<io.fluxzero.common.handling.HandlerInvoker> EntityHelper.applyInvoker(DeserializingMessage message, Entity<?> entity) Returns an invoker that can apply the given event to the provided entity.default Optional<io.fluxzero.common.handling.HandlerInvoker> EntityHelper.applyInvoker(DeserializingMessage message, Entity<?> entity, boolean searchChildren) Returns an invoker for applying the event to the entity, optionally checking nested entities.Optional<io.fluxzero.common.handling.HandlerInvoker> EntityHelper.applyInvoker(DeserializingMessage message, Entity<?> entity, boolean searchChildren, boolean checkCompatibility) Returns an invoker for applying the event to the entity, optionally checking nested entities.protected <E extends Exception>
voidImmutableEntity.assertApplyCompatibility(DeserializingMessage message, Entity<?> entity) protected <E extends Exception>
voidImmutableEntity.assertApplyCompatibility(DeserializingMessage message, Entity<?> entity, Set<Class<?>> visitedTypes) <E extends Exception>
voidDefaultEntityHelper.assertLegal(Object value, Entity<?> entity) Performs a validation check using@AssertLegalhandlers for the provided payload.<E extends Exception>
voidEntityHelper.assertLegal(Object value, Entity<?> entity) Validates whether the given value results in a legal state transition for the specified entity.default Set<io.fluxzero.common.api.modeling.Relationship> Entity.associations(Entity<?> previous) Determines the set of new associations (relationships) that are present in the current entity but not in the provided previous entity.DefaultEntityHelper.checkLegality(Object value, Entity<?> entity) Returns an exception if the value is illegal for the current entity, orOptional.empty()if legal.EntityHelper.checkLegality(Object value, Entity<?> entity) Checks if the given value would be considered legal for the specified entity.static CommitAttemptCommitAttempt.createSingle(long readStateIndex, String modelId, Class<?> modelType, MutationPlan.Access access, List<String> sourceProperties, Entity<?> entity) Creates the allocation-minimal begin-state used by a direct single-model strategy.default Set<io.fluxzero.common.api.modeling.Relationship> Entity.dissociations(Entity<?> previous) Identifies and returns the set of relationships that are dissociated when compared to the relationships of the given previous entity.static <T> ImmutableAggregateRoot<T> ImmutableAggregateRoot.from(Entity<T> a, EntityHelper entityHelper, Serializer serializer, EventStore eventStore) static <T> LazyAggregateRoot<T> LazyAggregateRoot.from(ImmutableAggregateRoot<T> delegate, Entity<T> lastCheckpoint) List<? extends ImmutableEntity<?>> AnnotatedEntityHolder.getEntities(Entity<?> parent) Returns the set ofImmutableEntityinstances that are defined at the member location within the specified parent entity.AnnotatedEntityHolder.getEntityByRoute(Entity<?> parent, String routeValue) ModifiableAggregateRoot.CommitHandler.handle(Entity<?> model, List<AppliedEvent> unpublished, Entity<?> beforeUpdate) Commits the aggregate state and any unpublished events.Stream<?> Intercepts the given value using@InterceptApplymethods defined on the entity.Stream<?> Intercepts the given value before it is applied to an entity.booleanConvenience method that returnstrueifDefaultEntityHelper.checkLegality(Object, Entity)yields no error.booleanReturns whether the given value is considered legal for the specified entity.static <T> Graph<T> Graphs.lazy(Entity<T> entity, long stateIndex, ModelRepository repository) Creates a lazy one-model graph without loading relationships.protected booleanReturnstrueif the entity or any of its parents match the expected parameter type, respecting nullable flags on parameters.static <T> Entity<T> ModelBatchScope.overlayCurrent(String namespace, String requestedId, Class<T> requestedType, Entity<T> durable) Overlays a durable direct load with the newest pending model or alias visible to the current message.protected Supplier<?> Returns aSupplierthat returns the entity if the entity or any of its parents match the expected parameter type.static Entity<?> ImmutableRoot.retainPrevious(Entity<?> previous, EntityMetadata.RootConfiguration configuration) Applies the shared bounded revision-retention policy used by persisted roots.static <T> ImmutableModelRoot<T> ImmutableModelRoot.revision(Object id, Class<T> type, String idProperty, T value, EntityHelper entityHelper, Serializer serializer, String lastEventId, Long lastEventIndex, Instant timestamp, long sequenceNumber, long stateIndex, Entity<T> previous) Creates a model root from one authoritative stored revision.AnnotatedEntityHolder.updateOwner(Object owner, Entity<?> before, Entity<?> after) Updates the parent object with the new state of a child entity.DefaultEntityHelper.MessageWithEntity.withEntity(Entity<?> entity) ImmutableAggregateRoot.withPrevious(Entity<T> previous) ImmutableModelRoot.withPrevious(Entity<T> previous) Returns this revision with the supplied in-memory predecessor.abstract ImmutableRoot<T> ImmutableRoot.withPrevious(Entity<T> previous) Returns this root revision with a different in-memory predecessor.Method parameters in io.fluxzero.sdk.modeling with type arguments of type EntityModifier and TypeMethodDescriptionstatic <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, ModelRepository repository, boolean historical) Creates a complete graph from one coherent repository reconstruction.static <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> models, List<io.fluxzero.common.api.modeling.ModelGraphEdge> edges, ModelRepository repository, boolean historical, io.fluxzero.common.api.modeling.ModelReadBoundary boundary) Creates a complete graph while retaining its exact repository boundary for lazy relationship loads.static <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> durableModels, List<io.fluxzero.common.api.modeling.ModelGraphEdge> durableEdges, ModelRepository repository, boolean historical, io.fluxzero.common.api.modeling.ModelReadBoundary boundary, String namespace, Class<T> rootType, Graph.Options options, Map<String, Entity<?>> staged, Function<Entity<?>, Graph<?>> supplementalLoader) Builds one indexed state with visible message-batch values applied before graph selection.static <T> Graph<T> Graphs.compose(String rootId, long stateIndex, Map<String, Entity<?>> durableModels, List<io.fluxzero.common.api.modeling.ModelGraphEdge> durableEdges, ModelRepository repository, boolean historical, io.fluxzero.common.api.modeling.ModelReadBoundary boundary, String namespace, Class<T> rootType, Graph.Options options, Map<String, Entity<?>> staged, Function<Entity<?>, Graph<?>> supplementalLoader) Builds one indexed state with visible message-batch values applied before graph selection.static CommitAttemptCommitAttempt.create(long readStateIndex, MutationPlan.Resolution resolution, Map<String, ? extends Entity<?>> loadedModels) Creates a loaded begin-state for one resolved target set.Entity.filterEntity(Predicate<? super Entity<T>> predicate) Filters the current entity based on the provided predicate.Entity.findEntity(Predicate<? super Entity<?>> predicate) Finds the first entity in this entity hierarchy that matches the given predicate.ModifiableAggregateRoot.handleUpdate(UnaryOperator<Entity<T>> update) Entity.ifPresent(UnaryOperator<Entity<T>> action) Applies the specified action to this entity if it is present, returning the result of the commit.static <T> Entity<T> ModifiableAggregateRoot.load(@NonNull AggregateRepository repository, Object aggregateId, Supplier<Entity<T>> loader, AggregateCommitPolicy commitPolicy, EntityMetadata.RootConfiguration configuration, AggregateEventRouting eventRouting, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) Loads an aggregate using shared persistence settings and its Aggregate-specific event routing.static <T> Entity<T> ModifiableAggregateRoot.load(@NonNull AggregateRepository repository, Object aggregateId, Supplier<Entity<T>> loader, AggregateCommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, AggregateEventRouting eventRouting, boolean eventSourced, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) Loads an aggregate in a scope owned by the supplied repository.static <T> Entity<T> ModifiableAggregateRoot.load(Object aggregateId, Supplier<Entity<T>> loader, AggregateCommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, AggregateEventRouting eventRouting, boolean eventSourced, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) default <U> Optional<U> Applies the provided mapping function to the entity and returns anOptionaldescribing the result.default <U> Optional<U> Entity.mapIfPresent(Function<Entity<T>, U> action) Maps the entity to a new value if the entity is present.Entity.playBackToCondition(Predicate<Entity<T>> condition) Plays back through older versions of this entity until a specified condition is met.Constructors in io.fluxzero.sdk.modeling with parameters of type EntityModifierConstructorDescriptionDelegatingEntity(@NonNull Entity<T> delegate) DeserializingMessageWithEntity(DeserializingMessage message, Entity<?> entity) EntityUpdate(Entity<?> before, Entity<?> after) Creates an instance of aEntityUpdaterecord class.protectedImmutableEntity(Object id, Class<T> type, T value, String idProperty, Entity<?> parent, AnnotatedEntityHolder holder, EntityHelper entityHelper, Serializer serializer) protectedImmutableRoot(ImmutableRoot<T> source, String lastEventId, Long lastEventIndex, long sequenceNumber, Entity<T> previous) protectedImmutableRoot(Object id, Class<T> type, String idProperty, T value, EntityHelper entityHelper, Serializer serializer, String lastEventId, Long lastEventIndex, Instant timestamp, long sequenceNumber, Entity<T> previous) protectedLazyAggregateRoot(ImmutableAggregateRoot<T> delegate, Entity<T> lastCheckpoint) MessageWithEntity(Object payload, Entity<?> entity) MessageWithEntity(Object payload, Entity<?> entity, boolean afterHandler) protectedModifiableAggregateRoot(Entity<T> delegate, AggregateCommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, AggregateEventRouting eventRouting, boolean eventSourced, EntityHelper entityHelper, Serializer serializer, DispatchInterceptor dispatchInterceptor, ModifiableAggregateRoot.CommitHandler commitHandler) ModifiableEntity(Entity<T> delegate, ModifiableAggregateRoot<?> root) SideEffectFreeEntity(Entity<T> delegate) Constructor parameters in io.fluxzero.sdk.modeling with type arguments of type EntityModifierConstructorDescriptionChange(String modelId, Class<?> modelType, long beforeSequenceNumber, Long beforeLastEventIndex, Object before, Object after, Executable handler, UnaryOperator<Entity<?>> directReplay, boolean cascadedDeletion, EntityMetadata metadata, io.fluxzero.common.api.modeling.ModelConflictPolicy conflictPolicy, GraphProjectionCompletion graphProjectionCompletion, boolean active, boolean storeEvent, boolean publishEvent, boolean updateState) Creates an instance of aChangerecord class. -
Uses of Entity in io.fluxzero.sdk.persisting.eventsourcing
Methods in io.fluxzero.sdk.persisting.eventsourcing that return types with arguments of type EntityModifier and TypeMethodDescriptionDefaultSnapshotStore.deserializeSnapshot(DefaultSnapshotStore.SnapshotDocument document) DefaultSnapshotStore.findSnapshot(Object aggregateId, Long sequenceNumberExclusive) DefaultSnapshotStore.getSnapshot(Object aggregateId) NoOpSnapshotStore.getSnapshot(Object aggregateId) SnapshotStore.getSnapshot(Object aggregateId) Retrieves the most recent snapshot for a given aggregate ID, if available.DefaultSnapshotStore.getSnapshotBefore(Object aggregateId, long sequenceNumberExclusive) NoOpSnapshotStore.getSnapshotBefore(Object aggregateId, long sequenceNumberExclusive) SnapshotStore.getSnapshotBefore(Object aggregateId, long sequenceNumberExclusive) Retrieves the most recent snapshot with a sequence number strictly lower than the given value.Methods in io.fluxzero.sdk.persisting.eventsourcing with parameters of type EntityModifier and TypeMethodDescriptionbooleanNoSnapshotTrigger.shouldCreateSnapshot(Entity<?> model, List<AppliedEvent> newEvents) Always returnsfalse, indicating that a snapshot should never be created.booleanPeriodicSnapshotTrigger.shouldCreateSnapshot(Entity<?> model, List<AppliedEvent> newEvents) Determines whether a new snapshot should be created.booleanSnapshotTrigger.shouldCreateSnapshot(Entity<?> model, List<AppliedEvent> newEvents) Determines whether a snapshot should be created for the given aggregate state and recent events.<T> CompletableFuture<Void> DefaultSnapshotStore.storeSnapshot(Entity<T> snapshot) <T> CompletableFuture<Void> NoOpSnapshotStore.storeSnapshot(Entity<T> snapshot) <T> CompletableFuture<Void> SnapshotStore.storeSnapshot(Entity<T> snapshot) Stores a new snapshot for the given aggregate entity.protected CompletableFuture<Void> DefaultSnapshotStore.trimSnapshots(Entity<?> snapshot) -
Uses of Entity in io.fluxzero.sdk.persisting.repository
Methods in io.fluxzero.sdk.persisting.repository that return EntityModifier and TypeMethodDescription<T> Entity<T> AggregateRepository.asEntity(T entity) Wrap an existing aggregate instance into anEntity, initializing tracking and identity information.<T> Entity<T> CachingAggregateRepository.asEntity(T entityId) <T> Entity<T> DefaultAggregateRepository.asEntity(T entityValue) DefaultAggregateRepository.AnnotatedAggregateRepository.eventSourceModel(Entity<T> model) default <T> Entity<T> Load an aggregate by a typed identifier.default <T> Entity<T> Load an aggregate by its identifier.<T> Entity<T> Load an aggregate by its identifier and type.<T> Entity<T> <T> Entity<T> <T> Entity<T> default <T> Entity<T> Loads a model using the type carried by a typed identifier.default <T> Entity<T> Loads a model by ID, inferring its requested type when the ID is typed.default <T> Entity<T> ModelRepository.load(@NonNull Object parentId, @NonNull Class<?> parentType, @NonNull Object modelId, @NonNull Class<T> modelType) Loads a parent-scoped model by its functional child ID and explicit parent type.default <T> Entity<T> Loads a model using the string representation of the supplied ID, resolving a current model alias when no primary model has that identity.<T> Entity<T> Loads a model by primary ID or current alias and expected type.<T> Entity<T> DefaultModelRepository.loadCurrent(@NonNull String modelId, @NonNull Class<T> modelType) default <T> Entity<T> ModelRepository.loadCurrent(@NonNull Object modelId, @NonNull Class<T> modelType) Loads the latest model state without inheriting an event or notification handler's historical read boundary.default <T> Entity<T> ModelRepository.loadCurrent(@NonNull String modelId, @NonNull Class<T> modelType) Loads the latest model state by exact persisted identity.<T> Entity<T> Load the aggregate that owns the specified entity.<T> Entity<T> <T> Entity<T> DefaultAggregateRepository.AnnotatedAggregateRepository.loadSnapshot(Object id) DefaultAggregateRepository.AnnotatedAggregateRepository.withHistoricalSnapshots(ImmutableAggregateRoot<T> snapshot, Object aggregateId) Methods in io.fluxzero.sdk.persisting.repository that return types with arguments of type EntityModifier and TypeMethodDescriptionLoads several models at one coherent state boundary, preserving input order.Methods in io.fluxzero.sdk.persisting.repository with parameters of type EntityModifier and TypeMethodDescriptionvoidDefaultModelRepository.CurrentModelSink.accept(Entity<?> entity, long validThrough, long modelStateIndex) DefaultAggregateRepository.AnnotatedAggregateRepository.commit(Entity<?> after, List<AppliedEvent> unpublishedEvents, Entity<?> before) DefaultAggregateRepository.AnnotatedAggregateRepository.eventSourceModel(Entity<T> model) AggregateRepository.repairRelationships(Entity<?> aggregate) Repairs the internal relationship model for a loaded aggregate.CachingAggregateRepository.repairRelationships(Entity<?> aggregate) DefaultAggregateRepository.repairRelationships(Entity<?> aggregate) protected ImmutableAggregateRoot<T> DefaultAggregateRepository.AnnotatedAggregateRepository.restoreSnapshotId(Object id, Entity<T> snapshot) protected voidCachingAggregateRepository.updateRelationships(Entity<?> before, Entity<?> after) -
Uses of Entity in io.fluxzero.sdk.tracking.handling
Methods in io.fluxzero.sdk.tracking.handling that return EntityModifier and TypeMethodDescriptionEntity<?> StatefulHandler.StatefulMemberMutation.after()Returns the value of theafterrecord component.Entity<?> StatefulHandler.StatefulMemberMutation.before()Returns the value of thebeforerecord component.Entity<?> StatefulHandler.StatefulMemberMessage.getEntity()Entity<?> StatefulHandler.StatefulMemberMutation.target()Returns the value of thetargetrecord component.Constructors in io.fluxzero.sdk.tracking.handling with parameters of type EntityModifierConstructorDescriptionprotectedStatefulMemberMutation(StatefulHandler.StatefulMember member, Entity<?> target, Entity<?> before, Entity<?> after) Creates an instance of aStatefulMemberMutationrecord class.