open class ServiceBinder
A binder for Service Proxies which state can be reused during the binder lifecycle.
Author
Paulo Lopes
ServiceBinder(vertx: Vertx)
Creates a factory. |
static val DEFAULT_CONNECTION_TIMEOUT: Long |
open fun addInterceptor(interceptor: Function<Message<JsonObject>, Future<Message<JsonObject>>>): ServiceBinder |
|
open fun <T : Any> register(clazz: Class<T>, service: T): MessageConsumer<JsonObject>
Registers a service on the event bus. |
|
open fun setAddress(address: String): ServiceBinder
Set the address to use on the subsequent proxy creations or service registrations. |
|
open fun setTimeoutSeconds(timeoutSeconds: Long): ServiceBinder
Set the default timeout in seconds while waiting for a reply. |
|
open fun setTopLevel(topLevel: Boolean): ServiceBinder
Set if the services to create are a top level services. |
|
open fun unregister(consumer: MessageConsumer<JsonObject>): Unit
Unregisters a published service. |