Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
NonCircularExclusiveAccessLoadBalancer.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.invoker;
2 
3 import com.griddynamics.jagger.util.Pair;
4 
19 public class NonCircularExclusiveAccessLoadBalancer<Q, E> extends ExclusiveAccessLoadBalancer<Q, E> {
20 
21  public NonCircularExclusiveAccessLoadBalancer(PairSupplierFactory<Q, E> pairSupplierFactory) {
22  super(pairSupplierFactory);
23  }
24 
25  @Override
26  protected boolean isToCircleAnIteration() {
27  return false;
28  }
29 
30  @Override
31  protected Pair<Q, E> pollNext() {
32  return getPairQueue().poll();
33  }
34 }