All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tarantool.driver.core.RetryingTarantoolTupleClient Maven / Gradle / Ivy

Go to download

Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework

There is a newer version: 0.14.0
Show newest version
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