DataPersistenceConfig
@Deprecated public class HotRestartConfig extends Object implements IdentifiedDataSerializable
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 and Description |
---|
HotRestartConfig()
Deprecated.
|
HotRestartConfig(HotRestartConfig hotRestartConfig)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
int |
getClassId()
Deprecated.
Returns type identifier for this class.
|
int |
getFactoryId()
Deprecated.
Returns DataSerializableFactory factory ID for this class.
|
int |
hashCode()
Deprecated.
|
boolean |
isEnabled()
Deprecated.
Returns whether hot restart enabled on related data structure.
|
boolean |
isFsync()
Deprecated.
Returns whether disk write should be followed by an
fsync() system call. |
void |
readData(ObjectDataInput in)
Deprecated.
Reads fields from the input stream
|
HotRestartConfig |
setEnabled(boolean enabled)
Deprecated.
Sets whether hot restart is enabled on related data structure.
|
HotRestartConfig |
setFsync(boolean fsync)
Deprecated.
Sets whether disk write should be followed by an
fsync() system call. |
String |
toString()
Deprecated.
|
void |
writeData(ObjectDataOutput out)
Deprecated.
Writes object fields to output stream
|
public HotRestartConfig()
public HotRestartConfig(HotRestartConfig hotRestartConfig)
public boolean isEnabled()
public HotRestartConfig setEnabled(boolean enabled)
public boolean isFsync()
fsync()
system call.public HotRestartConfig setFsync(boolean fsync)
fsync()
system call.fsync
- fsyncpublic 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 © 2021 Hazelcast, Inc.. All rights reserved.