public class MessageSourceImpl extends Object implements MessageSource
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
UNKNOWN| Constructor and Description |
|---|
MessageSourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ServiceReference |
get(Vertx vertx,
ServiceDiscovery discovery,
Record record,
JsonObject configuration)
Gets the `service` for the given record.
|
String |
name() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRecord, createRecord, createRecord, createRecord, createRecord, getConsumer, getConsumerpublic static final String TYPE
public String name()
name in interface ServiceTypepublic ServiceReference get(Vertx vertx, ServiceDiscovery discovery, Record record, JsonObject configuration)
ServiceTypeServiceReference, the consumer can start using the service and release it.get in interface ServiceTypevertx - the vert.x instancediscovery - the discovery instance requesting the referencerecord - the recordconfiguration - some optional configuration, maybe be null or emptyServiceReferenceCopyright © 2020. All rights reserved.