public class StickyThreadAlgorithm extends java.lang.Object implements LoadBalancingAlgorithm
| Modifier and Type | Field and Description |
|---|---|
protected int |
callCount |
protected java.lang.ThreadLocal<java.net.URI> |
threadEndpoint |
| Constructor and Description |
|---|
StickyThreadAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getNextEndpoint(java.net.URI[] endpoints) |
protected java.lang.ThreadLocal<java.net.URI> threadEndpoint
protected int callCount
public java.net.URI getNextEndpoint(java.net.URI[] endpoints)
getNextEndpoint in interface LoadBalancingAlgorithm