| Constructor and Description |
|---|
EventBusService(EventBusService delegate) |
| Modifier and Type | Method and Description |
|---|---|
static Record |
createRecord(String name,
String address,
String itf,
JsonObject metadata)
Sugar method to creates a record for this type.
|
Object |
getDelegate() |
static <T> void |
getProxy(ServiceDiscovery discovery,
JsonObject filter,
Handler<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> void |
getProxy(ServiceDiscovery discovery,
JsonObject filter,
String proxyClass,
Handler<AsyncResult<T>> resultHandler) |
static <T> void |
getProxy(ServiceDiscovery discovery,
String itf,
Handler<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> void |
getProxy(ServiceDiscovery discovery,
String serviceInterface,
String proxyInterface,
Handler<AsyncResult<T>> resultHandler) |
static <T> Observable<T> |
getProxyObservable(ServiceDiscovery discovery,
JsonObject filter)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> Observable<T> |
getProxyObservable(ServiceDiscovery discovery,
JsonObject filter,
String proxyClass) |
static <T> Observable<T> |
getProxyObservable(ServiceDiscovery discovery,
String itf)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> Observable<T> |
getProxyObservable(ServiceDiscovery discovery,
String serviceInterface,
String proxyInterface) |
static EventBusService |
newInstance(EventBusService arg) |
public EventBusService(EventBusService delegate)
public Object getDelegate()
public static Record createRecord(String name, String address, String itf, 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> void getProxy(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<T>> resultHandler)
discovery - the service discovery instancefilter - the filter to select the serviceresultHandler - the result handlerpublic static <T> Observable<T> getProxyObservable(ServiceDiscovery discovery, JsonObject filter)
discovery - the service discovery instancefilter - the filter to select the servicepublic static <T> void getProxy(ServiceDiscovery discovery, String serviceInterface, String proxyInterface, Handler<AsyncResult<T>> resultHandler)
public static <T> Observable<T> getProxyObservable(ServiceDiscovery discovery, String serviceInterface, String proxyInterface)
public static <T> void getProxy(ServiceDiscovery discovery, JsonObject filter, String proxyClass, Handler<AsyncResult<T>> resultHandler)
public static <T> Observable<T> getProxyObservable(ServiceDiscovery discovery, JsonObject filter, String proxyClass)
public static <T> void getProxy(ServiceDiscovery discovery, String itf, Handler<AsyncResult<T>> resultHandler)
discovery - the service discovery instanceitf - the service interfaceresultHandler - the result handlerpublic static <T> Observable<T> getProxyObservable(ServiceDiscovery discovery, String itf)
discovery - the service discovery instanceitf - the service interfacepublic static EventBusService newInstance(EventBusService arg)
Copyright © 2016. All rights reserved.