public static enum TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory extends Enum<TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory> implements ConnectionSelectionStrategyFactory
ParallelRoundRobinStrategy
, which is applicable for multiple
connections to several servers and expects equal number of connections per server. The connections are split into
parts with equal amounts and selected in the order according to the passed collection, with switching between
parts in the same orderEnum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
ConnectionSelectionStrategy |
create(TarantoolClientConfig config,
Collection<TarantoolConnection> connections)
Take the specified collection of Tarantool server connections and instantiate a strategy
|
static TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory INSTANCE
public static TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory[] values()
for (TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory c : TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory.values()) System.out.println(c);
public static TarantoolConnectionSelectionStrategies.ParallelRoundRobinStrategyFactory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ConnectionSelectionStrategy create(TarantoolClientConfig config, Collection<TarantoolConnection> connections)
ConnectionSelectionStrategyFactory
create
in interface ConnectionSelectionStrategyFactory
config
- client configurationconnections
- established connectionsCopyright © 2025 Picodata. All rights reserved.