Package org.infinispan.util
Enum CacheTopologyUtil
- java.lang.Object
-
- java.lang.Enum<CacheTopologyUtil>
-
- org.infinispan.util.CacheTopologyUtil
-
- All Implemented Interfaces:
Serializable
,Comparable<CacheTopologyUtil>
public enum CacheTopologyUtil extends Enum<CacheTopologyUtil>
Utility methods related toCacheTopology
.- Since:
- 14.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalizedCacheTopology
checkTopology(TopologyAffectedCommand command, LocalizedCacheTopology current)
Check if the currentLocalizedCacheTopology
is valid for theTopologyAffectedCommand
.static CacheTopologyUtil
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheTopologyUtil[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static CacheTopologyUtil[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CacheTopologyUtil c : CacheTopologyUtil.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheTopologyUtil valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
checkTopology
public static LocalizedCacheTopology checkTopology(TopologyAffectedCommand command, LocalizedCacheTopology current)
Check if the currentLocalizedCacheTopology
is valid for theTopologyAffectedCommand
.- Parameters:
command
- TheTopologyAffectedCommand
that will use theLocalizedCacheTopology
.current
- The currentLocalizedCacheTopology
.- Returns:
- The current
LocalizedCacheTopology
.
-
-