public class BackupHandshakeMessage extends Object implements io.atomix.catalyst.serializer.CatalystSerializable
Constructor and Description |
---|
BackupHandshakeMessage()
Empty constructor as per deserialization requirement.
|
BackupHandshakeMessage(String hostname)
Creates a handshake message.
|
Modifier and Type | Method and Description |
---|---|
String |
getBackupWorkerHostname() |
io.atomix.catalyst.transport.Connection |
getConnection() |
void |
readObject(io.atomix.catalyst.buffer.BufferInput<?> bufferInput,
io.atomix.catalyst.serializer.Serializer serializer) |
void |
setConnection(io.atomix.catalyst.transport.Connection connection) |
String |
toString() |
void |
writeObject(io.atomix.catalyst.buffer.BufferOutput<?> bufferOutput,
io.atomix.catalyst.serializer.Serializer serializer) |
public BackupHandshakeMessage()
public BackupHandshakeMessage(String hostname)
hostname
- backup-worker hostnamepublic String getBackupWorkerHostname()
public void setConnection(io.atomix.catalyst.transport.Connection connection)
connection
- connection from which this message is coming frompublic io.atomix.catalyst.transport.Connection getConnection()
public 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.