Enum BucketType
- java.lang.Object
-
- java.lang.Enum<BucketType>
-
- com.couchbase.client.java.manager.bucket.BucketType
-
- All Implemented Interfaces:
Serializable
,Comparable<BucketType>
@Volatile public enum BucketType extends Enum<BucketType>
Specifies the main type of the bucket.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alias()
static BucketType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BucketType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUCHBASE
public static final BucketType COUCHBASE
Couchbase Bucket Type.Stores data persistently, as well as in memory. It allows data to be automatically replicated for high availability, using the Database Change Protocol (DCP); and dynamically scaled across multiple clusters, by means of Cross Datacenter Replication (XDCR).
-
MEMCACHED
public static final BucketType MEMCACHED
Memcached Bucket Type.These are now deprecated. Memcached buckets are designed to be used alongside other database platforms, such as ones employing relational database technology. By caching frequently-used data, Memcached buckets reduce the number of queries a database-server must perform. Each Memcached bucket provides a directly addressable, distributed, in-memory key-value cache.
-
EPHEMERAL
public static final BucketType EPHEMERAL
Ephemeral Bucket Type.Ephemeral buckets are an alternative to Couchbase buckets, to be used whenever persistence is not required: for example, when repeated disk-access involves too much overhead. This allows highly consistent in-memory performance, without disk-based fluctuations. It also allows faster node rebalances and restarts.
-
-
Method Detail
-
values
public static BucketType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BucketType c : BucketType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BucketType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-