vertx / io.vertx.serviceproxy / ServiceProxyBuilder

ServiceProxyBuilder

open class ServiceProxyBuilder

A builder for Service Proxies which state can be reused during the builder lifecycle.

Author
Paulo Lopes

Constructors

<init>

ServiceProxyBuilder(vertx: Vertx)

Creates a builder.

Functions

build

open fun <T : Any> build(clazz: Class<T>): T

Creates a proxy to a service on the event bus.

setAddress

open fun setAddress(address: String): ServiceProxyBuilder

Set the address to use on the subsequent proxy creations or service registrations.

setOptions

open fun setOptions(options: DeliveryOptions): ServiceProxyBuilder

Set delivery options to be used during a proxy call.

setToken

open fun setToken(token: String): ServiceProxyBuilder

Set a JWT token to be used on proxy calls.