public class ReplicatedMapConfig extends Object implements IdentifiedDataSerializable, NamedConfig
ReplicatedMap
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ASNYC_FILLUP
Default value of asynchronous fill up
|
static InMemoryFormat |
DEFAULT_IN_MEMORY_FORMAT
Default value of In-memory format
|
Constructor and Description |
---|
ReplicatedMapConfig() |
ReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig) |
ReplicatedMapConfig(String name)
Creates a ReplicatedMapConfig with the given name.
|
Modifier and Type | Method and Description |
---|---|
ReplicatedMapConfig |
addEntryListenerConfig(EntryListenerConfig listenerConfig) |
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
InMemoryFormat |
getInMemoryFormat()
Data type used to store entries.
|
List<ListenerConfig> |
getListenerConfigs() |
MergePolicyConfig |
getMergePolicyConfig()
Gets the
MergePolicyConfig for this replicated map. |
String |
getName()
Returns the name of this
ReplicatedMap . |
String |
getSplitBrainProtectionName()
Returns the split brain protection name for operations.
|
int |
hashCode() |
boolean |
isAsyncFillup()
True if the replicated map is available for reads before the initial
replication is completed, false otherwise.
|
boolean |
isStatisticsEnabled()
Checks if statistics are enabled for this replicated map.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
ReplicatedMapConfig |
setAsyncFillup(boolean asyncFillup)
True if the replicated map is available for reads before the initial
replication is completed, false otherwise.
|
ReplicatedMapConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat)
Data type used to store entries.
|
ReplicatedMapConfig |
setListenerConfigs(List<ListenerConfig> listenerConfigs) |
ReplicatedMapConfig |
setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
Sets the
MergePolicyConfig for this replicated map. |
ReplicatedMapConfig |
setName(String name)
Sets the name of this
ReplicatedMap . |
ReplicatedMapConfig |
setSplitBrainProtectionName(String splitBrainProtectionName)
Sets the split brain protection name for operations.
|
ReplicatedMapConfig |
setStatisticsEnabled(boolean statisticsEnabled)
Sets statistics to enabled or disabled for this replicated map.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT
public static final boolean DEFAULT_ASNYC_FILLUP
public ReplicatedMapConfig()
public ReplicatedMapConfig(String name)
name
- the name of the ReplicatedMappublic ReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
public String getName()
ReplicatedMap
.getName
in interface NamedConfig
ReplicatedMap
public ReplicatedMapConfig setName(String name)
ReplicatedMap
.setName
in interface NamedConfig
name
- the name of the ReplicatedMap
public InMemoryFormat getInMemoryFormat()
Possible values:
public ReplicatedMapConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
Possible values:
inMemoryFormat
- Data type used to store entriespublic List<ListenerConfig> getListenerConfigs()
public ReplicatedMapConfig setListenerConfigs(List<ListenerConfig> listenerConfigs)
public ReplicatedMapConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
public boolean isAsyncFillup()
true
if the replicated map is available for reads before the initial
replication is completed, false
otherwisepublic ReplicatedMapConfig setAsyncFillup(boolean asyncFillup)
asyncFillup
- true
if the replicated map is available for reads before the initial
replication is completed, false
otherwisepublic boolean isStatisticsEnabled()
true
if statistics are enabled, false
otherwisepublic ReplicatedMapConfig setStatisticsEnabled(boolean statisticsEnabled)
statisticsEnabled
- true
to enable replicated map statistics, false
to disablepublic String getSplitBrainProtectionName()
public ReplicatedMapConfig setSplitBrainProtectionName(String splitBrainProtectionName)
splitBrainProtectionName
- the split brain protection namepublic MergePolicyConfig getMergePolicyConfig()
MergePolicyConfig
for this replicated map.MergePolicyConfig
for this replicated mappublic ReplicatedMapConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig)
MergePolicyConfig
for this replicated map.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All rights reserved.