public enum CacheMode extends Enum<CacheMode>
Enum Constant and Description |
---|
DIST_ASYNC
Async DIST
|
DIST_SYNC
Synchronous DIST
|
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 |
---|---|
String |
friendlyCacheModeString() |
boolean |
isClustered() |
boolean |
isDistributed() |
boolean |
isInvalidation()
Returns true if the mode is invalidation, either sync or async.
|
boolean |
isReplicated() |
boolean |
isSynchronous() |
CacheMode |
toAsync() |
CacheMode |
toSync() |
static CacheMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheMode LOCAL
public static final CacheMode REPL_SYNC
public static final CacheMode REPL_ASYNC
public static final CacheMode INVALIDATION_SYNC
public static final CacheMode INVALIDATION_ASYNC
public static final CacheMode DIST_SYNC
public static final CacheMode DIST_ASYNC
public static CacheMode[] values()
for (CacheMode c : CacheMode.values()) System.out.println(c);
public static 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()
public boolean isClustered()
public boolean isDistributed()
public boolean isReplicated()
public CacheMode toSync()
public CacheMode toAsync()
public String friendlyCacheModeString()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.