io.tarantool.driver.core.RetryingTarantoolTupleClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.core;
import io.tarantool.driver.api.TarantoolClient;
import io.tarantool.driver.api.TarantoolResult;
import io.tarantool.driver.api.retry.RequestRetryPolicyFactory;
import io.tarantool.driver.api.space.TarantoolSpaceOperations;
import io.tarantool.driver.api.tuple.TarantoolTuple;
import io.tarantool.driver.core.space.RetryingTarantoolSpace;
import java.util.concurrent.Executor;
/**
* {@link RetryingTarantoolClient} implementation for working with default tuples
*
* @author Alexey Kuzin
*/
public class RetryingTarantoolTupleClient
extends RetryingTarantoolClient> {
/**
* Basic constructor
*
* @param decoratedClient configured Tarantool client
* @param retryPolicyFactory request retrying policy settings
*/
public RetryingTarantoolTupleClient(
TarantoolClient> decoratedClient,
RequestRetryPolicyFactory retryPolicyFactory) {
super(decoratedClient, retryPolicyFactory);
}
/**
* Basic constructor
*
* @param decoratedClient configured Tarantool client
* @param retryPolicyFactory request retrying policy settings
* @param executor executor service for retry callbacks
*/
public RetryingTarantoolTupleClient(
TarantoolClient> decoratedClient,
RequestRetryPolicyFactory retryPolicyFactory,
Executor executor) {
super(decoratedClient, retryPolicyFactory, executor);
}
@Override
protected RetryingTarantoolSpace>
spaceOperations(
TarantoolSpaceOperations> decoratedSpaceOperations,
RequestRetryPolicyFactory retryPolicyFactory, Executor executor) {
return new RetryingTarantoolSpace<>(decoratedSpaceOperations, retryPolicyFactory, executor);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy