Package com.hazelcast.config.cp
Class CPMapConfig
java.lang.Object
com.hazelcast.config.cp.CPMapConfig
Configuration for
CPMap
.- Since:
- 5.4
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default maximum size in MB that aCPMap
can total. -
Constructor Summary
ConstructorDescriptionDeprecated.exists only for DOM processing.CPMapConfig
(CPMapConfig config) Copy constructor.CPMapConfig
(String name) Creates a configuration for aCPMap
with the givenname
and the default map capacity ofDEFAULT_MAX_SIZE_MB
.CPMapConfig
(String name, int maxSizeMb) Creates a configuration for aCPMap
with the givenname
and maximum capacity in MB as specified bymaxSizeMb
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets the maximum capacity in MB.getName()
Gets the name of the configuration.int
hashCode()
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 aCPMap
can total.- See Also:
-
-
Constructor Details
-
CPMapConfig
public CPMapConfig()Deprecated.exists only for DOM processing. -
CPMapConfig
Creates a configuration for aCPMap
with the givenname
and the default map capacity ofDEFAULT_MAX_SIZE_MB
.- Parameters:
name
- of theCPMap
the configuration is applicable for
-
CPMapConfig
Creates a configuration for aCPMap
with the givenname
and 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 theCPMap
in MB- Throws:
IllegalArgumentException
- ifmaxSizeMb
is not positive or exceeds 2000MB
-
getName
Gets the name of the configuration. -
setName
Sets the name of the configuration.- Throws:
NullPointerException
- if thename
is null
-
equals
-
hashCode
public int hashCode() -
toString
-