Interface AsyncTransactionOperations<C>

    • Method Detail

      • withTransaction

        @NonNull
        <T> java.util.concurrent.CompletionStage<T> withTransaction​(@NonNull
                                                                    TransactionDefinition definition,
                                                                    @NonNull
                                                                    java.util.function.Function<AsyncTransactionStatus<C>,​java.util.concurrent.CompletionStage<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> java.util.concurrent.CompletionStage<T> withTransaction​(@NonNull
                                                                            java.util.function.Function<AsyncTransactionStatus<C>,​java.util.concurrent.CompletionStage<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