public class RegistrationInfo extends Object implements ClusterSerializable
Constructor and Description |
---|
RegistrationInfo() |
RegistrationInfo(String nodeId,
long seq,
boolean localOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
localOnly() |
String |
nodeId() |
int |
readFromBuffer(int start,
Buffer buffer)
Method invoked when deserializing bytes to this instance.
|
long |
seq() |
String |
toString() |
void |
writeToBuffer(Buffer buffer)
Method invoked when serializing this instance.
|
public RegistrationInfo()
public RegistrationInfo(String nodeId, long seq, boolean localOnly)
public String nodeId()
public long seq()
public boolean localOnly()
public void writeToBuffer(Buffer buffer)
ClusterSerializable
writeToBuffer
in interface io.vertx.core.shareddata.impl.ClusterSerializable
buffer
- the Buffer
where the serialized bytes must be written topublic int readFromBuffer(int start, Buffer buffer)
ClusterSerializable
readFromBuffer
in interface io.vertx.core.shareddata.impl.ClusterSerializable
start
- the position where to start reading the buffer
buffer
- the Buffer
where the serialized bytes must be read fromCopyright © 2023 Eclipse. All rights reserved.