Package com.hazelcast.config.cp
Class CPMapConfig
java.lang.Object
com.hazelcast.config.cp.CPMapConfig
Configuration for
CPMap.- Since:
- 5.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default maximum size in MB that aCPMapcan total. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.exists only for DOM processing.CPMapConfig(CPMapConfig config) Copy constructor.CPMapConfig(String name) Creates a configuration for aCPMapwith the givennameand the default map capacity ofDEFAULT_MAX_SIZE_MB.CPMapConfig(String name, int maxSizeMb) Creates a configuration for aCPMapwith the givennameand maximum capacity in MB as specified bymaxSizeMb. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the maximum capacity in MB.getName()Gets the name of the configuration.inthashCode()setMaxSizeMb(int maxSizeMb) Sets the maximum capacity of theCPMap.Sets the name of the configuration.toString()
-
Field Details
-
DEFAULT_MAX_SIZE_MB
public static final int DEFAULT_MAX_SIZE_MBThe default maximum size in MB that aCPMapcan total.- See Also:
-
-
Constructor Details
-
CPMapConfig
public CPMapConfig()Deprecated.exists only for DOM processing. -
CPMapConfig
Creates a configuration for aCPMapwith the givennameand the default map capacity ofDEFAULT_MAX_SIZE_MB.- Parameters:
name- of theCPMapthe configuration is applicable for
-
CPMapConfig
Creates a configuration for aCPMapwith the givennameand maximum capacity in MB as specified bymaxSizeMb.DEFAULT_MAX_SIZE_MB. -
CPMapConfig
Copy constructor.- Parameters:
config- to copy
-
-
Method Details
-
getMaxSizeMb
public int getMaxSizeMb()Gets the maximum capacity in MB. -
setMaxSizeMb
Sets the maximum capacity of theCPMap.- Parameters:
maxSizeMb- capacity of theCPMapin MB- Throws:
IllegalArgumentException- ifmaxSizeMbis not positive or exceeds 2000MB
-
getName
Gets the name of the configuration. -
setName
Sets the name of the configuration.- Throws:
NullPointerException- if thenameis null
-
equals
-
hashCode
public int hashCode() -
toString
-