Package growthbook.sdk.java.sandbox
Enum Class CacheMode
- All Implemented Interfaces:
Serializable
,Comparable<CacheMode>
,Constable
Cache behavior modes for the SDK.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSelect the best available mode automatically: FILE if a writable directory is available, otherwise MEMORY.Use a custom GbCacheManager supplied by the integrator.Persist cache to filesystem directory.In-process memory cache only (no filesystem persistence).No cache persistence at all. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AUTO
Select the best available mode automatically: FILE if a writable directory is available, otherwise MEMORY. -
NONE
No cache persistence at all. Repository still keeps runtime state in memory. -
MEMORY
In-process memory cache only (no filesystem persistence). -
FILE
Persist cache to filesystem directory. -
CUSTOM
Use a custom GbCacheManager supplied by the integrator.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-