Package com.hazelcast.config
Class HotRestartConfig
java.lang.Object
com.hazelcast.config.HotRestartConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public class HotRestartConfig extends Object implements IdentifiedDataSerializable
Configures the Hot Restart Persistence per Hazelcast data structure.
-
Constructor Summary
Constructors Constructor Description HotRestartConfig()
HotRestartConfig(HotRestartConfig hotRestartConfig)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getClassId()
Returns type identifier for this class.int
getFactoryId()
Returns DataSerializableFactory factory ID for this class.int
hashCode()
boolean
isEnabled()
Returns whether hot restart enabled on related data structure.boolean
isFsync()
Returns whether disk write should be followed by anfsync()
system call.void
readData(ObjectDataInput in)
Reads fields from the input streamHotRestartConfig
setEnabled(boolean enabled)
Sets whether hot restart is enabled on related data structure.HotRestartConfig
setFsync(boolean fsync)
Sets whether disk write should be followed by anfsync()
system call.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream
-
Constructor Details
-
HotRestartConfig
public HotRestartConfig() -
HotRestartConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether hot restart enabled on related data structure.- Returns:
- true if hot restart enabled, false otherwise
-
setEnabled
Sets whether hot restart is enabled on related data structure.- Returns:
- HotRestartConfig
-
isFsync
public boolean isFsync()Returns whether disk write should be followed by anfsync()
system call.- Returns:
- true if fsync is be called after disk write, false otherwise
-
setFsync
Sets whether disk write should be followed by anfsync()
system call.- Parameters:
fsync
- fsync- Returns:
- this HotRestartConfig
-
toString
-
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
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
equals
-
hashCode
public final int hashCode()
-