public enum ClientRegionShortcut extends Enum<ClientRegionShortcut>
RegionAttributes
in a ClientCache
. These enum
values can be used to create regions using a ClientRegionFactory
obtained by calling
ClientCache.createClientRegionFactory(ClientRegionShortcut)
.
Another way to use predefined region attributes is in cache.xml by setting the refid attribute on a region element or region-attributes element to the string of each value.
Enum Constant and Description |
---|
CACHING_PROXY
A CACHING_PROXY region has local state but can also send operations to a server.
|
CACHING_PROXY_HEAP_LRU
A CACHING_PROXY_HEAP_LRU region has local state but can also send operations to a server.
|
CACHING_PROXY_OVERFLOW
A CACHING_PROXY_OVERFLOW region has local state but can also send operations to a server.
|
LOCAL
A LOCAL region only has local state and never sends operations to a server.
|
LOCAL_HEAP_LRU
A LOCAL_HEAP_LRU region only has local state and never sends operations to a server.
|
LOCAL_OVERFLOW
A LOCAL_OVERFLOW region only has local state and never sends operations to a server.
|
LOCAL_PERSISTENT
A LOCAL_PERSISTENT region only has local state and never sends operations to a server but it
does write its state to disk and can recover that state when the region is created.
|
LOCAL_PERSISTENT_OVERFLOW
A LOCAL_PERSISTENT_OVERFLOW region only has local state and never sends operations to a server
but it does write its state to disk and can recover that state when the region is created.
|
PROXY
A PROXY region has no local state and forwards all operations to a server.
|
Modifier and Type | Method and Description |
---|---|
static ClientRegionShortcut |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientRegionShortcut[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientRegionShortcut PROXY
DataPolicy
to DataPolicy.EMPTY
.public static final ClientRegionShortcut CACHING_PROXY
DataPolicy
to DataPolicy.NORMAL
.public static final ClientRegionShortcut CACHING_PROXY_HEAP_LRU
DataPolicy
to DataPolicy.NORMAL
. and EvictionAttributes
are set to
EvictionAlgorithm.LRU_HEAP
with EvictionAction.LOCAL_DESTROY
.public static final ClientRegionShortcut CACHING_PROXY_OVERFLOW
DataPolicy
to DataPolicy.NORMAL
. and
EvictionAttributes
are set to EvictionAlgorithm.LRU_HEAP
with
EvictionAction.OVERFLOW_TO_DISK
.public static final ClientRegionShortcut LOCAL
DataPolicy
to DataPolicy.NORMAL
.public static final ClientRegionShortcut LOCAL_PERSISTENT
DataPolicy
to
DataPolicy.PERSISTENT_REPLICATE
.public static final ClientRegionShortcut LOCAL_HEAP_LRU
DataPolicy
to
DataPolicy.NORMAL
and EvictionAttributes
are set to
EvictionAlgorithm.LRU_HEAP
with EvictionAction.LOCAL_DESTROY
.public static final ClientRegionShortcut LOCAL_OVERFLOW
DataPolicy
to
DataPolicy.NORMAL
and EvictionAttributes
are set to
EvictionAlgorithm.LRU_HEAP
with EvictionAction.OVERFLOW_TO_DISK
.public static final ClientRegionShortcut LOCAL_PERSISTENT_OVERFLOW
DataPolicy
to DataPolicy.PERSISTENT_REPLICATE
and EvictionAttributes
are set to EvictionAlgorithm.LRU_HEAP
with EvictionAction.OVERFLOW_TO_DISK
.public static ClientRegionShortcut[] values()
for (ClientRegionShortcut c : ClientRegionShortcut.values()) System.out.println(c);
public static ClientRegionShortcut 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 null