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)
ClusterSerializablewriteToBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializablebuffer - the Buffer where the serialized bytes must be written topublic int readFromBuffer(int start,
Buffer buffer)
ClusterSerializablereadFromBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializablestart - the position where to start reading the bufferbuffer - the Buffer where the serialized bytes must be read fromCopyright © 2023 Eclipse. All rights reserved.