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

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

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

fromNetWithNetworkKey

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

fromNetWithVertx

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

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