Interface ReactiveInsertOperation.TerminatingInsert<T>

All Known Subinterfaces:
ReactiveInsertOperation.ReactiveInsert<T>
Enclosing interface:
ReactiveInsertOperation

public static interface ReactiveInsertOperation.TerminatingInsert<T>
Compose insert execution by calling one of the terminating methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Flux<T>
    all(Collection<? extends T> objects)
    Insert a collection of objects.
    reactor.core.publisher.Mono<T>
    one(T object)
    Insert exactly one object.
  • Method Details

    • one

      reactor.core.publisher.Mono<T> one(T object)
      Insert exactly one object.
      Parameters:
      object - must not be null.
      Returns:
      Mono emitting the inserted object when operation has completed. Never null.
      Throws:
      IllegalArgumentException - if object is null.
    • all

      reactor.core.publisher.Flux<T> all(Collection<? extends T> objects)
      Insert a collection of objects.
      Parameters:
      objects - must not be null.
      Returns:
      Flux emitting the inserted objects ony by one. Never null.
      Throws:
      IllegalArgumentException - if objects is null.