Interface MongoReactorRepositoryOperations

    • Method Detail

      • withClientSession

        <T> reactor.core.publisher.Mono<T> withClientSession​(java.util.function.Function<com.mongodb.reactivestreams.client.ClientSession,​reactor.core.publisher.Mono<? extends T>> function)
        Starts a new session or reuses one from the context.
        Type Parameters:
        T - The emitted type
        Parameters:
        function - The function
        Returns:
        The processed publisher
      • withClientSessionMany

        <T> reactor.core.publisher.Flux<T> withClientSessionMany​(java.util.function.Function<com.mongodb.reactivestreams.client.ClientSession,​reactor.core.publisher.Flux<? extends T>> function)
        Starts a new session or reuses one from the context.
        Type Parameters:
        T - The emitted type
        Parameters:
        function - The function
        Returns:
        The processed publisher