Interface LoadBalancingStrategy
- 
- All Superinterfaces:
- Host.Listener
 - All Known Implementing Classes:
- LoadBalancingStrategy.RoundRobin
 
 public interface LoadBalancingStrategy extends Host.Listener Provides a method for selecting the host from aCluster.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classLoadBalancingStrategy.RoundRobinA simple round-robin strategy that simply selects the next host in theClusterto send theRequestMessageto.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(Cluster cluster, Collection<Host> hosts)Initialize the strategy with theClusterinstance and the expected host list.Iterator<Host>select(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg)Provide an ordered list of hosts to send the givenRequestMessageto.- 
Methods inherited from interface org.apache.tinkerpop.gremlin.driver.Host.ListeneronAvailable, onNew, onRemove, onUnavailable
 
- 
 
- 
- 
- 
Method Detail- 
initializevoid initialize(Cluster cluster, Collection<Host> hosts) Initialize the strategy with theClusterinstance and the expected host list.
 
- 
 
-