Class RoundRobinBootstrapSelectionStrategy

java.lang.Object
io.kroxylicious.proxy.bootstrap.RoundRobinBootstrapSelectionStrategy
All Implemented Interfaces:
BootstrapSelectionStrategy, Function<List<HostPort>,HostPort>

@NotThreadSafe public class RoundRobinBootstrapSelectionStrategy extends Object implements BootstrapSelectionStrategy
BootstrapSelectionStrategy that selects a server from the given list of servers as the bootstrap server in a round-robin fashion.
Each instance has a counter which starts from 0 and rounds over, which means each server selection for each VirtualCluster will start from 0.