public class NodeInfo extends Object implements ClusterSerializable
Constructor and Description |
---|
NodeInfo() |
NodeInfo(String host,
int port,
JsonObject metadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
host() |
JsonObject |
metadata() |
int |
port() |
int |
readFromBuffer(int start,
Buffer buffer)
Method invoked when deserializing bytes to this instance.
|
String |
toString() |
void |
writeToBuffer(Buffer buffer)
Method invoked when serializing this instance.
|
public NodeInfo()
public NodeInfo(String host, int port, JsonObject metadata)
public String host()
public int port()
public JsonObject metadata()
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.