Package com.veertu
Class RoundRobin
- java.lang.Object
-
- com.veertu.RoundRobin
-
public class RoundRobin extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
startWeight
-
Constructor Summary
Constructors Constructor Description RoundRobin(List<String> stringValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calculate()
void
fail(WeighedURL ep)
String
next()
void
update(String host, int latency, boolean failed)
-
-
-
Field Detail
-
startWeight
public static final int startWeight
- See Also:
- Constant Field Values
-
-
Method Detail
-
calculate
public void calculate()
-
next
public String next()
-
fail
public void fail(WeighedURL ep)
-
update
public void update(String host, int latency, boolean failed)
-
-