public class ServiceProxyBuilder extends Object
Constructor and Description |
---|
ServiceProxyBuilder(Vertx vertx)
Creates a builder.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
build(Class<T> clazz)
Creates a proxy to a service on the event bus.
|
ServiceProxyBuilder |
setAddress(String address)
Set the address to use on the subsequent proxy creations or service registrations.
|
ServiceProxyBuilder |
setOptions(DeliveryOptions options)
Set delivery options to be used during a proxy call.
|
ServiceProxyBuilder |
setToken(String token)
Set a JWT token to be used on proxy calls.
|
public ServiceProxyBuilder(Vertx vertx)
vertx
- a non null instance of vertx.public ServiceProxyBuilder setAddress(String address)
address
- an eventbus addresspublic ServiceProxyBuilder setToken(String token)
token
- a JWT tokenpublic ServiceProxyBuilder setOptions(DeliveryOptions options)
options
- delivery optionspublic <T> T build(Class<T> clazz)
T
- the type of the service interfaceclazz
- the service class (interface)Copyright © 2021 Eclipse. All rights reserved.