protected static class ShardStrategy.Ring
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected io.datatree.dom.Cache<java.lang.String,Endpoint> |
cache
Accelerator cache
|
protected java.util.HashMap<Endpoint,long[]> |
limitMap
The "hash ring" (https://www.toptal.com/big-data/consistent-hashing)
|
protected int |
ringSize
Actual/minimum ring size (or -1, if not set)
|
| Modifier | Constructor and Description |
|---|---|
protected |
Ring(int nodes,
int vnodes,
java.lang.Integer ringSize,
int cacheSize) |
protected java.util.HashMap<Endpoint,long[]> limitMap
protected final int ringSize
protected final io.datatree.dom.Cache<java.lang.String,Endpoint> cache