AxonFramework / ReferenceGuide

The Reference Guide of Axon Framework
Apache License 2.0
29 stars 22 forks source link

AggregrateLifecycle description - Mark as deleted #100

Open marleinevankampen opened 6 years ago

marleinevankampen commented 6 years ago

Explain in the Command Model chapter how an Aggregate can be ended/closed/deleted.

Description in code about the AggregateLifecycle in code is:

  /**
     * Marks this aggregate as deleted, instructing a repository to remove that aggregate at an appropriate time.
     * <p/>
     * Note that different repository implementations may react differently to aggregates marked for deletion.
     * Typically, Event Sourced Repositories will ignore the marking and expect deletion to be provided as part of Event
     * information.
     */
    public static void markDeleted() {
        getInstance().doMarkDeleted();
    }