org.springframework.data.mongodb.core

Interface ReactiveInsertOperation.TerminatingInsert<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and 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 Detail

      • 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.