public interface NodeLocator
Modifier and Type | Method and Description |
---|---|
Collection<MemcachedNode> |
getAll()
Get all memcached nodes.
|
MemcachedNode |
getPrimary(String k)
Get the primary location for the given key.
|
NodeLocator |
getReadonlyCopy()
Create a read-only copy of this NodeLocator.
|
Iterator<MemcachedNode> |
getSequence(String k)
Get an iterator over the sequence of nodes that make up the backup
locations for a given key.
|
void |
updateLocator(List<MemcachedNode> nodes)
Update locator status.
|
MemcachedNode getPrimary(String k)
k
- the object keyIterator<MemcachedNode> getSequence(String k)
k
- the object keyCollection<MemcachedNode> getAll()
NodeLocator getReadonlyCopy()
void updateLocator(List<MemcachedNode> nodes)
nodes
- New locator nodes.Copyright © 2017. All rights reserved.