Package com.hazelcast.config
Enum MaxSizePolicy
- java.lang.Object
-
- java.lang.Enum<MaxSizePolicy>
-
- com.hazelcast.config.MaxSizePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MaxSizePolicy>
public enum MaxSizePolicy extends java.lang.Enum<MaxSizePolicy>
Maximum Size Policy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTRY_COUNT
Policy based on maximum number of entries stored per data structure (map, cache etc)FREE_HEAP_PERCENTAGE
Policy based on minimum free JVM heap memory percentage per JVMFREE_HEAP_SIZE
Policy based on minimum free JVM heap memory in megabytes per JVMFREE_NATIVE_MEMORY_PERCENTAGE
Policy based on minimum free native memory percentage per Hazelcast instanceFREE_NATIVE_MEMORY_SIZE
Policy based on minimum free native memory in megabytes per Hazelcast instancePER_NODE
Policy based on maximum number of entries stored per data structure (map, cache etc) on each Hazelcast instancePER_PARTITION
Policy based on maximum number of entries stored per data structure (map, cache etc) on each partitionUSED_HEAP_PERCENTAGE
Policy based on maximum used JVM heap memory percentage per data structure (map, cache etc) on each Hazelcast instanceUSED_HEAP_SIZE
Policy based on maximum used JVM heap memory in megabytes per data structure (map, cache etc) on each Hazelcast instanceUSED_NATIVE_MEMORY_PERCENTAGE
Policy based on maximum used native memory percentage per data structure (map, cache etc) on each Hazelcast instanceUSED_NATIVE_MEMORY_SIZE
Policy based on maximum used native memory in megabytes per data structure (map, cache etc) on each Hazelcast instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaxSizePolicy
getById(int id)
int
getId()
static MaxSizePolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MaxSizePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PER_NODE
public static final MaxSizePolicy PER_NODE
Policy based on maximum number of entries stored per data structure (map, cache etc) on each Hazelcast instance
-
PER_PARTITION
public static final MaxSizePolicy PER_PARTITION
Policy based on maximum number of entries stored per data structure (map, cache etc) on each partition
-
USED_HEAP_PERCENTAGE
public static final MaxSizePolicy USED_HEAP_PERCENTAGE
Policy based on maximum used JVM heap memory percentage per data structure (map, cache etc) on each Hazelcast instance
-
USED_HEAP_SIZE
public static final MaxSizePolicy USED_HEAP_SIZE
Policy based on maximum used JVM heap memory in megabytes per data structure (map, cache etc) on each Hazelcast instance
-
FREE_HEAP_PERCENTAGE
public static final MaxSizePolicy FREE_HEAP_PERCENTAGE
Policy based on minimum free JVM heap memory percentage per JVM
-
FREE_HEAP_SIZE
public static final MaxSizePolicy FREE_HEAP_SIZE
Policy based on minimum free JVM heap memory in megabytes per JVM
-
ENTRY_COUNT
public static final MaxSizePolicy ENTRY_COUNT
Policy based on maximum number of entries stored per data structure (map, cache etc)
-
USED_NATIVE_MEMORY_SIZE
public static final MaxSizePolicy USED_NATIVE_MEMORY_SIZE
Policy based on maximum used native memory in megabytes per data structure (map, cache etc) on each Hazelcast instance
-
USED_NATIVE_MEMORY_PERCENTAGE
public static final MaxSizePolicy USED_NATIVE_MEMORY_PERCENTAGE
Policy based on maximum used native memory percentage per data structure (map, cache etc) on each Hazelcast instance
-
FREE_NATIVE_MEMORY_SIZE
public static final MaxSizePolicy FREE_NATIVE_MEMORY_SIZE
Policy based on minimum free native memory in megabytes per Hazelcast instance
-
FREE_NATIVE_MEMORY_PERCENTAGE
public static final MaxSizePolicy FREE_NATIVE_MEMORY_PERCENTAGE
Policy based on minimum free native memory percentage per Hazelcast instance
-
-
Method Detail
-
values
public static MaxSizePolicy[] 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 (MaxSizePolicy c : MaxSizePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxSizePolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId()
-
getById
public static MaxSizePolicy getById(int id)
-
-