public static enum CacheTopology.Phase extends Enum<CacheTopology.Phase>
NO_REBALANCE
phase.Enum Constant and Description |
---|
CONFLICT_RESOLUTION
Interim state between NO_REBALANCE → READ_OLD_WRITE_ALL
readCh is set locally using previous Topology (of said node) readCH, whilst writeCH contains all members after merge
|
NO_REBALANCE
Only currentCH should be set, this works as both readCH and writeCH
|
READ_ALL_WRITE_ALL
Used after state transfer completes: readCH == writeCH = unionCH
|
READ_NEW_WRITE_ALL
Intermediate state that prevents ISPN-5021: readCH == pendingCH, writeCH = unionCH
|
READ_OLD_WRITE_ALL
Used during state transfer: readCH == currentCH, writeCH = unionCH
|
TRANSITORY
Used by caches that don't use 4-phase topology change.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRebalance() |
static CacheTopology.Phase |
valueOf(int ordinal) |
static CacheTopology.Phase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheTopology.Phase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheTopology.Phase NO_REBALANCE
public static final CacheTopology.Phase TRANSITORY
public static final CacheTopology.Phase CONFLICT_RESOLUTION
public static final CacheTopology.Phase READ_OLD_WRITE_ALL
public static final CacheTopology.Phase READ_ALL_WRITE_ALL
public static final CacheTopology.Phase READ_NEW_WRITE_ALL
public static CacheTopology.Phase[] values()
for (CacheTopology.Phase c : CacheTopology.Phase.values()) System.out.println(c);
public static CacheTopology.Phase 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 isRebalance()
public static CacheTopology.Phase valueOf(int ordinal)
Copyright © 2021 JBoss by Red Hat. All rights reserved.