Class EventBusService
java.lang.Object
io.vertx.reactivex.servicediscovery.types.EventBusService
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<EventBusService> static final StringName of the type.static final StringUnknown type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordcreateRecord(String name, String address, String classname) Creates a record based on the parameters.static RecordcreateRecord(String name, String address, String itf, JsonObject metadata) Sugar method to creates a record for this type.booleanstatic <T> Future<T> getServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).static <T> Future<T> getServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass, JsonObject conf) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).static <T> Future<T> getServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).static <T> Future<T> getServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass, JsonObject conf) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).inthashCode()static EventBusServicestatic <T> Single<T> rxGetServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).static <T> Single<T> rxGetServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass, JsonObject conf) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).static <T> Single<T> rxGetServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).static <T> Single<T> rxGetServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass, JsonObject conf) Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).toString()
-
Field Details
-
__TYPE_ARG
-
UNKNOWN
-
TYPE
-
-
Constructor Details
-
EventBusService
-
EventBusService
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
createRecord
Sugar method to creates a record for this type.The java interface is added to the metadata in the `service.interface` key.
- Parameters:
name- the name of the service.address- the event bus address on which the service availableitf- the Java interface (name)metadata- the metadata- Returns:
- the created record
-
getServiceProxy
public static <T> Future<T> getServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filterclientClass- the client class- Returns:
- a future notified with the client
-
rxGetServiceProxy
public static <T> Single<T> rxGetServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filterclientClass- the client class- Returns:
- a future notified with the client
-
getServiceProxy
public static <T> Future<T> getServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass, JsonObject conf) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filterclientClass- the client classconf- the configuration for message delivery- Returns:
- a future notified with the client
-
rxGetServiceProxy
public static <T> Single<T> rxGetServiceProxy(ServiceDiscovery discovery, Function<Record, Boolean> filter, Class<T> clientClass, JsonObject conf) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filterclientClass- the client classconf- the configuration for message delivery- Returns:
- a future notified with the client
-
getServiceProxyWithJsonFilter
public static <T> Future<T> getServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filter as json objectclientClass- the client class- Returns:
- a future notified with the client
-
rxGetServiceProxyWithJsonFilter
public static <T> Single<T> rxGetServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filter as json objectclientClass- the client class- Returns:
- a future notified with the client
-
getServiceProxyWithJsonFilter
public static <T> Future<T> getServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass, JsonObject conf) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filter as json objectclientClass- the client classconf- the configuration for message delivery- Returns:
- a future notified with the client
-
rxGetServiceProxyWithJsonFilter
public static <T> Single<T> rxGetServiceProxyWithJsonFilter(ServiceDiscovery discovery, JsonObject filter, Class<T> clientClass, JsonObject conf) Lookup 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. This method requires to have theclientClassset with the expected set of client. This is important for usages not using Java so you can pass the expected type.- Parameters:
discovery- the service discoveryfilter- the filter as json objectclientClass- the client classconf- the configuration for message delivery- Returns:
- a future notified with the client
-
createRecord
-
newInstance
-