Package com.hazelcast.config
Class WanSyncConfig
java.lang.Object
com.hazelcast.config.WanSyncConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Configuration object for the WAN sync mechanism.
- Since:
- 3.11
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns type identifier for this class.Returns the strategy for checking consistency of data between source and target cluster.intReturns DataSerializableFactory factory ID for this class.inthashCode()voidReads fields from the input streamsetConsistencyCheckStrategy(ConsistencyCheckStrategy consistencyCheckStrategy) Sets the strategy for checking consistency of data between source and target cluster.toString()voidWrites object fields to output stream
-
Constructor Details
-
WanSyncConfig
public WanSyncConfig()
-
-
Method Details
-
getConsistencyCheckStrategy
Returns the strategy for checking consistency of data between source and target cluster. Any inconsistency will not be reconciled, it will be merely reported via the usual mechanisms (e.g. statistics, diagnostics). The user must initiate WAN sync to reconcile there differences. For the check procedure to work properly, the target cluster should support the chosen strategy.Default value is
ConsistencyCheckStrategy.NONE, which means the check is disabled. -
setConsistencyCheckStrategy
Sets the strategy for checking consistency of data between source and target cluster. Any inconsistency will not be reconciled, it will be merely reported via the usual mechanisms (e.g. statistics, diagnostics). The user must initiate WAN sync to reconcile there differences. For the check procedure to work properly, the target cluster should support the chosen strategy.Default value is
ConsistencyCheckStrategy.NONE, which means the check is disabled. -
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
toString
-
equals
-
hashCode
public int hashCode()
-