public interface LoadBalancingStrategy extends Host.Listener
Cluster.| Modifier and Type | Interface and Description | 
|---|---|
| static class  | LoadBalancingStrategy.RoundRobinA simple round-robin strategy that simply selects the next host in the  Clusterto send theRequestMessageto. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | initialize(Cluster cluster,
          Collection<Host> hosts)Initialize the strategy with the  Clusterinstance and the expected host list. | 
| Iterator<Host> | select(org.apache.tinkerpop.gremlin.driver.message.RequestMessage msg)Provide an ordered list of hosts to send the given  RequestMessageto. | 
onAvailable, onNew, onRemove, onUnavailablevoid initialize(Cluster cluster, Collection<Host> hosts)
Cluster instance and the expected host list.Copyright © 2013–2021 Apache Software Foundation. All rights reserved.