EvictionPolicyType
instead.@Stability.Volatile @Deprecated public enum EjectionPolicy extends Enum<EjectionPolicy>
Enum Constant and 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).
|
Modifier and Type | Method and 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.
|
public static final EjectionPolicy VALUE_ONLY
Value Ejection needs more system memory, but provides better performance than Full Ejection.
This value is only valid for buckets of type BucketType.COUCHBASE
.
public static final EjectionPolicy FULL
Full Ejection reduces the memory overhead requirement, at the cost of performance.
This value is only valid for buckets of type BucketType.COUCHBASE
.
public static final EjectionPolicy NO_EVICTION
This value is only valid for buckets of type BucketType.EPHEMERAL
.
public static final EjectionPolicy NOT_RECENTLY_USED
This value is only valid for buckets of type BucketType.EPHEMERAL
.
public static EjectionPolicy[] values()
for (EjectionPolicy c : EjectionPolicy.values()) System.out.println(c);
public static EjectionPolicy 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 String alias()
Copyright © 2020 Couchbase, Inc.. All rights reserved.