public enum EjectionMethod extends Enum<EjectionMethod>
Enum Constant and Description |
---|
FULL
Full ejection - for couchbase buckets only.
|
NONE
No ejection at all - for ephemeral buckets only.
|
NRU
Not recently used ejection - for ephemeral buckets only.
|
VALUE
Value ejection - for couchbase buckets only.
|
Modifier and Type | Method and Description |
---|---|
static EjectionMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EjectionMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EjectionMethod VALUE
During ejection, only the value will be ejected (key and metadata will remain in memory).
public static final EjectionMethod FULL
During ejection, everything (including key, metadata, and value) will be ejected.
public static final EjectionMethod NONE
Specifying "NO ejection" means that the bucket will not evict items from the cache if the cache is full: this type of eviction policy should be used for in-memory database use-cases.
public static final EjectionMethod NRU
Specifying "NRU ejection" means that items not recently used will be evicted from memory, when all memory in the bucket is used: this type of eviction policy should be used for caching use-cases.
public static EjectionMethod[] values()
for (EjectionMethod c : EjectionMethod.values()) System.out.println(c);
public static EjectionMethod 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 nullCopyright © 2015 Couchbase, Inc.