public class MessageSource extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<MessageSource> |
__TYPE_ARG |
static String |
TYPE |
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
MessageSource(io.vertx.servicediscovery.types.MessageSource delegate) |
Modifier and Type | Method and Description |
---|---|
static io.vertx.servicediscovery.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 io.vertx.servicediscovery.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 io.vertx.servicediscovery.Record |
createRecord(String name,
String address,
String type,
io.vertx.core.json.JsonObject metadata)
Create a record representing a data producer.
|
boolean |
equals(Object o) |
static <T> void |
getConsumer(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured .
|
static <T> void |
getConsumer(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured .
|
io.vertx.servicediscovery.types.MessageSource |
getDelegate() |
int |
hashCode() |
static MessageSource |
newInstance(io.vertx.servicediscovery.types.MessageSource arg) |
static <T> rx.Single<MessageConsumer<T>> |
rxGetConsumer(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a message source and provides the configured .
|
static <T> rx.Single<MessageConsumer<T>> |
rxGetConsumer(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Convenient method that looks for a message source and provides the configured .
|
String |
toString() |
public static final TypeArg<MessageSource> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public MessageSource(io.vertx.servicediscovery.types.MessageSource delegate)
public io.vertx.servicediscovery.types.MessageSource getDelegate()
public static io.vertx.servicediscovery.Record createRecord(String name, String address, String type, io.vertx.core.json.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 io.vertx.servicediscovery.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 io.vertx.servicediscovery.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, io.vertx.core.json.JsonObject filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<MessageConsumer<T>>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handlerpublic static <T> rx.Single<MessageConsumer<T>> rxGetConsumer(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static <T> void getConsumer(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<MessageConsumer<T>>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, must not be null
resultHandler
- The result handlerpublic static <T> rx.Single<MessageConsumer<T>> rxGetConsumer(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filter, must not be null
public static MessageSource newInstance(io.vertx.servicediscovery.types.MessageSource arg)
Copyright © 2019 Eclipse. All rights reserved.