# Module: vertx-service-discovery-js/service_discovery

### Classes

ServiceDiscovery

### Methods

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

Creates an instance of ServiceDiscovery.

##### Parameters:

Name | Type | Description
--- | --- | ---
`vertx` | Vertx | the vert.x instance
`options` | Object | the discovery options

Source:
  - vertx-service-discovery-js/service_discovery.js, line 348

##### Returns:

the created service discovery instance.

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:
  - vertx-service-discovery-js/service_discovery.js, line 365