public enum ClientCacheSyncMode extends java.lang.Enum<ClientCacheSyncMode>
Enum Constant | Description |
---|---|
Optimistic |
It is possible that client caches are not synchronized with the clustered cache for a small period of time.
|
Pessimistic |
In the "Pessimistic" mode of synchronization, the client cache always checks for the "version" of the cached item before returning it to the application.
|
Modifier and Type | Method | Description |
---|---|---|
static ClientCacheSyncMode |
forValue(int value) |
Retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.
|
static ClientCacheSyncMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ClientCacheSyncMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientCacheSyncMode Pessimistic
public static final ClientCacheSyncMode Optimistic
public static ClientCacheSyncMode[] values()
for (ClientCacheSyncMode c : ClientCacheSyncMode.values()) System.out.println(c);
public static ClientCacheSyncMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ClientCacheSyncMode forValue(int value)
value
- enum constant indexpublic int getValue()