Enum PersistenceManager.AccessMode
- java.lang.Object
-
- java.lang.Enum<PersistenceManager.AccessMode>
-
- org.infinispan.persistence.manager.PersistenceManager.AccessMode
-
- All Implemented Interfaces:
Serializable
,Comparable<PersistenceManager.AccessMode>
,Predicate<StoreConfiguration>
- Enclosing interface:
- PersistenceManager
public static enum PersistenceManager.AccessMode extends Enum<PersistenceManager.AccessMode> implements Predicate<StoreConfiguration>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASYNC
The operation is performed only in aCacheWriter
orCacheLoader
that has async write behind.BOTH
The operation is performed in allCacheWriter
orCacheLoader
NOT_ASYNC
The operation is performed only in aCacheWriter
orCacheLoader
that doesn't have async write behind.PRIVATE
The operation is performed only in non-sharedCacheWriter
orCacheLoader
SHARED
The operation is performed only in shared configuredCacheWriter
orCacheLoader
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PersistenceManager.AccessMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PersistenceManager.AccessMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOTH
public static final PersistenceManager.AccessMode BOTH
The operation is performed in allCacheWriter
orCacheLoader
-
SHARED
public static final PersistenceManager.AccessMode SHARED
The operation is performed only in shared configuredCacheWriter
orCacheLoader
-
PRIVATE
public static final PersistenceManager.AccessMode PRIVATE
The operation is performed only in non-sharedCacheWriter
orCacheLoader
-
ASYNC
public static final PersistenceManager.AccessMode ASYNC
The operation is performed only in aCacheWriter
orCacheLoader
that has async write behind.
-
NOT_ASYNC
public static final PersistenceManager.AccessMode NOT_ASYNC
The operation is performed only in aCacheWriter
orCacheLoader
that doesn't have async write behind.
-
-
Method Detail
-
values
public static PersistenceManager.AccessMode[] 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 (PersistenceManager.AccessMode c : PersistenceManager.AccessMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersistenceManager.AccessMode 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 nameNullPointerException
- if the argument is null
-
-