Service type for data producer. Providers are publishing data to a specific event bus address.
Constructor and description |
---|
MessageSource
(java.lang.Object delegate) |
Type | Name and description |
---|---|
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String address, java.lang.String type, java.util.Map<java.lang.String, java.lang.Object> metadata) Create a record representing a data producer. |
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String address, java.lang.String type) Same as MessageSource.createRecord without additional metadata. |
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String address) Same as MessageSource.createRecord without additional metadata, and no type for the payload. |
static void |
getConsumer(ServiceDiscovery discovery, java.util.Map<java.lang.String, java.lang.Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<MessageConsumer<T>>> resultHandler) Convenient method that looks for a message source and provides the configured . |
java.lang.Object |
getDelegate() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a record representing a data producer.
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 metadataSame as MessageSource.createRecord without additional metadata.
name
- the name of the serviceaddress
- the address on which the data is senttype
- the type of payloadSame as MessageSource.createRecord without additional metadata, and no type for the payload.
name
- the name of the serviceaddress
- the address on which the data is sent.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.
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handler