Enum CacheMode
- java.lang.Object
- 
- java.lang.Enum<CacheMode>
- 
- org.infinispan.configuration.cache.CacheMode
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<CacheMode>
 
 public enum CacheMode extends Enum<CacheMode> Cache replication mode.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description DIST_ASYNCAsync DISTDIST_SYNCSynchronous DISTINVALIDATION_ASYNCData invalidated asynchronously.INVALIDATION_SYNCData invalidated synchronously.LOCALData is not replicated.REPL_ASYNCData replicated asynchronously.REPL_SYNCData replicated synchronously.SCATTERED_SYNCSynchronous scattered cache
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfriendlyCacheModeString()static CacheModefromParts(String distribution, String synchronicity)booleanisClustered()booleanisDistributed()booleanisInvalidation()Returns true if the mode is invalidation, either sync or async.booleanisReplicated()booleanisScattered()booleanisSynchronous()booleanneedsStateTransfer()CacheModetoAsync()StringtoCacheType()org.infinispan.configuration.parsing.ElementtoElement(boolean template)CacheModetoSync()CacheModetoSync(boolean sync)static CacheModevalueOf(int order)Returns the enum constant of this type with the specified name.static CacheModevalueOf(String name)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 Detail- 
LOCAL@ProtoEnumValue(number=0) public static final CacheMode LOCAL Data is not replicated.
 - 
REPL_SYNC@ProtoEnumValue(number=1) public static final CacheMode REPL_SYNC Data replicated synchronously.
 - 
REPL_ASYNC@ProtoEnumValue(number=2) public static final CacheMode REPL_ASYNC Data replicated asynchronously.
 - 
INVALIDATION_SYNC@ProtoEnumValue(number=3) public static final CacheMode INVALIDATION_SYNC Data invalidated synchronously.
 - 
INVALIDATION_ASYNC@ProtoEnumValue(number=4) public static final CacheMode INVALIDATION_ASYNC Data invalidated asynchronously.
 - 
DIST_SYNC@ProtoEnumValue(number=5) public static final CacheMode DIST_SYNC Synchronous DIST
 - 
DIST_ASYNC@ProtoEnumValue(number=6) public static final CacheMode DIST_ASYNC Async DIST
 - 
SCATTERED_SYNC@ProtoEnumValue(number=7) public static final CacheMode SCATTERED_SYNC Synchronous scattered cache
 
- 
 - 
Method Detail- 
valuespublic static CacheMode[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CacheMode c : CacheMode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static CacheMode valueOf(String name) 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 name
- NullPointerException- if the argument is null
 
 - 
valueOfpublic static CacheMode valueOf(int order) 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 name
- NullPointerException- if the argument is null
 
 - 
isInvalidationpublic boolean isInvalidation() Returns true if the mode is invalidation, either sync or async.
 - 
isSynchronouspublic boolean isSynchronous() 
 - 
isClusteredpublic boolean isClustered() 
 - 
isDistributedpublic boolean isDistributed() 
 - 
isReplicatedpublic boolean isReplicated() 
 - 
isScatteredpublic boolean isScattered() 
 - 
needsStateTransferpublic boolean needsStateTransfer() 
 - 
toSyncpublic CacheMode toSync() 
 - 
toSyncpublic CacheMode toSync(boolean sync) 
 - 
toAsyncpublic CacheMode toAsync() 
 - 
friendlyCacheModeStringpublic String friendlyCacheModeString() 
 - 
toCacheTypepublic String toCacheType() 
 - 
toElementpublic org.infinispan.configuration.parsing.Element toElement(boolean template) 
 
- 
 
-