Module: vertx-service-discovery-js/message_source

Classes

MessageSource

Methods

(static) MessageSource.createRecord(name, address) → {Object}

Same as MessageSource#createRecord without additional metadata, and no type for the payload.
Parameters:
Name Type Description
name string the name of the service
address string the address on which the data is sent.
Source:
Returns:
the created record
Type
Object

(static) MessageSource.getConsumer(discovery, filter, resultHandler)

Convenient method that looks for a message source and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails.
Parameters:
Name Type Description
discovery ServiceDiscovery The service discovery instance
filter function The filter, must not be null
resultHandler function The result handler
Source: