Builder

class Builder

How a WowClient is built: its mode is named (service or user); every other setting has a default.

Functions

Link copied to clipboard

The client; refused until its mode is named (service or user): a client of no identity calls no peer.

Link copied to clipboard

The class loader whose api jars carry the peers' contracts: the thread's context class loader by default.

Link copied to clipboard

connectTimeout of a java.time.Duration, for Java callers.

How long the default client takes to connect: 2 seconds by default.

Link copied to clipboard

The peers' contracts, which name their commands and models: those on classLoader by default; Wow's host gives the ones its node read.

Link copied to clipboard

Where each context's service is (none by default: every call fails until it is given).

Link copied to clipboard

The JDK client to send with; by default one of HTTP/1.1 that connects within connectTimeout.

Link copied to clipboard

The ids of new request ids and root commands: UUIDs of version 7 by default.

Link copied to clipboard

The peer contexts described by their Manifest alone (none by default), called without their api jars: each takes NamedCommands only, which its GET /wow/manifest must declare.

Link copied to clipboard

How a problem a retry may get past is retried (RetryPolicy.DEFAULT by default).

Link copied to clipboard

Service mode (ClientMode.Service) as the service named name, the spring.application.name the peers list it by (Wow-Service).

Link copied to clipboard

timeout of a java.time.Duration, for Java callers.

How long a request may take until the peer answers it (a stream's head): 30 seconds by default, longer for a command whose wait is longer.

fun timeout(context: String, timeout: Duration): WowClient.Builder

How long a request to the peer context may take until it answers, over timeout.

Link copied to clipboard

User mode (ClientMode.User), forwarding the end user's credential.