public interface NodeLocator
Modifier and Type | Method and Description |
---|---|
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.
|
MemcachedNode getPrimary(java.lang.String k)
k
- the object keyjava.util.Iterator<MemcachedNode> getSequence(java.lang.String k)
k
- the object keyjava.util.Collection<MemcachedNode> getAll()
NodeLocator getReadonlyCopy()
void updateLocator(java.util.List<MemcachedNode> nodes)
nodes
- New locator nodes.Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.