public static enum Configuration.CacheMode extends Enum<Configuration.CacheMode>
Enum Constant and Description |
---|
INVALIDATION_ASYNC
Data invalidated asynchronously.
|
INVALIDATION_SYNC
Data invalidated synchronously.
|
LOCAL
Data is not replicated.
|
REPL_ASYNC
Data replicated asynchronously.
|
REPL_SYNC
Data replicated synchronously.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInvalidation()
Returns true if the mode is invalidation, either sync or async.
|
boolean |
isSynchronous() |
static Configuration.CacheMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Configuration.CacheMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Configuration.CacheMode LOCAL
public static final Configuration.CacheMode REPL_SYNC
public static final Configuration.CacheMode REPL_ASYNC
public static final Configuration.CacheMode INVALIDATION_SYNC
public static final Configuration.CacheMode INVALIDATION_ASYNC
public static Configuration.CacheMode[] values()
for (Configuration.CacheMode c : Configuration.CacheMode.values()) System.out.println(c);
public static Configuration.CacheMode 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 boolean isInvalidation()
public boolean isSynchronous()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.