Module: vertx-service-discovery-js/service_discovery

Classes

ServiceDiscovery

Methods

(static) ServiceDiscovery.create(vertx, options, completionHandler) → {ServiceDiscovery}

Creates an instance of ServiceDiscovery.
Parameters:
Name Type Description
vertx Vertx the vert.x instance
options Object the discovery options
completionHandler function completion handler called when the service discovery has been initialized. This includes the initialization of the service importer registered from the SPI.
Source:
Returns:
the created instance, should not be used to retrieve services before the invocation of the completion handler.
Type
ServiceDiscovery

(static) ServiceDiscovery.releaseServiceObject(discovery, svcObject)

Release the service object retrieved using get methods from the service type interface. It searches for the reference associated with the given object and release it.
Parameters:
Name Type Description
discovery ServiceDiscovery the service discovery
svcObject Object the service object
Source: