Class AsyncUsingReactiveConnectionOperations<C>
java.lang.Object
io.micronaut.data.connection.async.AsyncUsingReactiveConnectionOperations<C>
- Type Parameters:
- C- The connection type
- All Implemented Interfaces:
- AsyncConnectionOperations<C>
@Internal
public final class AsyncUsingReactiveConnectionOperations<C>
extends Object
implements AsyncConnectionOperations<C>
Implementation of the asynchronous connection operations using a reactive connection operations.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
- 
Constructor SummaryConstructorsConstructorDescriptionAsyncUsingReactiveConnectionOperations(ReactorConnectionOperations<C> reactorConnectionOperations) 
- 
Method SummaryModifier and TypeMethodDescriptionObtains the current connection.<T> CompletionStage<T>withConnection(ConnectionDefinition definition, Function<ConnectionStatus<C>, CompletionStage<T>> handler) Execute the given handler with a new connection.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.connection.async.AsyncConnectionOperationsgetConnectionStatus, withConnection
- 
Constructor Details- 
AsyncUsingReactiveConnectionOperationspublic AsyncUsingReactiveConnectionOperations(ReactorConnectionOperations<C> reactorConnectionOperations) 
 
- 
- 
Method Details- 
findConnectionStatusDescription copied from interface:AsyncConnectionOperationsObtains the current connection.- Specified by:
- findConnectionStatusin interface- AsyncConnectionOperations<C>
- Returns:
- The optional connection
 
- 
withConnectionpublic <T> CompletionStage<T> withConnection(ConnectionDefinition definition, Function<ConnectionStatus<C>, CompletionStage<T>> handler) Description copied from interface:AsyncConnectionOperationsExecute the given handler with a new connection.- Specified by:
- withConnectionin interface- AsyncConnectionOperations<C>
- Type Parameters:
- T- The emitted type
- Parameters:
- definition- The definition
- handler- The handler
- Returns:
- A publisher that emits the result type
 
 
-