Interface ReactiveAfterSaveCallback<T>

All Superinterfaces:
EntityCallback<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReactiveAfterSaveCallback<T> extends EntityCallback<T>
Entity callback triggered after save of a Document.
Since:
3.0
Author:
Roman Puchkovskiy
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<T>
    onAfterSave(T entity, org.bson.Document document, String collection)
    Entity callback method invoked after a domain object is saved.
  • Method Details

    • onAfterSave

      org.reactivestreams.Publisher<T> onAfterSave(T entity, org.bson.Document document, String collection)
      Entity callback method invoked after a domain object is saved. Can return either the same or a modified instance of the domain object.
      Parameters:
      entity - the domain object that was saved.
      document - Document representing the entity.
      collection - name of the collection.
      Returns:
      a Publisher emitting the domain object to be returned to the caller.