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

io.tarantool.driver.core.ProxyTarantoolTupleClient 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.TarantoolCallOperations;
import io.tarantool.driver.api.TarantoolClient;
import io.tarantool.driver.api.TarantoolClientConfig;
import io.tarantool.driver.api.TarantoolResult;
import io.tarantool.driver.api.metadata.TarantoolMetadataOperations;
import io.tarantool.driver.api.metadata.TarantoolSpaceMetadata;
import io.tarantool.driver.api.proxy.ProxyOperationsMappingConfig;
import io.tarantool.driver.api.space.TarantoolSpaceOperations;
import io.tarantool.driver.api.tuple.TarantoolTuple;
import io.tarantool.driver.core.space.ProxyTarantoolTupleSpace;

/**
 * {@link ProxyTarantoolClient} implementation for working with default tuples
 *
 * @author Alexey Kuzin
 */
public class ProxyTarantoolTupleClient extends ProxyTarantoolClient> {

    /**
     * Basic constructor. Uses default values for proxy operations mapping.
     *
     * @param decoratedClient configured Tarantool client
     */
    public ProxyTarantoolTupleClient(TarantoolClient> decoratedClient) {
        this(decoratedClient, ProxyOperationsMappingConfig.builder().build());
    }

    /**
     * Basic constructor
     *
     * @param decoratedClient configured Tarantool client
     * @param mappingConfig   config for proxy operations mapping
     */
    public ProxyTarantoolTupleClient(
        TarantoolClient> decoratedClient,
        ProxyOperationsMappingConfig mappingConfig) {
        super(decoratedClient, mappingConfig);
    }

    @Override
    protected TarantoolSpaceOperations> spaceOperations(
        TarantoolClientConfig config,
        TarantoolCallOperations client,
        ProxyOperationsMappingConfig mappingConfig,
        TarantoolMetadataOperations metadata,
        TarantoolSpaceMetadata spaceMetadata) {
        return new ProxyTarantoolTupleSpace(config, client, mappingConfig, spaceMetadata, metadata);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy