public enum CouchbaseFeature extends Enum<CouchbaseFeature>
Enumeration of all Couchbase Features supported by this SDK.
Enum Constant and Description |
---|
CCCP |
DCP |
KV |
N1QL |
SPATIAL_VIEW |
SSL |
VIEW |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailableOn(Version serverVersion)
Checks if this feature is available on the provided server version.
|
static CouchbaseFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CouchbaseFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CouchbaseFeature KV
public static final CouchbaseFeature VIEW
public static final CouchbaseFeature CCCP
public static final CouchbaseFeature SSL
public static final CouchbaseFeature DCP
public static final CouchbaseFeature N1QL
public static final CouchbaseFeature SPATIAL_VIEW
public static CouchbaseFeature[] values()
for (CouchbaseFeature c : CouchbaseFeature.values()) System.out.println(c);
public static CouchbaseFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAvailableOn(Version serverVersion)
Checks if this feature is available on the provided server version.
serverVersion
- the server side version to check againstCopyright © 2014 Couchbase, Inc.