Entity Lifecycle
The lifecycle callbacks of an Entity.
On each call, posts from zero to several system commands. See the individual method descriptions for more info about the posted commands.
An instance of EntityLifecycle
is associated with a single instance of entity.
See also
Repository.lifecycleOf(I)
Constructors
Link copied to clipboard
protected void EntityLifecycle(Object entityId, TypeUrl entityType, SystemWriteSide writeSide, EventFilter eventFilter, EntityTypeName typeName)
Creates a new instance.
Functions
Link copied to clipboard
Posts the CommandHandled system event.
Link copied to clipboard
Posts the CommandRejected system event.
Link copied to clipboard
Link copied to clipboard
Posts the io.spine.system.server.event.
Link copied to clipboard
Posts the EventDispatchedToReactor system event.
Link copied to clipboard
Posts the EventDispatchedToSubscriber system event.
Link copied to clipboard
public final void onDispatchingFailed(SignalEnvelope<? extends Object, ? extends Object, ? extends Object> signal, Error error)
Posts a diagnostic event on a dispatching error.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Posts the EntityCreated system event.
Link copied to clipboard
Link copied to clipboard
public final void onInvalidEntity(MessageId lastMessage, MessageId root, ValidationError error, Version version)
Posts the ConstraintViolated system event.
Link copied to clipboard
Posts the MigrationApplied event.
Link copied to clipboard
Posts the EntityDeleted event signaling that the entity record was removed from the storage.
Link copied to clipboard
public final void onStateChanged(EntityRecordChange change, Set<? extends MessageId> messageIds, Origin origin)
Posts the EntityStateChanged system event and the events related to the lifecycle flags.
Link copied to clipboard
Posts the TargetAssignedToCommand system command.