|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeLocator
Interface for locating a node by hash value.
| Method Summary | |
|---|---|
java.util.Collection<MemcachedNode> |
getAll()
Get all memcached nodes. |
MemcachedNode |
getPrimary(java.lang.String k)
Get the primary location for the given key. |
NodeLocator |
getReadonlyCopy()
Create a read-only copy of this NodeLocator. |
java.util.Iterator<MemcachedNode> |
getSequence(java.lang.String k)
Get an iterator over the sequence of nodes that make up the backup locations for a given key. |
void |
updateLocator(java.util.List<MemcachedNode> nodes)
Update locator status. |
| Method Detail |
|---|
MemcachedNode getPrimary(java.lang.String k)
k - the object key
java.util.Iterator<MemcachedNode> getSequence(java.lang.String k)
k - the object key
java.util.Collection<MemcachedNode> getAll()
NodeLocator getReadonlyCopy()
void updateLocator(java.util.List<MemcachedNode> nodes)
nodes - New locator nodes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||