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() |
GrpcMessagingConnection |
getConnection() |
void |
readObject(io.atomix.catalyst.buffer.BufferInput<?> bufferInput,
io.atomix.catalyst.serializer.Serializer serializer) |
void |
setConnection(GrpcMessagingConnection 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(GrpcMessagingConnection connection)
connection
- connection from which this message is coming frompublic GrpcMessagingConnection 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.