Enum PersistenceManager.AccessMode
- java.lang.Object
-
- java.lang.Enum<PersistenceManager.AccessMode>
-
- org.infinispan.persistence.manager.PersistenceManager.AccessMode
-
- All Implemented Interfaces:
Serializable
,Comparable<PersistenceManager.AccessMode>
- Enclosing interface:
- PersistenceManager
public static enum PersistenceManager.AccessMode extends Enum<PersistenceManager.AccessMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH
The operation is performed in allCacheWriter
orCacheLoader
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 Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
canPerform(StoreConfiguration configuration)
Checks if the operation can be performed in theCacheWriter
orCacheLoader
configured with the configuration provided.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
-
-
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
-
canPerform
protected abstract boolean canPerform(StoreConfiguration configuration)
Checks if the operation can be performed in theCacheWriter
orCacheLoader
configured with the configuration provided.- Parameters:
configuration
- the configuration to test.- Returns:
true
if the operation can be performed,false
otherwise.
-
-