Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
com.griddynamics.jagger.invoker.LoadBalancer< Q, E > Interface Reference

An object which provides pairs of queries and endpoints for Invoker. More...

Inheritance diagram for com.griddynamics.jagger.invoker.LoadBalancer< Q, E >:

Public Member Functions

int endpointSize ()
 Returns number of endpoints. More...
 
Iterator< Pair< Q, E > > provide ()
 Returns an iterator over pairs. More...
 
int querySize ()
 Returns number of queries. More...
 

Detailed Description

An object which provides pairs of queries and endpoints for Invoker.

Author
Grid Dynamics
Details:

LoadBalancer (distributor) can use query and endpoint providers to load data and create pairs by some algorithm.
(if you choose QueryPoolLoadBalancer<Q,E> as an abstract implementation).
You can use no providers and load all necessary data in your implementation of LoadBalancer.

To view all distributors implementations click here Load balancers (Distributors)

Parameters
<Q>- Query type
<E>- Endpoint type

Definition at line 42 of file LoadBalancer.java.


The documentation for this interface was generated from the following file: