Package com.hazelcast.config
Class HotRestartConfig
java.lang.Object
com.hazelcast.config.HotRestartConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
@Deprecated(since="5.0")
public class HotRestartConfig
extends Object
implements IdentifiedDataSerializable
Deprecated.
Configures the Hot Restart Persistence per Hazelcast data structure.
Note: If either, but not both, data-persistence (
Note: If either, but not both, data-persistence (
DataPersistenceConfig) or
hot-restart (HotRestartConfig) is enabled,
Hazelcast will use the configuration of the enabled element. If both are
enabled, Hazelcast will use the data-persistence (DataPersistenceConfig)
configuration. hot-restart element (and thus HotRestartConfig)
will be removed in a future release.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.intDeprecated.Returns type identifier for this class.intDeprecated.Returns DataSerializableFactory factory ID for this class.final inthashCode()Deprecated.booleanDeprecated.Returns whether hot restart enabled on related data structure.booleanisFsync()Deprecated.Returns whether disk write should be followed by anfsync()system call.voidDeprecated.Reads fields from the input streamsetEnabled(boolean enabled) Deprecated.Sets whether hot restart is enabled on related data structure.setFsync(boolean fsync) Deprecated.Sets whether disk write should be followed by anfsync()system call.toString()Deprecated.voidDeprecated.Writes object fields to output stream
-
Constructor Details
-
HotRestartConfig
public HotRestartConfig()Deprecated. -
HotRestartConfig
Deprecated.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Deprecated.Returns whether hot restart enabled on related data structure.- Returns:
- true if hot restart enabled, false otherwise
-
setEnabled
Deprecated.Sets whether hot restart is enabled on related data structure.- Returns:
- HotRestartConfig
-
isFsync
public boolean isFsync()Deprecated.Returns whether disk write should be followed by anfsync()system call.- Returns:
- true if fsync is be called after disk write, false otherwise
-
setFsync
Deprecated.Sets whether disk write should be followed by anfsync()system call.- Returns:
- this HotRestartConfig
-
toString
Deprecated. -
getFactoryId
public int getFactoryId()Deprecated.Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Deprecated.Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
writeData
Deprecated.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
Deprecated.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.
-
equals
Deprecated. -
hashCode
public final int hashCode()Deprecated.
-
DataPersistenceConfig