Enum EjectionMethod
- All Implemented Interfaces:
Serializable
,Comparable<EjectionMethod>
,java.lang.constant.Constable
public enum EjectionMethod extends Enum<EjectionMethod>
The ejection method used on the bucket.
Value Ejection needs more system memory, but provides the
best performance. Full Ejection reduces the memory overhead
requirement.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
VALUE
Value ejection - for couchbase buckets only.During ejection, only the value will be ejected (key and metadata will remain in memory).
-
FULL
Full ejection - for couchbase buckets only.During ejection, everything (including key, metadata, and value) will be ejected.
-
NONE
No ejection at all - for ephemeral buckets only.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.
-
NRU
Not recently used ejection - for ephemeral buckets only.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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-