Class SynchronousConnectionOperationsFromReactiveConnectionOperations<T>
java.lang.Object
io.micronaut.data.connection.sync.SynchronousConnectionOperationsFromReactiveConnectionOperations<T>
- Type Parameters:
- T- The connection type
- All Implemented Interfaces:
- ConnectionOperations<T>
@Internal
public final class SynchronousConnectionOperationsFromReactiveConnectionOperations<T>
extends Object
implements ConnectionOperations<T>
Implementation of the synchronous connection operations using a reactive connection operations.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
- 
Constructor SummaryConstructorsConstructorDescriptionSynchronousConnectionOperationsFromReactiveConnectionOperations(ReactorConnectionOperations<T> reactorConnectionOperations, ExecutorService blockingExecutorService) 
- 
Method SummaryModifier and TypeMethodDescription<R> Rexecute(ConnectionDefinition definition, Function<ConnectionStatus<T>, R> callback) Execute a connection within the context of the function.Obtains the current 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.ConnectionOperationsexecuteRead, executeWrite, getConnectionStatus
- 
Constructor Details- 
SynchronousConnectionOperationsFromReactiveConnectionOperationspublic SynchronousConnectionOperationsFromReactiveConnectionOperations(ReactorConnectionOperations<T> reactorConnectionOperations, ExecutorService blockingExecutorService) 
 
- 
- 
Method Details- 
findConnectionStatusDescription copied from interface:ConnectionOperationsObtains the current connection.- Specified by:
- findConnectionStatusin interface- ConnectionOperations<T>
- Returns:
- The optional connection
 
- 
executeDescription copied from interface:ConnectionOperationsExecute a connection within the context of the function.- Specified by:
- executein interface- ConnectionOperations<T>
- Type Parameters:
- R- The result
- Parameters:
- definition- The connection definition
- callback- The call back
- Returns:
- The result
 
 
-