class VertxGossipServer
(source)
Vert.x implementation of the plumtree gossip. This implementation is provided as an example and relies on a simplistic JSON serialization of messages.
VertxGossipServer(vertx: Vertx, networkInterface: String, port: Int, messageHashing: MessageHashing, peerRepository: PeerRepository, payloadListener: MessageListener, payloadValidator: MessageValidator?, peerPruningFunction: PeerPruning?, graftDelay: Int, lazyQueueInterval: Int) |
fun connectTo(host: String, port: Int): AsyncCompletion |
|
fun gossip(attributes: String, message: Bytes): Unit
Gossip a message to all known peers. |
|
fun start(): AsyncCompletion |
|
fun stop(): AsyncCompletion |