public enum CacheConcurrencyStrategy extends Enum<CacheConcurrencyStrategy>
| Enum Constant and Description | 
|---|
NONE
Indicates no concurrency strategy should be applied. 
 | 
NONSTRICT_READ_WRITE
Indicates that the non-strict read-write strategy should be applied. 
 | 
READ_ONLY
Indicates that read-only strategy should be applied. 
 | 
READ_WRITE
Indicates that the read-write strategy should be applied. 
 | 
TRANSACTIONAL
Indicates that the transaction strategy should be applied. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static CacheConcurrencyStrategy | 
fromAccessType(AccessType accessType)
Conversion from  
AccessType to CacheConcurrencyStrategy. | 
static CacheConcurrencyStrategy | 
parse(String name)
Parse an external representation of a CacheConcurrencyStrategy value. 
 | 
AccessType | 
toAccessType()
Get the AccessType corresponding to this concurrency strategy. 
 | 
static CacheConcurrencyStrategy | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static CacheConcurrencyStrategy[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final CacheConcurrencyStrategy NONE
public static final CacheConcurrencyStrategy READ_ONLY
AccessType#READ_ONLYpublic static final CacheConcurrencyStrategy NONSTRICT_READ_WRITE
AccessType#NONSTRICT_READ_WRITEpublic static final CacheConcurrencyStrategy READ_WRITE
AccessType#READ_WRITEpublic static final CacheConcurrencyStrategy TRANSACTIONAL
AccessType#TRANSACTIONALpublic static CacheConcurrencyStrategy[] values()
for (CacheConcurrencyStrategy c : CacheConcurrencyStrategy.values()) System.out.println(c);
public static CacheConcurrencyStrategy 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 nullpublic AccessType toAccessType()
null for
 NONEpublic static CacheConcurrencyStrategy fromAccessType(AccessType accessType)
AccessType to CacheConcurrencyStrategy.accessType - The access type to convertNONE is returned by default if unable to
 recognize accessType or if accessType is null.public static CacheConcurrencyStrategy parse(String name)
name - The external representationnull if not match was found.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.