| Constructor and Description |
|---|
MessageSource(MessageSource delegate) |
| Modifier and Type | Method and Description |
|---|---|
static Record |
createRecord(String name,
String address)
Same as
createRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject) without additional metadata, and no type for
the payload. |
static Record |
createRecord(String name,
String address,
String type)
Same as
createRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject) without additional metadata. |
static Record |
createRecord(String name,
String address,
String type,
JsonObject metadata)
Create a record representing a data producer.
|
static <T> void |
getConsumer(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured .
|
static <T> Observable<MessageConsumer<T>> |
getConsumerObservable(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a message source and provides the configured .
|
Object |
getDelegate() |
static MessageSource |
newInstance(MessageSource arg) |
public MessageSource(MessageSource delegate)
public Object getDelegate()
public static Record createRecord(String name, String address, String type, JsonObject metadata)
name - the name of the serviceaddress - the address on which the data is senttype - the type of payload (fully qualified name of the class)metadata - additional metadatapublic static Record createRecord(String name, String address, String type)
createRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject) without additional metadata.name - the name of the serviceaddress - the address on which the data is senttype - the type of payloadpublic static Record createRecord(String name, String address)
createRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject) without additional metadata, and no type for
the payload.name - the name of the serviceaddress - the address on which the data is sent.public static <T> void getConsumer(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<MessageConsumer<T>>> resultHandler)
discovery - The service discovery instancefilter - The filter, optionalresultHandler - The result handlerpublic static <T> Observable<MessageConsumer<T>> getConsumerObservable(ServiceDiscovery discovery, JsonObject filter)
discovery - The service discovery instancefilter - The filter, optionalpublic static MessageSource newInstance(MessageSource arg)
Copyright © 2016. All rights reserved.