public class BackupHeartbeatMessage extends Object implements io.atomix.catalyst.serializer.CatalystSerializable
Constructor and Description |
---|
BackupHeartbeatMessage()
Empty constructor as per deserialization requirement.
|
BackupHeartbeatMessage(BackupStatus backupStatus)
Creates a heartbeat message with given backup status.
|
Modifier and Type | Method and Description |
---|---|
BackupStatus |
getBackupStatus() |
void |
readObject(io.atomix.catalyst.buffer.BufferInput<?> bufferInput,
io.atomix.catalyst.serializer.Serializer serializer) |
String |
toString() |
void |
writeObject(io.atomix.catalyst.buffer.BufferOutput<?> bufferOutput,
io.atomix.catalyst.serializer.Serializer serializer) |
public BackupHeartbeatMessage()
public BackupHeartbeatMessage(@Nullable BackupStatus backupStatus)
backupStatus
- the backup statuspublic BackupStatus getBackupStatus()
BackupStatus
in this heartbeatpublic void writeObject(io.atomix.catalyst.buffer.BufferOutput<?> bufferOutput, io.atomix.catalyst.serializer.Serializer serializer)
writeObject
in interface io.atomix.catalyst.serializer.CatalystSerializable
public void readObject(io.atomix.catalyst.buffer.BufferInput<?> bufferInput, io.atomix.catalyst.serializer.Serializer serializer)
readObject
in interface io.atomix.catalyst.serializer.CatalystSerializable
Copyright © 2023. All Rights Reserved.