Package com.hazelcast.config.cp
Class CPMapConfig
java.lang.Object
com.hazelcast.config.cp.CPMapConfig
Configuration for 
CPMap.- Since:
- 5.4
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe default maximum size in MB that aCPMapcan total.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.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 SummaryModifier 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_MBpublic static final int DEFAULT_MAX_SIZE_MBThe default maximum size in MB that aCPMapcan total.- See Also:
 
 
- 
- 
Constructor Details- 
CPMapConfigDeprecated.exists only for DOM processing.
- 
CPMapConfigCreates a configuration for aCPMapwith the givennameand the default map capacity ofDEFAULT_MAX_SIZE_MB.- Parameters:
- name- of the- CPMapthe configuration is applicable for
 
- 
CPMapConfigCreates a configuration for aCPMapwith the givennameand maximum capacity in MB as specified bymaxSizeMb.DEFAULT_MAX_SIZE_MB.
- 
CPMapConfigCopy constructor.- Parameters:
- config- to copy
 
 
- 
- 
Method Details- 
getMaxSizeMbpublic int getMaxSizeMb()Gets the maximum capacity in MB.
- 
setMaxSizeMbSets the maximum capacity of theCPMap.- Parameters:
- maxSizeMb- capacity of the- CPMapin MB
- Throws:
- IllegalArgumentException- if- maxSizeMbis not positive or exceeds 2000MB
 
- 
getNameGets the name of the configuration.
- 
setNameSets the name of the configuration.- Throws:
- NullPointerException- if the- nameis null
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-