Package com.scaleout.client.caching
Enum Class BackingStoreMode
- All Implemented Interfaces:
Serializable
,Comparable<BackingStoreMode>
,Constable
The
BackingStoreMode
indicates the type of asynchronous backing-store behavior that the server should invoke for an object.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe server should not perform asynchronous backing store operations for this object.The server should periodically notify client code that the object needs to be refreshed in the cache.The server should periodically notify client code that the cached object needs to be written to a persistent backing store. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackingStoreMode
fromString
(String value) Retrieve a backing store mode from a string value.static BackingStoreMode
Returns the enum constant of this class with the specified name.static BackingStoreMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
The server should not perform asynchronous backing store operations for this object. -
RefreshAhead
The server should periodically notify client code that the object needs to be refreshed in the cache. -
WriteBehind
The server should periodically notify client code that the cached object needs to be written to a persistent backing store.
-
-
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
-
fromString
Retrieve a backing store mode from a string value. Accepted values:Constants.OBJECT_BACKING_STORE_MODE_NONE
Constants.OBJECT_BACKING_STORE_MODE_REFRESHAHEAD
Constants.OBJECT_BACKING_STORE_MODE_WRITEBEHIND
- Parameters:
value
-Constants.OBJECT_BACKING_STORE_MODE_NONE
,Constants.OBJECT_BACKING_STORE_MODE_REFRESHAHEAD
, orConstants.OBJECT_BACKING_STORE_MODE_WRITEBEHIND
- Returns:
- a backing store mode.
-