public static enum PersistenceManager.AccessMode extends Enum<PersistenceManager.AccessMode>
Enum Constant and Description |
---|
BOTH
The operation is performed in all
CacheWriter or CacheLoader |
PRIVATE
The operation is performed only in non-shared
CacheWriter or CacheLoader |
SHARED
The operation is performed only in shared configured
CacheWriter or
CacheLoader |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canPerform(StoreConfiguration configuration)
Checks if the operation can be performed in the
CacheWriter or CacheLoader 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.
|
public static final PersistenceManager.AccessMode BOTH
CacheWriter
or CacheLoader
public static final PersistenceManager.AccessMode SHARED
CacheWriter
or
CacheLoader
public static final PersistenceManager.AccessMode PRIVATE
CacheWriter
or CacheLoader
public static PersistenceManager.AccessMode[] values()
for (PersistenceManager.AccessMode c : PersistenceManager.AccessMode.values()) System.out.println(c);
public static PersistenceManager.AccessMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract boolean canPerform(StoreConfiguration configuration)
CacheWriter
or CacheLoader
configured with the configuration provided.configuration
- the configuration to test.true
if the operation can be performed, false
otherwise.Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.