Enum Class CacheMode
- All Implemented Interfaces:
Serializable
,Comparable<CacheMode>
,Constable
Cache replication mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAsync DISTSynchronous DISTData invalidated asynchronously.Data invalidated synchronously.Data is not replicated.Data replicated asynchronously.Data replicated synchronously. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
Returns true if the mode is invalidation, either sync or async.boolean
boolean
boolean
static CacheMode
toAsync()
toElement
(boolean template) toSync()
toSync
(boolean sync) static CacheMode
valueOf
(int order) Returns the enum constant of this class with the specified name.static CacheMode
Returns the enum constant of this class with the specified name.static CacheMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL
Data is not replicated. -
REPL_SYNC
Data replicated synchronously. -
REPL_ASYNC
Data replicated asynchronously. -
INVALIDATION_SYNC
Data invalidated synchronously. -
INVALIDATION_ASYNC
Data invalidated asynchronously. -
DIST_SYNC
Synchronous DIST -
DIST_ASYNC
Async DIST
-
-
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
-
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:
order
- 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
-
of
-
isInvalidation
public boolean isInvalidation()Returns true if the mode is invalidation, either sync or async. -
isSynchronous
public boolean isSynchronous() -
isClustered
public boolean isClustered() -
isDistributed
public boolean isDistributed() -
isReplicated
public boolean isReplicated() -
needsStateTransfer
public boolean needsStateTransfer() -
toSync
-
toSync
-
toAsync
-
friendlyCacheModeString
-
toCacheType
-
toElement
-
cacheType
-