io.tarantool.driver.api.connection.ConnectionSelectionStrategyFactory 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.api.connection;
import io.tarantool.driver.api.TarantoolClientConfig;
import java.util.Collection;
/**
* Manages instantiation of connection selection strategies. A strategy contains the algorithm of selecting connections
* from the connection pool for performing the next request
*
* @author Alexey Kuzin
* @see ConnectionSelectionStrategy
*/
public interface ConnectionSelectionStrategyFactory {
/**
* Take the specified collection of Tarantool server connections and instantiate a strategy
*
* @param config client configuration
* @param connections established connections
* @return a connection selection strategy instance
*/
ConnectionSelectionStrategy create(TarantoolClientConfig config, Collection connections);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy