vertx / io.vertx.rxjava.servicediscovery.types / EventBusService / createRecord

# createRecord

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

Sugar method to creates a record for this type.

The java interface is added to the metadata in the `service.interface` key.

### Parameters

`name` - the name of the service.

`address` - the event bus address on which the service available

`itf` - the Java interface (name)

`metadata` - the metadata

Return
the created record

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

Creates a record based on the parameters.

### Parameters

`name` - the service name

`address` - the address

`classname` - the payload class

Return
the record