public class EventBusService extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<EventBusService> |
__TYPE_ARG |
static String |
TYPE
Name of the type.
|
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
EventBusService(io.vertx.servicediscovery.types.EventBusService delegate) |
Modifier and Type | Method and Description |
---|---|
static io.vertx.servicediscovery.Record |
createRecord(String name,
String address,
String classname)
Creates a record based on the parameters.
|
static io.vertx.servicediscovery.Record |
createRecord(String name,
String address,
String itf,
io.vertx.core.json.JsonObject metadata)
Sugar method to creates a record for this type.
|
boolean |
equals(Object o) |
io.vertx.servicediscovery.types.EventBusService |
getDelegate() |
static <T> T |
getServiceProxy(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
Class<T> clientClass,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> T |
getServiceProxyWithJsonFilter(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
Class<T> clientClass,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
int |
hashCode() |
static EventBusService |
newInstance(io.vertx.servicediscovery.types.EventBusService arg) |
String |
toString() |
public static final TypeArg<EventBusService> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public EventBusService(io.vertx.servicediscovery.types.EventBusService delegate)
public io.vertx.servicediscovery.types.EventBusService getDelegate()
public static io.vertx.servicediscovery.Record createRecord(String name, String address, String itf, io.vertx.core.json.JsonObject metadata)
The java interface is added to the metadata in the `service.interface` key.
name
- the name of the service.address
- the event bus address on which the service availableitf
- the Java interface (name)metadata
- the metadatapublic static <T> T getServiceProxy(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, Class<T> clientClass, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler)
clientClass
set with the expected set of client. This is important for usages not using Java so
you can pass the expected type.discovery
- the service discoveryfilter
- the filterclientClass
- the client classresultHandler
- the result handlernull
- do not usepublic static <T> T getServiceProxyWithJsonFilter(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, Class<T> clientClass, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler)
clientClass
set with the expected set of client. This is important for usages not using Java so
you can pass the expected type.discovery
- the service discoveryfilter
- the filter as json objectclientClass
- the client classresultHandler
- the result handlernull
- do not usepublic static io.vertx.servicediscovery.Record createRecord(String name, String address, String classname)
name
- the service nameaddress
- the addressclassname
- the payload classpublic static EventBusService newInstance(io.vertx.servicediscovery.types.EventBusService arg)
Copyright © 2019 Eclipse. All rights reserved.