Builder

public final class Builder

The builder for the client.

Functions

Link copied to clipboard
public Client build()
Creates a new instance of the client.
Link copied to clipboard
public Client.Builder forTenant(TenantId tenant)
Assigns the tenant for the client connection to be built.
Link copied to clipboard
Assigns a default handler for an error occurred on the server-side (such as validation error) in response to a message posted by the client.
Link copied to clipboard
Assigns a default handler for streaming errors for the asynchronous requests initiated by the client.
Link copied to clipboard
public Client.Builder shutdownTimeout(long timeout, TimeUnit timeUnit)
Sets the timeout for the shutdown operation of the client.
Link copied to clipboard
public Client.Builder shutdownTimout(long timeout, TimeUnit timeUnit)
Sets the timeout for the shutdown operation of the client.
Link copied to clipboard
public Client.Builder withGuestId(UserId guestUser)
public Client.Builder withGuestId(String guestUser)
Assigns the ID of the user for performing requests on behalf of non-logged in user.