Enum EjectionPolicy
- java.lang.Object
-
- java.lang.Enum<EjectionPolicy>
-
- com.couchbase.client.java.manager.bucket.EjectionPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<EjectionPolicy>
@Volatile @Deprecated public enum EjectionPolicy extends Enum<EjectionPolicy>
Deprecated.Please useEvictionPolicyType
instead.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL
Deprecated.During ejection, everything (including key, metadata, and value) will be ejected.NO_EVICTION
Deprecated.Couchbase Server keeps all data until explicitly deleted, but will reject any new data if you reach the quota (dedicated memory) you set for your bucket.NOT_RECENTLY_USED
Deprecated.When the memory quota is reached, Couchbase Server ejects data that has not been used recently.VALUE_ONLY
Deprecated.During ejection, only the value will be ejected (key and metadata will remain in memory).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
alias()
Deprecated.static EjectionPolicy
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static EjectionPolicy[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE_ONLY
public static final EjectionPolicy VALUE_ONLY
Deprecated.During ejection, only the value will be ejected (key and metadata will remain in memory).Value Ejection needs more system memory, but provides better performance than Full Ejection.
This value is only valid for buckets of type
BucketType.COUCHBASE
.
-
FULL
public static final EjectionPolicy FULL
Deprecated.During ejection, everything (including key, metadata, and value) will be ejected.Full Ejection reduces the memory overhead requirement, at the cost of performance.
This value is only valid for buckets of type
BucketType.COUCHBASE
.
-
NO_EVICTION
public static final EjectionPolicy NO_EVICTION
Deprecated.Couchbase Server keeps all data until explicitly deleted, but will reject any new data if you reach the quota (dedicated memory) you set for your bucket.This value is only valid for buckets of type
BucketType.EPHEMERAL
.
-
NOT_RECENTLY_USED
public static final EjectionPolicy NOT_RECENTLY_USED
Deprecated.When the memory quota is reached, Couchbase Server ejects data that has not been used recently.This value is only valid for buckets of type
BucketType.EPHEMERAL
.
-
-
Method Detail
-
values
public static EjectionPolicy[] values()
Deprecated.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 (EjectionPolicy c : EjectionPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EjectionPolicy valueOf(String name)
Deprecated.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
-
alias
public String alias()
Deprecated.
-
-