public class DefaultMemcachedBucketConfig extends AbstractBucketConfig implements MemcachedBucketConfig
Constructor and Description |
---|
DefaultMemcachedBucketConfig(long rev,
String name,
String locator,
String uri,
String streamingUri,
List<NodeInfo> nodeInfos,
List<PortInfo> portInfos)
Creates a new
MemcachedBucketConfig . |
Modifier and Type | Method and Description |
---|---|
SortedMap<Long,NodeInfo> |
ketamaNodes() |
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, streamingUri, uri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
locator, name, nodes, password, password, streamingUri, uri
public DefaultMemcachedBucketConfig(long rev, String name, String locator, 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.locator
- the locator for this 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()
BucketConfig
If a config is marked as tainted.
tainted
in interface BucketConfig
public long rev()
BucketConfig
Revision number (optional) for that configuration.
rev
in interface BucketConfig
public BucketType type()
BucketConfig
The bucket type.
type
in interface BucketConfig
public SortedMap<Long,NodeInfo> ketamaNodes()
ketamaNodes
in interface MemcachedBucketConfig
Copyright © 2014 Couchbase, Inc.