public static final class ReplaceProxyOperation.Builder<T extends Packable,R extends Collection<T>> extends Object implements OperationWithTupleBuilderOptions<ReplaceProxyOperation.Builder<T,R>,T>
Modifier and Type | Field and Description |
---|---|
protected EnumMap<ProxyOperationArgument,Object> |
arguments |
protected Supplier<MessagePackObjectMapper> |
argumentsMapperSupplier |
protected TarantoolCallOperations |
client |
protected String |
functionName |
protected Supplier<CallResultMapper<T,SingleValueCallResult<T>>> |
resultMapperSupplier |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(ProxyOperationArgument optionName,
Object option) |
ReplaceProxyOperation<T,R> |
build() |
ReplaceProxyOperation.Builder<T,R> |
self() |
B |
withArgumentsMapperSupplier(Supplier<MessagePackObjectMapper> argumentsMapperSupplier)
Specify entity-to-MessagePack mapper for arguments contents conversion
|
B |
withClient(TarantoolCallOperations client)
Specify a client for sending and receiving requests from Tarantool server
|
B |
withFunctionName(String functionName)
Specify name of the Tarantool server function called through preparing request
|
B |
withOptions(O options)
Specify custom options
|
B |
withResultMapperSupplier(Supplier<CallResultMapper<T,SingleValueCallResult<T>>> resultMapperSupplier)
Specify MessagePack-to-entity mapper for result contents conversion
|
B |
withSpaceName(String spaceName)
Specify name of Tarantool server space to work with
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withTuple
addArgument
protected TarantoolCallOperations client
protected String functionName
protected EnumMap<ProxyOperationArgument,Object> arguments
protected Supplier<MessagePackObjectMapper> argumentsMapperSupplier
protected Supplier<CallResultMapper<T,SingleValueCallResult<T>>> resultMapperSupplier
public ReplaceProxyOperation.Builder<T,R> self()
self
in interface Self<ReplaceProxyOperation.Builder<T extends Packable,R extends Collection<T>>>
public ReplaceProxyOperation<T,R> build()
public void addArgument(ProxyOperationArgument optionName, Object option)
addArgument
in interface BuilderOptions
public B withClient(TarantoolCallOperations client)
client
- Tarantool server clientpublic B withSpaceName(String spaceName)
spaceName
- name of Tarantool server spacepublic B withFunctionName(String functionName)
functionName
- name of Tarantool server functionpublic B withArgumentsMapperSupplier(Supplier<MessagePackObjectMapper> argumentsMapperSupplier)
argumentsMapperSupplier
- mapper supplier for arguments entity-to-MessagePack entity conversionpublic B withResultMapperSupplier(Supplier<CallResultMapper<T,SingleValueCallResult<T>>> resultMapperSupplier)
resultMapperSupplier
- mapper supplier for result value MessagePack entity-to-object conversionpublic B withOptions(O options)
options
- cluster proxy operation optionsCopyright © 2025 Picodata. All rights reserved.