vertx / io.vertx.reactivex.servicediscovery.types / MessageSource / createRecord

createRecord

open static fun createRecord(name: String, address: String, type: String, metadata: JsonObject): Record

Create a record representing a data producer.

Parameters

name - the name of the service

address - the address on which the data is sent

type - the type of payload (fully qualified name of the class)

metadata - additional metadata

Return
the created record

open static fun createRecord(name: String, address: String, type: String): Record

Same as io.vertx.reactivex.servicediscovery.types.MessageSource#createRecord without additional metadata.

Parameters

name - the name of the service

address - the address on which the data is sent

type - the type of payload

Return
the created record

open static fun createRecord(name: String, address: String): Record

Same as io.vertx.reactivex.servicediscovery.types.MessageSource#createRecord without additional metadata, and no type for the payload.

Parameters

name - the name of the service

address - the address on which the data is sent.

Return
the created record