scuttlebutt-client-lib / org.apache.tuweni.scuttlebutt.lib / ScuttlebuttClientFactory

ScuttlebuttClientFactory

class ScuttlebuttClientFactory (source)

A factory for constructing a new instance of ScuttlebuttClient with the given configuration parameters

Properties

DEFAULT_NETWORK

static var DEFAULT_NETWORK: Bytes32!

Functions

defaultNetwork

static fun defaultNetwork(): Bytes32!

fromNet

Creates a scuttllebutt client by connecting with the given host, port and keypair

static fun fromNet(mapper: ObjectMapper!, host: String!, port: Int, keyPair: KeyPair!): AsyncResult<ScuttlebuttClient!>!

fromNetWithNetworkKey

static fun fromNetWithNetworkKey(vertx: Vertx!, host: String!, port: Int, keyPair: KeyPair!, networkIdentifier: Bytes32!, objectMapper: ObjectMapper!): AsyncResult<ScuttlebuttClient!>!

fromNetWithVertx

Creates a scuttllebutt client by connecting with the given host, port and keypair using the given vertx instance.

static fun fromNetWithVertx(mapper: ObjectMapper!, vertx: Vertx!, host: String!, port: Int, keyPair: KeyPair!): AsyncResult<ScuttlebuttClient!>!