Interface ReactiveTransactionOperations<C>

    • Method Detail

      • withTransaction

        @NonNull
        <T> org.reactivestreams.Publisher<T> withTransaction​(@NonNull
                                                             TransactionDefinition definition,
                                                             @NonNull
                                                             ReactiveTransactionOperations.TransactionalCallback<C,​T> handler)
        Execute the given handler with a new transaction.
        Type Parameters:
        T - The emitted type
        Parameters:
        definition - The definition
        handler - The handler
        Returns:
        A publisher that emits the result type
      • withTransaction

        @NonNull
        default <T> org.reactivestreams.Publisher<T> withTransaction​(@NonNull
                                                                     ReactiveTransactionOperations.TransactionalCallback<C,​T> handler)
        Execute the given handler with a new transaction.
        Type Parameters:
        T - The emitted type
        Parameters:
        handler - The handler
        Returns:
        A publisher that emits the result type