Enum CacheMode
- All Implemented Interfaces:
Serializable
,Comparable<CacheMode>
Cache replication mode.
-
Enum Constant Summary
Enum ConstantDescriptionAsync DISTSynchronous DISTData invalidated asynchronously.Data invalidated synchronously.Data is not replicated.Data replicated asynchronously.Data replicated synchronously.Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0, will be removed in 16.0. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
Returns true if the mode is invalidation, either sync or async.boolean
boolean
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0, will be removed in 16.0.boolean
boolean
static CacheMode
toAsync()
toElement
(boolean template) toSync()
toSync
(boolean sync) static CacheMode
valueOf
(int order) Returns the enum constant of this type with the specified name.static CacheMode
Returns the enum constant of this type with the specified name.static CacheMode[]
values()
Returns an array containing the constants of this enum type, 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 -
SCATTERED_SYNC
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0, will be removed in 16.0. Please useDIST_SYNC
instead.Synchronous scattered cache
-
-
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
-
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:
order
- 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
-
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() -
isScattered
Deprecated, for removal: This API element is subject to removal in a future version.Since 14.0, will be removed in 16.0. -
needsStateTransfer
public boolean needsStateTransfer() -
toSync
-
toSync
-
toAsync
-
friendlyCacheModeString
-
toCacheType
-
toElement
-
cacheType
-