public class DefaultMemcachedBucketConfig extends AbstractBucketConfig implements MemcachedBucketConfig
| Constructor and Description |
|---|
DefaultMemcachedBucketConfig(long rev,
String name,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos)
Creates a new
MemcachedBucketConfig. |
| Modifier and Type | Method and Description |
|---|---|
SortedMap<Long,NodeInfo> |
ketamaNodes() |
InetAddress |
nodeForId(byte[] id)
Returns the target node address for the given document id.
|
long |
rev()
Revision number (optional) for that configuration.
|
boolean |
tainted()
If a config is marked as tainted.
|
String |
toString() |
BucketType |
type()
The bucket type.
|
locator, name, nodes, password, password, serviceEnabled, streamingUri, uriclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlocator, name, nodes, password, password, serviceEnabled, streamingUri, uripublic DefaultMemcachedBucketConfig(long rev,
String name,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos)
Creates a new MemcachedBucketConfig.
rev - the revision of the config.name - the name of the bucket.uri - the URI for this bucket.streamingUri - the streaming URI for this bucket.nodeInfos - related node information.portInfos - port info for the nodes, including services.public boolean tainted()
BucketConfigIf a config is marked as tainted.
tainted in interface BucketConfigpublic long rev()
BucketConfigRevision number (optional) for that configuration.
rev in interface BucketConfigpublic BucketType type()
BucketConfigThe bucket type.
type in interface BucketConfigpublic SortedMap<Long,NodeInfo> ketamaNodes()
ketamaNodes in interface MemcachedBucketConfigpublic InetAddress nodeForId(byte[] id)
MemcachedBucketConfigReturns the target node address for the given document id.
nodeForId in interface MemcachedBucketConfigid - the id for the document.Copyright © 2016 Couchbase, Inc.. All rights reserved.