Package io.tarantool.driver.api
Interface TarantoolCallOperations
-
- All Known Subinterfaces:
TarantoolClient<T,R>
- All Known Implementing Classes:
AbstractTarantoolClient
,ClusterTarantoolClient
,ClusterTarantoolTupleClient
,ProxyTarantoolClient
,ProxyTarantoolTupleClient
,RetryingTarantoolClient
,RetryingTarantoolTupleClient
public interface TarantoolCallOperations
Aggregates all call operation variants
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<List<?>>
call(String functionName)
Execute a function defined on Tarantool instance.<T> CompletableFuture<TarantoolResult<T>>
call(String functionName, CallResultMapper<TarantoolResult<T>,SingleValueCallResult<TarantoolResult<T>>> resultMapper)
Execute a function defined on Tarantool instance.<T> CompletableFuture<TarantoolResult<T>>
call(String functionName, Class<T> entityClass)
Execute a function defined on Tarantool instance.CompletableFuture<List<?>>
call(String functionName, Object... arguments)
Execute a function defined on Tarantool instance, The value mapper specified in the client configuration will be used for converting the result values from MessagePack entities to objects.CompletableFuture<List<?>>
call(String functionName, List<?> arguments)
Execute a function defined on Tarantool instance.<T> CompletableFuture<TarantoolResult<T>>
call(String functionName, List<?> arguments, CallResultMapper<TarantoolResult<T>,SingleValueCallResult<TarantoolResult<T>>> resultMapper)
Execute a function defined on Tarantool instance.CompletableFuture<List<?>>
call(String functionName, List<?> arguments, MessagePackMapper mapper)
Execute a function defined on Tarantool instance<T> CompletableFuture<TarantoolResult<T>>
call(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, CallResultMapper<TarantoolResult<T>,SingleValueCallResult<TarantoolResult<T>>> resultMapper)
Execute a function defined on Tarantool instance.<T> CompletableFuture<TarantoolResult<T>>
call(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Class<T> entityClass)
Execute a function defined on Tarantool instance.<T> CompletableFuture<TarantoolResult<T>>
call(String functionName, List<?> arguments, Class<T> entityClass)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, CallResultMapper<R,MultiValueCallResult<T,R>> resultMapper)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, Supplier<R> resultContainerSupplier, ValueConverter<org.msgpack.value.Value,T> valueConverter)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, Supplier<R> resultContainerSupplier, Class<T> resultClass)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, List<?> arguments, CallResultMapper<R,MultiValueCallResult<T,R>> resultMapper)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, CallResultMapper<R,MultiValueCallResult<T,R>> resultMapper)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Supplier<R> resultContainerSupplier, ValueConverter<org.msgpack.value.Value,T> valueConverter)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Supplier<R> resultContainerSupplier, Class<T> resultClass)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, List<?> arguments, Supplier<R> resultContainerSupplier, ValueConverter<org.msgpack.value.Value,T> valueConverter)
Execute a function defined on Tarantool instance.<T,R extends List<T>>
CompletableFuture<R>callForMultiResult(String functionName, List<?> arguments, Supplier<R> resultContainerSupplier, Class<T> resultClass)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, CallResultMapper<T,SingleValueCallResult<T>> resultMapper)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, ValueConverter<org.msgpack.value.Value,T> valueConverter)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, Class<T> resultClass)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, List<?> arguments, CallResultMapper<T,SingleValueCallResult<T>> resultMapper)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, List<?> arguments, ValueConverter<org.msgpack.value.Value,T> valueConverter)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, CallResultMapper<T,SingleValueCallResult<T>> resultMapper)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, ValueConverter<org.msgpack.value.Value,T> valueConverter)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Class<T> resultClass)
Execute a function defined on Tarantool instance.<T> CompletableFuture<T>
callForSingleResult(String functionName, List<?> arguments, Class<T> resultClass)
Execute a function defined on Tarantool instance.ResultMapperFactoryFactory
getResultMapperFactoryFactory()
Get the default factory for result mapper factory instances
-
-
-
Method Detail
-
call
CompletableFuture<List<?>> call(String functionName) throws TarantoolClientException
Execute a function defined on Tarantool instance. The value mapper specified in the client configuration will be used for converting the result values from MessagePack entities to objects. TODO example function call- Parameters:
functionName
- function name, must not be null or empty- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
CompletableFuture<List<?>> call(String functionName, Object... arguments) throws TarantoolClientException
Execute a function defined on Tarantool instance, The value mapper specified in the client configuration will be used for converting the result values from MessagePack entities to objects.- Parameters:
functionName
- function name, must not be null or emptyarguments
- vararg array of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entities- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
CompletableFuture<List<?>> call(String functionName, List<?> arguments) throws TarantoolClientException
Execute a function defined on Tarantool instance. The value mapper specified in the client configuration will be used for converting the result values from MessagePack entities to objects.- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entities- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
CompletableFuture<List<?>> call(String functionName, List<?> arguments, MessagePackMapper mapper) throws TarantoolClientException
Execute a function defined on Tarantool instance- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsmapper
- mapper for arguments object-to-MessagePack entity conversion and result values conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected
-
call
<T> CompletableFuture<TarantoolResult<T>> call(String functionName, Class<T> entityClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. The call result is interpreted as an array of tuples. The value mapper specified in the client configuration will be used for converting the result values from MessagePack arrays to the specified entity type.- Type Parameters:
T
- desired function call result type- Parameters:
functionName
- function name, must not be null or emptyentityClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
<T> CompletableFuture<TarantoolResult<T>> call(String functionName, CallResultMapper<TarantoolResult<T>,SingleValueCallResult<TarantoolResult<T>>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. The call result is interpreted as an array of tuples.- Type Parameters:
T
- desired function call result type- Parameters:
functionName
- function name, must not be null or emptyresultMapper
- mapper for result value MessagePack entity-to-object conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
<T> CompletableFuture<TarantoolResult<T>> call(String functionName, List<?> arguments, Class<T> entityClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. The call result is interpreted as an array of tuples. The value mapper specified in the client configuration will be used for converting the result values from MessagePack arrays to the specified entity type.- Type Parameters:
T
- desired function call result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entitiesentityClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
<T> CompletableFuture<TarantoolResult<T>> call(String functionName, List<?> arguments, CallResultMapper<TarantoolResult<T>,SingleValueCallResult<TarantoolResult<T>>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. The call result is interpreted as an array of tuples.- Type Parameters:
T
- desired function call result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function arguments. The object mapper specified in the client configuration will be used for arguments conversion to MessagePack entitiesresultMapper
- mapper for result value MessagePack entity-to-object conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
<T> CompletableFuture<TarantoolResult<T>> call(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Class<T> entityClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. The call result is interpreted as an array of tuples. The value mapper specified in the client configuration will be used for converting the result values from MessagePack arrays to the specified entity type.- Type Parameters:
T
- desired function call result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionentityClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
call
<T> CompletableFuture<TarantoolResult<T>> call(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, CallResultMapper<TarantoolResult<T>,SingleValueCallResult<TarantoolResult<T>>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. The call result is interpreted as an array of tuples.- Type Parameters:
T
- desired function call result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultMapper
- mapper for result value MessagePack entity-to-object conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Class<T> resultClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, ValueConverter<org.msgpack.value.Value,T> valueConverter) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionvalueConverter
- MessagePack value to entity converter for each result item- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, CallResultMapper<T,SingleValueCallResult<T>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultMapper
- mapper for result conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, List<?> arguments, Class<T> resultClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsresultClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, List<?> arguments, ValueConverter<org.msgpack.value.Value,T> valueConverter) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsvalueConverter
- MessagePack value to entity converter for each result item- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, List<?> arguments, CallResultMapper<T,SingleValueCallResult<T>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsresultMapper
- mapper for result conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, Class<T> resultClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyresultClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, ValueConverter<org.msgpack.value.Value,T> valueConverter) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyvalueConverter
- MessagePack value to entity converter for each result item- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForSingleResult
<T> CompletableFuture<T> callForSingleResult(String functionName, CallResultMapper<T,SingleValueCallResult<T>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. The first item of the call result will be interpreted as a value, and the second -- as an error- Type Parameters:
T
- target result content type- Parameters:
functionName
- function name, must not be null or emptyresultMapper
- mapper for result conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Supplier<R> resultContainerSupplier, Class<T> resultClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultContainerSupplier
- supplier function for new empty result collectionresultClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, Supplier<R> resultContainerSupplier, ValueConverter<org.msgpack.value.Value,T> valueConverter) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultContainerSupplier
- supplier function for new empty result collectionvalueConverter
- MessagePack value to entity converter for each result item- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, List<?> arguments, MessagePackObjectMapper argumentsMapper, CallResultMapper<R,MultiValueCallResult<T,R>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsargumentsMapper
- mapper for arguments object-to-MessagePack entity conversionresultMapper
- mapper for result conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, List<?> arguments, Supplier<R> resultContainerSupplier, Class<T> resultClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsresultContainerSupplier
- supplier function for new empty result collectionresultClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, List<?> arguments, Supplier<R> resultContainerSupplier, ValueConverter<org.msgpack.value.Value,T> valueConverter) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsresultContainerSupplier
- supplier function for new empty result collectionvalueConverter
- MessagePack value to entity converter for each result item- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, List<?> arguments, CallResultMapper<R,MultiValueCallResult<T,R>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyarguments
- list of function argumentsresultMapper
- mapper for result conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, Supplier<R> resultContainerSupplier, Class<T> resultClass) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyresultContainerSupplier
- supplier function for new empty result collectionresultClass
- target result entity class- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, Supplier<R> resultContainerSupplier, ValueConverter<org.msgpack.value.Value,T> valueConverter) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyresultContainerSupplier
- supplier function for new empty result collectionvalueConverter
- MessagePack value to entity converter for each result item- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
callForMultiResult
<T,R extends List<T>> CompletableFuture<R> callForMultiResult(String functionName, CallResultMapper<R,MultiValueCallResult<T,R>> resultMapper) throws TarantoolClientException
Execute a function defined on Tarantool instance. All multi-return result items will be put into a list- Type Parameters:
T
- target result content typeR
- target result type- Parameters:
functionName
- function name, must not be null or emptyresultMapper
- mapper for result conversion- Returns:
- some result
- Throws:
TarantoolClientException
- if the client is not connected or some other error occurred
-
getResultMapperFactoryFactory
ResultMapperFactoryFactory getResultMapperFactoryFactory()
Get the default factory for result mapper factory instances- Returns:
- result mapper factory instances factory instance
-
-