Class: ServiceReference

vertx-service-discovery-js/service_reference~ ServiceReference

Methods

cached() → {Object}

Gets the service object if already retrieved. It won't try to acquire the service object if not retrieved yet.
Source:
Returns:
the object, null if not yet retrieved
Type
Object

get() → {Object}

Gets the object to access the service. It can be a proxy, a client or whatever object. The type depends on the service type and the server itself.
Source:
Returns:
the object to access the service
Type
Object

record() → {Object}

Source:
Returns:
  • the service record.
  • Type
    Object

release()

Releases the reference. Once released, the consumer must not use the reference anymore. This method must be idempotent and defensive, as multiple call may happen.
Source: