Interface ConnectionSelectionStrategyFactory
-
- All Known Implementing Classes:
TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory,TarantoolConnectionSelectionStrategies.RoundRobinStrategyFactory
public interface ConnectionSelectionStrategyFactoryManages instantiation of connection selection strategies. A strategy contains the algorithm of selecting connections from the connection pool for performing the next request- See Also:
ConnectionSelectionStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionSelectionStrategycreate(TarantoolClientConfig config, Collection<TarantoolConnection> connections)Take the specified collection of Tarantool server connections and instantiate a strategy
-
-
-
Method Detail
-
create
ConnectionSelectionStrategy create(TarantoolClientConfig config, Collection<TarantoolConnection> connections)
Take the specified collection of Tarantool server connections and instantiate a strategy- Parameters:
config- client configurationconnections- established connections- Returns:
- a connection selection strategy instance
-
-