Class AfterDeleteEvent<E>

All Implemented Interfaces:
Serializable, RelationalEvent<E>, WithAggregateChange<E>, WithId<E>

public class AfterDeleteEvent<E> extends RelationalDeleteEvent<E>
Gets published after deletion of an entity. It will have a Identifier identifier. If the entity is null or not depends on the delete method used.
Since:
2.0
Author:
Jens Schauder
See Also:
  • Constructor Details

    • AfterDeleteEvent

      public AfterDeleteEvent(Identifier id, @Nullable E instance, AggregateChange<E> change)
      Parameters:
      id - of the entity. Must not be null.
      instance - the deleted entity if it is available. May be null.
      change - the AggregateChange encoding the actions that were performed on the database as part of the delete operation. Must not be null.