for event bus services (service proxies). Consumers receive a service proxy to use the service.
Constructor and description |
---|
EventBusService
(java.lang.Object delegate) |
Type | Name and description |
---|---|
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String address, java.lang.String itf, java.util.Map<java.lang.String, java.lang.Object> metadata) Sugar method to creates a record for this type. |
java.lang.Object |
getDelegate() |
static void |
getProxy(ServiceDiscovery discovery, java.util.Map<java.lang.String, java.lang.Object> filter, 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 void |
getProxy(ServiceDiscovery discovery, java.lang.String serviceInterface, java.lang.String proxyInterface, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler) |
static void |
getProxy(ServiceDiscovery discovery, java.util.Map<java.lang.String, java.lang.Object> filter, java.lang.String proxyClass, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler) |
static void |
getProxy(ServiceDiscovery discovery, java.lang.String itf, 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). |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Sugar method to creates a record for this type.
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 metadataLookup for a service record and if found, retrieve it and return the service object (used to consume the service). This is a convenient method to avoid explicit lookup and then retrieval of the service.
discovery
- the service discovery instancefilter
- the filter to select the serviceresultHandler
- the result handlerLookup for a service record and if found, retrieve it and return the service object (used to consume the service). This is a convenient method to avoid explicit lookup and then retrieval of the service. A filter based on the request interface is used.
discovery
- the service discovery instanceitf
- the service interfaceresultHandler
- the result handler