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.
|
SCATTERED_SYNC
Synchronous scattered cache
|
Modifier and Type | Method and Description |
---|---|
String |
friendlyCacheModeString() |
static CacheMode |
fromParts(String distribution,
String synchronicity) |
boolean |
isClustered() |
boolean |
isDistributed() |
boolean |
isInvalidation()
Returns true if the mode is invalidation, either sync or async.
|
boolean |
isReplicated() |
boolean |
isScattered() |
boolean |
isSynchronous() |
static boolean |
isValidCacheMode(String serializedCacheMode) |
boolean |
needsStateTransfer() |
CacheMode |
toAsync() |
String |
toCacheType() |
CacheMode |
toSync() |
CacheMode |
toSync(boolean sync) |
static CacheMode |
valueOf(int order) |
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.
|
@ProtoEnumValue(number=0) public static final CacheMode LOCAL
@ProtoEnumValue(number=1) public static final CacheMode REPL_SYNC
@ProtoEnumValue(number=2) public static final CacheMode REPL_ASYNC
@ProtoEnumValue(number=3) public static final CacheMode INVALIDATION_SYNC
@ProtoEnumValue(number=4) public static final CacheMode INVALIDATION_ASYNC
@ProtoEnumValue(number=5) public static final CacheMode DIST_SYNC
@ProtoEnumValue(number=6) public static final CacheMode DIST_ASYNC
@ProtoEnumValue(number=7) public static final CacheMode SCATTERED_SYNC
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 static CacheMode valueOf(int order)
public boolean isInvalidation()
public boolean isSynchronous()
public boolean isClustered()
public boolean isDistributed()
public boolean isReplicated()
public boolean isScattered()
public boolean needsStateTransfer()
public CacheMode toSync()
public CacheMode toSync(boolean sync)
public CacheMode toAsync()
public String friendlyCacheModeString()
public String toCacheType()
public static boolean isValidCacheMode(String serializedCacheMode)
Copyright © 2021 JBoss by Red Hat. All rights reserved.