public class HotRestartConfig extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
HotRestartConfig() |
HotRestartConfig(HotRestartConfig hotRestartConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier 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 an
fsync() system call. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
HotRestartConfig |
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 an
fsync() system call. |
String |
toString() |
void |
writeData(ObjectDataOutput out)
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 getId()
IdentifiedDataSerializable
getId
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.