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 |
---|---|
boolean |
hasFastForwardMap()
If this config instance contains a fast forward map.
|
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, uri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
locator, name, nodes, password, password, serviceEnabled, streamingUri, uri
public 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()
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
public InetAddress nodeForId(byte[] id)
MemcachedBucketConfig
Returns the target node address for the given document id.
nodeForId
in interface MemcachedBucketConfig
id
- the id for the document.public boolean hasFastForwardMap()
BucketConfig
If this config instance contains a fast forward map.
hasFastForwardMap
in interface BucketConfig
Copyright © 2016 Couchbase, Inc.. All rights reserved.