Interface ReactiveBeforeConvertCallback<T>

All Superinterfaces:
EntityCallback<T>
All Known Implementing Classes:
ReactiveAuditingEntityCallback
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 ReactiveBeforeConvertCallback<T> extends EntityCallback<T>
Callback being invoked before a domain object is converted to be persisted.
Since:
2.2
Author:
Mark Paluch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<T>
    onBeforeConvert(T entity, String collection)
    Entity callback method invoked before a domain object is converted to be persisted.
  • Method Details

    • onBeforeConvert

      org.reactivestreams.Publisher<T> onBeforeConvert(T entity, String collection)
      Entity callback method invoked before a domain object is converted to be persisted. Can return either the same of a modified instance of the domain object.
      Parameters:
      entity - the domain object to save.
      collection - name of the collection.
      Returns:
      a Publisher emitting the domain object to be persisted.