vertx / io.vertx.serviceproxy / ServiceBinder

# ServiceBinder

`open class ServiceBinder`

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

Author
Paulo Lopes

### Constructors

<init> | `ServiceBinder(vertx: Vertx)` Creates a factory.

### Properties

DEFAULT_CONNECTION_TIMEOUT | `static val DEFAULT_CONNECTION_TIMEOUT: Long`

### Functions

addInterceptor | `open fun addInterceptor(interceptor: Function<Message<JsonObject>, Future<Message<JsonObject>>>): ServiceBinder`
register | `open fun <T : Any> register(clazz: Class<T>, service: T): MessageConsumer<JsonObject>` Registers a service on the event bus.
setAddress | `open fun setAddress(address: String): ServiceBinder` Set the address to use on the subsequent proxy creations or service registrations.
setTimeoutSeconds | `open fun setTimeoutSeconds(timeoutSeconds: Long): ServiceBinder` Set the default timeout in seconds while waiting for a reply.
setTopLevel | `open fun setTopLevel(topLevel: Boolean): ServiceBinder` Set if the services to create are a top level services.
unregister | `open fun unregister(consumer: MessageConsumer<JsonObject>): Unit` Unregisters a published service.