Class MessageSource
- java.lang.Object
-
- io.vertx.rxjava.servicediscovery.types.MessageSource
-
public class MessageSource extends Object
Service type for data producer. Providers are publishing data to a specific event bus address. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MessageSource>__TYPE_ARGstatic StringTYPEstatic StringUNKNOWNUnknown type.
-
Constructor Summary
Constructors Constructor Description MessageSource(io.vertx.servicediscovery.types.MessageSource delegate)MessageSource(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.vertx.servicediscovery.RecordcreateRecord(String name, String address)Same ascreateRecord(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.RecordcreateRecord(String name, String address, String type)Same ascreateRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject)without additional metadata.static io.vertx.servicediscovery.RecordcreateRecord(String name, String address, String type, io.vertx.core.json.JsonObject metadata)Create a record representing a data producer.booleanequals(Object o)static <T> voidgetConsumer(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)Convenient method that looks for a message source and provides the configured .static <T> voidgetConsumer(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 .static <T> voidgetConsumer(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)Convenient method that looks for a message source and provides the configured .static <T> voidgetConsumer(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 .io.vertx.servicediscovery.types.MessageSourcegetDelegate()inthashCode()static MessageSourcenewInstance(io.vertx.servicediscovery.types.MessageSource arg)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 .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 .StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MessageSource> __TYPE_ARG
-
UNKNOWN
public static final String UNKNOWN
Unknown type.- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageSource
public MessageSource(io.vertx.servicediscovery.types.MessageSource delegate)
-
MessageSource
public MessageSource(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.servicediscovery.types.MessageSource getDelegate()
-
createRecord
public 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.- Parameters:
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 metadata- Returns:
- the created record
-
createRecord
public static io.vertx.servicediscovery.Record createRecord(String name, String address, String type)
Same ascreateRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject)without additional metadata.- Parameters:
name- the name of the serviceaddress- the address on which the data is senttype- the type of payload- Returns:
- the created record
-
createRecord
public static io.vertx.servicediscovery.Record createRecord(String name, String address)
Same ascreateRecord(java.lang.String, java.lang.String, java.lang.String, io.vertx.core.json.JsonObject)without additional metadata, and no type for the payload.- Parameters:
name- the name of the serviceaddress- the address on which the data is sent.- Returns:
- the created record
-
getConsumer
public 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 . The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery- The service discovery instancefilter- The filter, optionalresultHandler- The result handler
-
getConsumer
public static <T> void getConsumer(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
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:
discovery- The service discovery instancefilter- The filter, optional
-
rxGetConsumer
public 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 . The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery- The service discovery instancefilter- The filter, optional- Returns:
-
getConsumer
public 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 . The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery- The service discovery instancefilter- The filter, must not benullresultHandler- The result handler
-
getConsumer
public static <T> void getConsumer(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
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:
discovery- The service discovery instancefilter- The filter, must not benull
-
rxGetConsumer
public 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 . The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery- The service discovery instancefilter- The filter, must not benull- Returns:
-
newInstance
public static MessageSource newInstance(io.vertx.servicediscovery.types.MessageSource arg)
-
-