Top Description Methods
io.vertx.core.shareddata

public Interface ClusterSerializable

extends ClusterSerializable
Known Direct Subinterfaces
io.vertx.core.buffer.Buffer
Known Direct Implementers
io.vertx.core.spi.cluster.NodeInfo, io.vertx.core.spi.cluster.RegistrationInfo, io.vertx.core.json.JsonArray, io.vertx.core.json.JsonObject
Imports
io.vertx.core.buffer.Buffer

References Deprecated

ClusterSerializable is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Objects implementing this interface will be written to and read from a Buffer when:

Implementation Specification

Implementations must have a public no-argument constructor.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the position after the last serialized byte
readFromBuffer
(int
the position where to start reading the buffer
pos
,
Buffer
the Buffer where the serialized bytes must be read from
buffer
)

Redeclares io.vertx.core.shareddata.impl.ClusterSerializable.readFromBuffer.

References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

Method invoked when deserializing bytes to this instance.

public void
writeToBuffer(Buffer
the Buffer where the serialized bytes must be written to
buffer
)

Redeclares io.vertx.core.shareddata.impl.ClusterSerializable.writeToBuffer.

References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

Method invoked when serializing this instance.

Method Detail

readFromBufferback to summary
public int readFromBuffer(int pos, Buffer buffer)

Redeclares io.vertx.core.shareddata.impl.ClusterSerializable.readFromBuffer.

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Method invoked when deserializing bytes to this instance.

Parameters
pos:int

the position where to start reading the buffer

buffer:Buffer

the Buffer where the serialized bytes must be read from

Returns:int

the position after the last serialized byte

Annotations
@Override
writeToBufferback to summary
public void writeToBuffer(Buffer buffer)

Redeclares io.vertx.core.shareddata.impl.ClusterSerializable.writeToBuffer.

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Method invoked when serializing this instance.

Parameters
buffer:Buffer

the Buffer where the serialized bytes must be written to

Annotations
@Override