public enum EvictionPolicyType extends Enum<EvictionPolicyType>
Enum Constant and Description |
---|
FULL
During ejection, everything (including key, metadata, and value) will be ejected.
|
NO_EVICTION
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
When the memory quota is reached, Couchbase Server ejects data that has
not been used recently.
|
VALUE_ONLY
During ejection, only the value will be ejected (key and metadata will remain in memory).
|
Modifier and Type | Method and Description |
---|---|
String |
alias() |
static EvictionPolicyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvictionPolicyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvictionPolicyType 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 EvictionPolicyType 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 EvictionPolicyType NOT_RECENTLY_USED
This value is only valid for buckets of type BucketType.EPHEMERAL
.
public static final EvictionPolicyType NO_EVICTION
This value is only valid for buckets of type BucketType.EPHEMERAL
.
public static EvictionPolicyType[] values()
for (EvictionPolicyType c : EvictionPolicyType.values()) System.out.println(c);
public static EvictionPolicyType 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 null@Stability.Internal public String alias()
Copyright © 2024 Couchbase, Inc.. All rights reserved.