@NotThreadSafe public class RoundRobinServerSelector extends Object
Once a selector is initialized with a DruidCluster, an iterator
returned by getServersInTierToLoadSegment(String, DataSegment)
iterates over the historicals in a tier in a round robin fashion. The next
invocation of this method picks up where the last iterator had left off.
This class is not thread-safe and must be used from a single thread.
| Constructor and Description |
|---|
RoundRobinServerSelector(DruidCluster cluster) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<ServerHolder> |
getServersInTierToLoadSegment(String tier,
DataSegment segment)
Returns an iterator over the servers in this tier which are eligible to
load the given segment.
|
public RoundRobinServerSelector(DruidCluster cluster)
public Iterator<ServerHolder> getServersInTierToLoadSegment(String tier, DataSegment segment)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.