Jagger
 All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | List of all members
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 >:
Inheritance graph
[legend]

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 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 Implementations of distributors

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

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