Package com.hazelcast.config
Class MapConfig
- java.lang.Object
-
- com.hazelcast.config.MapConfig
-
- All Implemented Interfaces:
NamedConfig
,DataSerializable
,IdentifiedDataSerializable
,com.hazelcast.nio.serialization.impl.Versioned
public class MapConfig extends java.lang.Object implements IdentifiedDataSerializable, NamedConfig, com.hazelcast.nio.serialization.impl.Versioned
Contains the configuration for anIMap
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BACKUP_COUNT
The default number of backupsstatic CacheDeserializedValues
DEFAULT_CACHED_DESERIALIZED_VALUES
We want to cache values only when an index is defined.static boolean
DEFAULT_ENTRY_STATS_ENABLED
Default value of whether per entry statistics are enabled or notstatic EvictionPolicy
DEFAULT_EVICTION_POLICY
Default eviction policystatic InMemoryFormat
DEFAULT_IN_MEMORY_FORMAT
Default In-Memory format is binary.static int
DEFAULT_MAX_IDLE_SECONDS
The number of default time to wait eviction in seconds.static int
DEFAULT_MAX_SIZE
Default max size.static MaxSizePolicy
DEFAULT_MAX_SIZE_POLICY
Default max size policystatic MetadataPolicy
DEFAULT_METADATA_POLICY
Default metadata policystatic boolean
DEFAULT_STATISTICS_ENABLED
Default value of whether statistics are enabled or notstatic int
DEFAULT_TTL_SECONDS
The number of default Time to Live in seconds.static int
DISABLED_TTL_SECONDS
The number of Time to Live that represents disabling TTL.static int
MAX_BACKUP_COUNT
The maximum number of backupsstatic int
MIN_BACKUP_COUNT
The minimum number of backups
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MapConfig
addAttributeConfig(AttributeConfig attributeConfig)
MapConfig
addEntryListenerConfig(EntryListenerConfig listenerConfig)
MapConfig
addIndexConfig(IndexConfig indexConfig)
MapConfig
addMapPartitionLostListenerConfig(MapPartitionLostListenerConfig listenerConfig)
MapConfig
addQueryCacheConfig(QueryCacheConfig queryCacheConfig)
Adds a newQueryCacheConfig
to thisMapConfig
.boolean
equals(java.lang.Object o)
int
getAsyncBackupCount()
Returns the asynchronous backup count for thisIMap
.java.util.List<AttributeConfig>
getAttributeConfigs()
int
getBackupCount()
Returns the backupCount for thisIMap
CacheDeserializedValues
getCacheDeserializedValues()
Get current value cache settingsint
getClassId()
Returns type identifier for this class.DataPersistenceConfig
getDataPersistenceConfig()
Gets theDataPersistenceConfig
for thisMapConfig
java.util.List<EntryListenerConfig>
getEntryListenerConfigs()
EventJournalConfig
getEventJournalConfig()
Gets theEventJournalConfig
for thisMapConfig
EvictionConfig
getEvictionConfig()
Gets theEvictionConfig
instance of the eviction configuration for thisIMap
.int
getFactoryId()
Returns DataSerializableFactory factory ID for this class.HotRestartConfig
getHotRestartConfig()
Gets theHotRestartConfig
for thisMapConfig
java.util.List<IndexConfig>
getIndexConfigs()
InMemoryFormat
getInMemoryFormat()
Returns the data type that will be used for storing records.MapStoreConfig
getMapStoreConfig()
Returns the map store configurationint
getMaxIdleSeconds()
Returns the maximum number of seconds for each entry to stay idle in the map.MergePolicyConfig
getMergePolicyConfig()
Gets theMergePolicyConfig
for this map.MerkleTreeConfig
getMerkleTreeConfig()
Gets theMerkleTreeConfig
for thisMapConfig
MetadataPolicy
getMetadataPolicy()
ReturnsMetadataPolicy
for this map.java.lang.String
getName()
Returns the name of thisIMap
NearCacheConfig
getNearCacheConfig()
Returns the Near Cache configurationjava.util.List<PartitioningAttributeConfig>
getPartitioningAttributeConfigs()
Get Partition Attribute configs used for creation ofAttributePartitioningStrategy
PartitioningStrategyConfig
getPartitioningStrategyConfig()
java.util.List<MapPartitionLostListenerConfig>
getPartitionLostListenerConfigs()
java.util.List<QueryCacheConfig>
getQueryCacheConfigs()
Returns allQueryCacheConfig
instances defined on thisMapConfig
.java.lang.String
getSplitBrainProtectionName()
TieredStoreConfig
getTieredStoreConfig()
Gets theTieredStoreConfig
for thisMapConfig
int
getTimeToLiveSeconds()
Returns the maximum number of seconds for each entry to stay in the map.int
getTotalBackupCount()
Returns the total number of backups: backupCount plus asyncBackupCount.WanReplicationRef
getWanReplicationRef()
Gets the WAN target replication reference.int
hashCode()
boolean
isNearCacheEnabled()
Checks if Near Cache is enabled.boolean
isPerEntryStatsEnabled()
Checks if entry level statistics are enabled for this map.boolean
isReadBackupData()
Checks if read-backup-data (reading local backup entries) is enabled for this map.boolean
isStatisticsEnabled()
Checks if statistics are enabled for this map.void
readData(ObjectDataInput in)
Reads fields from the input streamMapConfig
setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups.MapConfig
setAttributeConfigs(java.util.List<AttributeConfig> attributeConfigs)
MapConfig
setBackupCount(int backupCount)
Number of synchronous backups.MapConfig
setCacheDeserializedValues(CacheDeserializedValues cacheDeserializedValues)
Configure de-serialized value caching.MapConfig
setDataPersistenceConfig(DataPersistenceConfig dataPersistenceConfig)
Sets theDataPersistenceConfig
for thisMapConfig
MapConfig
setEntryListenerConfigs(java.util.List<EntryListenerConfig> listenerConfigs)
MapConfig
setEventJournalConfig(EventJournalConfig eventJournalConfig)
Sets theEventJournalConfig
for thisMapConfig
MapConfig
setEvictionConfig(EvictionConfig evictionConfig)
Sets theEvictionConfig
instance for eviction configuration for thisIMap
.MapConfig
setHotRestartConfig(HotRestartConfig hotRestartConfig)
Deprecated.since 5.0 usesetDataPersistenceConfig(DataPersistenceConfig)
MapConfig
setIndexConfigs(java.util.List<IndexConfig> indexConfigs)
MapConfig
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Binary type that will be used for storing records.MapConfig
setMapStoreConfig(MapStoreConfig mapStoreConfig)
Sets the map store configurationMapConfig
setMaxIdleSeconds(int maxIdleSeconds)
Maximum number of seconds for each entry to stay idle in the map.MapConfig
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Sets theMergePolicyConfig
for this map.MapConfig
setMerkleTreeConfig(MerkleTreeConfig merkleTreeConfig)
Sets theMerkleTreeConfig
for thisMapConfig
MapConfig
setMetadataPolicy(MetadataPolicy metadataPolicy)
Sets the metadata policy.MapConfig
setName(java.lang.String name)
Sets the name of theIMap
MapConfig
setNearCacheConfig(NearCacheConfig nearCacheConfig)
Sets the Near Cache configurationMapConfig
setPartitioningAttributeConfigs(java.util.List<PartitioningAttributeConfig> partitioningAttributeConfigs)
MapConfig
setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
MapConfig
setPartitionLostListenerConfigs(java.util.List<MapPartitionLostListenerConfig> listenerConfigs)
MapConfig
setPerEntryStatsEnabled(boolean perEntryStatsEnabled)
Set to enable/disable per entry statistics.MapConfig
setQueryCacheConfigs(java.util.List<QueryCacheConfig> queryCacheConfigs)
SetsQueryCacheConfig
instances to thisMapConfig
.MapConfig
setReadBackupData(boolean readBackupData)
Sets read-backup-data (reading local backup entries) for this map.MapConfig
setSplitBrainProtectionName(java.lang.String splitBrainProtectionName)
MapConfig
setStatisticsEnabled(boolean statisticsEnabled)
Set to enable/disable map level statistics for this map.MapConfig
setTieredStoreConfig(TieredStoreConfig tieredStoreConfig)
Sets theTieredStoreConfig
for thisMapConfig
MapConfig
setTimeToLiveSeconds(int timeToLiveSeconds)
The maximum number of seconds for each entry to stay in the map.MapConfig
setWanReplicationRef(WanReplicationRef wanReplicationRef)
Sets the WAN target replication reference.java.lang.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream
-
-
-
Field Detail
-
MIN_BACKUP_COUNT
public static final int MIN_BACKUP_COUNT
The minimum number of backups- See Also:
- Constant Field Values
-
DEFAULT_BACKUP_COUNT
public static final int DEFAULT_BACKUP_COUNT
The default number of backups- See Also:
- Constant Field Values
-
MAX_BACKUP_COUNT
public static final int MAX_BACKUP_COUNT
The maximum number of backups- See Also:
- Constant Field Values
-
DISABLED_TTL_SECONDS
public static final int DISABLED_TTL_SECONDS
The number of Time to Live that represents disabling TTL.- See Also:
- Constant Field Values
-
DEFAULT_TTL_SECONDS
public static final int DEFAULT_TTL_SECONDS
The number of default Time to Live in seconds.- See Also:
- Constant Field Values
-
DEFAULT_MAX_IDLE_SECONDS
public static final int DEFAULT_MAX_IDLE_SECONDS
The number of default time to wait eviction in seconds.- See Also:
- Constant Field Values
-
DEFAULT_IN_MEMORY_FORMAT
public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT
Default In-Memory format is binary.
-
DEFAULT_CACHED_DESERIALIZED_VALUES
public static final CacheDeserializedValues DEFAULT_CACHED_DESERIALIZED_VALUES
We want to cache values only when an index is defined.
-
DEFAULT_METADATA_POLICY
public static final MetadataPolicy DEFAULT_METADATA_POLICY
Default metadata policy
-
DEFAULT_STATISTICS_ENABLED
public static final boolean DEFAULT_STATISTICS_ENABLED
Default value of whether statistics are enabled or not- See Also:
- Constant Field Values
-
DEFAULT_ENTRY_STATS_ENABLED
public static final boolean DEFAULT_ENTRY_STATS_ENABLED
Default value of whether per entry statistics are enabled or not- See Also:
- Constant Field Values
-
DEFAULT_MAX_SIZE
public static final int DEFAULT_MAX_SIZE
Default max size.- See Also:
- Constant Field Values
-
DEFAULT_MAX_SIZE_POLICY
public static final MaxSizePolicy DEFAULT_MAX_SIZE_POLICY
Default max size policy
-
DEFAULT_EVICTION_POLICY
public static final EvictionPolicy DEFAULT_EVICTION_POLICY
Default eviction policy
-
-
Constructor Detail
-
MapConfig
public MapConfig()
-
MapConfig
public MapConfig(java.lang.String name)
-
MapConfig
public MapConfig(MapConfig config)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of thisIMap
- Specified by:
getName
in interfaceNamedConfig
- Returns:
- the name of the
IMap
-
setName
public MapConfig setName(java.lang.String name)
Sets the name of theIMap
- Specified by:
setName
in interfaceNamedConfig
- Parameters:
name
- the name to set for thisIMap
-
getInMemoryFormat
public InMemoryFormat getInMemoryFormat()
Returns the data type that will be used for storing records.- Returns:
- data type that will be used for storing records
-
setInMemoryFormat
public MapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
Binary type that will be used for storing records. Possible values:- BINARY (default): keys and values will be stored as binary data
- OBJECT: values will be stored in their object forms
- NATIVE: values will be stored in non-heap region of JVM (Hazelcast Enterprise only)
- Parameters:
inMemoryFormat
- the record type to set for thisIMap
- Throws:
java.lang.IllegalArgumentException
- if inMemoryFormat isnull
-
getEvictionConfig
public EvictionConfig getEvictionConfig()
Gets theEvictionConfig
instance of the eviction configuration for thisIMap
.- Returns:
- the
EvictionConfig
instance of the eviction configuration
-
setEvictionConfig
public MapConfig setEvictionConfig(EvictionConfig evictionConfig)
Sets theEvictionConfig
instance for eviction configuration for thisIMap
.- Parameters:
evictionConfig
- theEvictionConfig
instance to set for the eviction configuration- Returns:
- current map config instance
-
getBackupCount
public int getBackupCount()
Returns the backupCount for thisIMap
- Returns:
- the backupCount for this
IMap
- See Also:
getAsyncBackupCount()
-
setBackupCount
public MapConfig setBackupCount(int backupCount)
Number of synchronous backups. For example, if 1 is set as the backup count, then all entries of the map will be copied to another JVM for fail-safety. 0 means no sync backup.- Parameters:
backupCount
- the number of synchronous backups to set for thisIMap
- Returns:
- the updated MapConfig
- See Also:
setAsyncBackupCount(int)
-
getAsyncBackupCount
public int getAsyncBackupCount()
Returns the asynchronous backup count for thisIMap
.- Returns:
- the asynchronous backup count
- See Also:
setBackupCount(int)
-
setAsyncBackupCount
public MapConfig setAsyncBackupCount(int asyncBackupCount)
Sets the number of asynchronous backups. 0 means no backups.- Parameters:
asyncBackupCount
- the number of asynchronous synchronous backups to set- Returns:
- the updated MapConfig
- Throws:
java.lang.IllegalArgumentException
- if asyncBackupCount smaller than 0, or larger than the maximum number of backup or the sum of the backups and async backups is larger than the maximum number of backups- See Also:
setBackupCount(int)
,getAsyncBackupCount()
-
getTotalBackupCount
public int getTotalBackupCount()
Returns the total number of backups: backupCount plus asyncBackupCount.- Returns:
- the total number of backups: synchronous + asynchronous
-
getTimeToLiveSeconds
public int getTimeToLiveSeconds()
Returns the maximum number of seconds for each entry to stay in the map.- Returns:
- the maximum number of seconds for each entry to stay in the map
-
setTimeToLiveSeconds
public MapConfig setTimeToLiveSeconds(int timeToLiveSeconds)
The maximum number of seconds for each entry to stay in the map. Entries that are older than timeToLiveSeconds will be automatically evicted from the map. Updates on the entry will change the eviction time. Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.- Parameters:
timeToLiveSeconds
- the timeToLiveSeconds to set
-
getMaxIdleSeconds
public int getMaxIdleSeconds()
Returns the maximum number of seconds for each entry to stay idle in the map.- Returns:
- the maximum number of seconds for each entry to stay idle in the map
-
setMaxIdleSeconds
public MapConfig setMaxIdleSeconds(int maxIdleSeconds)
Maximum number of seconds for each entry to stay idle in the map. Entries that are idle (not touched) for more thanmaxIdleSeconds
will get automatically evicted from the map. Entry is touched ifget()
,getAll()
,put()
orcontainsKey()
is called. Any integer between0
andInteger.MAX_VALUE
.0
means infinite. Default is0
. The time precision is limited by 1 second. The MaxIdle that less than 1 second can lead to unexpected behaviour.- Parameters:
maxIdleSeconds
- the maxIdleSeconds (the maximum number of seconds for each entry to stay idle in the map) to set
-
getMapStoreConfig
public MapStoreConfig getMapStoreConfig()
Returns the map store configuration- Returns:
- the mapStoreConfig (map store configuration)
-
setMapStoreConfig
public MapConfig setMapStoreConfig(MapStoreConfig mapStoreConfig)
Sets the map store configuration- Parameters:
mapStoreConfig
- the mapStoreConfig (map store configuration) to set
-
getNearCacheConfig
public NearCacheConfig getNearCacheConfig()
Returns the Near Cache configuration- Returns:
- the Near Cache configuration
-
setNearCacheConfig
public MapConfig setNearCacheConfig(NearCacheConfig nearCacheConfig)
Sets the Near Cache configuration- Parameters:
nearCacheConfig
- the Near Cache configuration- Returns:
- the updated map configuration
-
getMergePolicyConfig
public MergePolicyConfig getMergePolicyConfig()
Gets theMergePolicyConfig
for this map.- Returns:
- the
MergePolicyConfig
for this map
-
setMergePolicyConfig
public MapConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Sets theMergePolicyConfig
for this map. Note that you may need to enable per entry stats viasetPerEntryStatsEnabled(boolean)
to see all fields of entry view in yourSplitBrainMergePolicy
implementation.- Returns:
- the updated map configuration
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
Checks if statistics are enabled for this map.- Returns:
true
if statistics are enabled,false
otherwise
-
setStatisticsEnabled
public MapConfig setStatisticsEnabled(boolean statisticsEnabled)
Set to enable/disable map level statistics for this map. This setting is only for map level stats such as last access time to map, total number of hits etc. For entry level stats seeperEntryStatsEnabled
- Parameters:
statisticsEnabled
-true
to enable map statistics,false
to disable- Returns:
- the current map config instance
- See Also:
setPerEntryStatsEnabled(boolean)
-
isPerEntryStatsEnabled
public boolean isPerEntryStatsEnabled()
Checks if entry level statistics are enabled for this map.- Returns:
true
if entry level statistics are enabled,false
otherwise- Since:
- 4.2
-
setPerEntryStatsEnabled
public MapConfig setPerEntryStatsEnabled(boolean perEntryStatsEnabled)
Set to enable/disable per entry statistics. Its default value isfalse
. When you enable per entry stats, you can retrieve entry level statistics such as hits, creation time, last access time, last update time, last stored time for an entry.- Parameters:
perEntryStatsEnabled
-true
to enable entry level statistics,false
to disable- Returns:
- the current map config instance
- Since:
- 4.2
-
isReadBackupData
public boolean isReadBackupData()
Checks if read-backup-data (reading local backup entries) is enabled for this map.- Returns:
true
if read-backup-data is enabled,false
otherwise
-
setReadBackupData
public MapConfig setReadBackupData(boolean readBackupData)
Sets read-backup-data (reading local backup entries) for this map.- Parameters:
readBackupData
-true
to enable read-backup-data,false
to disable- Returns:
- the current map config instance
-
getWanReplicationRef
public WanReplicationRef getWanReplicationRef()
Gets the WAN target replication reference.- Returns:
- the WAN target replication reference
-
setWanReplicationRef
public MapConfig setWanReplicationRef(WanReplicationRef wanReplicationRef)
Sets the WAN target replication reference.- Parameters:
wanReplicationRef
- the WAN target replication reference- Returns:
- the current map config instance
-
addEntryListenerConfig
public MapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
-
getEntryListenerConfigs
public java.util.List<EntryListenerConfig> getEntryListenerConfigs()
-
setEntryListenerConfigs
public MapConfig setEntryListenerConfigs(java.util.List<EntryListenerConfig> listenerConfigs)
-
addMapPartitionLostListenerConfig
public MapConfig addMapPartitionLostListenerConfig(MapPartitionLostListenerConfig listenerConfig)
-
getPartitionLostListenerConfigs
public java.util.List<MapPartitionLostListenerConfig> getPartitionLostListenerConfigs()
-
setPartitionLostListenerConfigs
public MapConfig setPartitionLostListenerConfigs(java.util.List<MapPartitionLostListenerConfig> listenerConfigs)
-
addIndexConfig
public MapConfig addIndexConfig(IndexConfig indexConfig)
-
getIndexConfigs
public java.util.List<IndexConfig> getIndexConfigs()
-
setIndexConfigs
public MapConfig setIndexConfigs(java.util.List<IndexConfig> indexConfigs)
-
addAttributeConfig
public MapConfig addAttributeConfig(AttributeConfig attributeConfig)
-
getAttributeConfigs
public java.util.List<AttributeConfig> getAttributeConfigs()
-
setAttributeConfigs
public MapConfig setAttributeConfigs(java.util.List<AttributeConfig> attributeConfigs)
-
getMetadataPolicy
public MetadataPolicy getMetadataPolicy()
ReturnsMetadataPolicy
for this map.- Returns:
MetadataPolicy
for this map
-
setMetadataPolicy
public MapConfig setMetadataPolicy(MetadataPolicy metadataPolicy)
Sets the metadata policy. SeeMetadataPolicy
for more information.- Parameters:
metadataPolicy
- the metadata policy
-
addQueryCacheConfig
public MapConfig addQueryCacheConfig(QueryCacheConfig queryCacheConfig)
Adds a newQueryCacheConfig
to thisMapConfig
.- Parameters:
queryCacheConfig
- the config to be added- Returns:
- this
MapConfig
instance - Throws:
java.lang.IllegalArgumentException
- if there is already aQueryCache
with the sameQueryCacheConfig#name
-
getQueryCacheConfigs
public java.util.List<QueryCacheConfig> getQueryCacheConfigs()
Returns allQueryCacheConfig
instances defined on thisMapConfig
.- Returns:
- all
QueryCacheConfig
instances defined on thisMapConfig
-
setQueryCacheConfigs
public MapConfig setQueryCacheConfigs(java.util.List<QueryCacheConfig> queryCacheConfigs)
SetsQueryCacheConfig
instances to thisMapConfig
.- Returns:
- this configuration
-
getPartitioningStrategyConfig
public PartitioningStrategyConfig getPartitioningStrategyConfig()
-
setPartitioningStrategyConfig
public MapConfig setPartitioningStrategyConfig(PartitioningStrategyConfig partitioningStrategyConfig)
-
isNearCacheEnabled
public boolean isNearCacheEnabled()
Checks if Near Cache is enabled.- Returns:
true
if Near Cache is enabled,false
otherwise
-
setCacheDeserializedValues
public MapConfig setCacheDeserializedValues(CacheDeserializedValues cacheDeserializedValues)
Configure de-serialized value caching. Default:CacheDeserializedValues.INDEX_ONLY
- Returns:
- this
MapConfig
instance - Since:
- 3.6
- See Also:
CacheDeserializedValues
-
getHotRestartConfig
@Nonnull public HotRestartConfig getHotRestartConfig()
Gets theHotRestartConfig
for thisMapConfig
- Returns:
- hot restart config
-
getDataPersistenceConfig
@Nonnull public DataPersistenceConfig getDataPersistenceConfig()
Gets theDataPersistenceConfig
for thisMapConfig
- Returns:
- dataPersistenceConfig config
-
setHotRestartConfig
@Deprecated public MapConfig setHotRestartConfig(@Nonnull HotRestartConfig hotRestartConfig)
Deprecated.since 5.0 usesetDataPersistenceConfig(DataPersistenceConfig)
Sets theHotRestartConfig
for thisMapConfig
- Parameters:
hotRestartConfig
- hot restart config- Returns:
- this
MapConfig
instance
-
setDataPersistenceConfig
public MapConfig setDataPersistenceConfig(@Nonnull DataPersistenceConfig dataPersistenceConfig)
Sets theDataPersistenceConfig
for thisMapConfig
- Parameters:
dataPersistenceConfig
- dataPersistenceConfig config- Returns:
- this
MapConfig
instance
-
getMerkleTreeConfig
@Nonnull public MerkleTreeConfig getMerkleTreeConfig()
Gets theMerkleTreeConfig
for thisMapConfig
- Returns:
- merkle tree config
-
setMerkleTreeConfig
public MapConfig setMerkleTreeConfig(@Nonnull MerkleTreeConfig merkleTreeConfig)
Sets theMerkleTreeConfig
for thisMapConfig
- Parameters:
merkleTreeConfig
- merkle tree config- Returns:
- this
MapConfig
instance
-
getEventJournalConfig
@Nonnull public EventJournalConfig getEventJournalConfig()
Gets theEventJournalConfig
for thisMapConfig
- Returns:
- event journal config
-
setEventJournalConfig
public MapConfig setEventJournalConfig(@Nonnull EventJournalConfig eventJournalConfig)
Sets theEventJournalConfig
for thisMapConfig
- Parameters:
eventJournalConfig
- event journal config- Returns:
- this
MapConfig
instance
-
getTieredStoreConfig
public TieredStoreConfig getTieredStoreConfig()
Gets theTieredStoreConfig
for thisMapConfig
- Returns:
- tiered-store config
-
setTieredStoreConfig
public MapConfig setTieredStoreConfig(TieredStoreConfig tieredStoreConfig)
Sets theTieredStoreConfig
for thisMapConfig
- Parameters:
tieredStoreConfig
- tiered-store config- Returns:
- this
MapConfig
instance
-
getCacheDeserializedValues
public CacheDeserializedValues getCacheDeserializedValues()
Get current value cache settings- Returns:
- current value cache settings
- Since:
- 3.6
-
getSplitBrainProtectionName
public java.lang.String getSplitBrainProtectionName()
-
setSplitBrainProtectionName
public MapConfig setSplitBrainProtectionName(java.lang.String splitBrainProtectionName)
-
getPartitioningAttributeConfigs
public java.util.List<PartitioningAttributeConfig> getPartitioningAttributeConfigs()
Get Partition Attribute configs used for creation ofAttributePartitioningStrategy
- Returns:
- list of partitioning attribute configs
-
setPartitioningAttributeConfigs
public MapConfig setPartitioningAttributeConfigs(java.util.List<PartitioningAttributeConfig> partitioningAttributeConfigs)
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getFactoryId
public int getFactoryId()
Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()
Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
writeData
public void writeData(ObjectDataOutput out) throws java.io.IOException
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
public void readData(ObjectDataInput in) throws java.io.IOException
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
-