public class LoadBalancer extends Object
Constructor and Description |
---|
LoadBalancer(SearchCluster searchCluster) |
Modifier and Type | Method and Description |
---|---|
void |
releaseGroup(SearchCluster.Group group)
Release an allocation given by
takeGroupForQuery(Query) . |
Optional<SearchCluster.Group> |
takeGroupForQuery(Query query)
Select and allocate the search cluster group which is to be used for the provided query.
|
public LoadBalancer(SearchCluster searchCluster)
public Optional<SearchCluster.Group> takeGroupForQuery(Query query)
#releaseGroup(Group)
symmetrically for each taken allocation.query
- public void releaseGroup(SearchCluster.Group group)
takeGroupForQuery(Query)
. The release must be done exactly once for each allocation.group
- previously allocated groupCopyright © 2018. All rights reserved.