vertx / io.vertx.rxjava.ext.stomp / StompClientConnection / commit

# commit

`open fun commit(id: String): StompClientConnection`

Commits a transaction.

### Parameters

`id` - the transaction id, must not be `null`

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun commit(id: String, receiptHandler: Handler<Frame>): StompClientConnection`

Commits a transaction.

### Parameters

`id` - the transaction id, must not be `null`

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the transaction commit has been processed by the server. The handler receives the sent frame (`COMMIT`).

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun commit(id: String, headers: MutableMap<String, String>): StompClientConnection`

Commits a transaction.

### Parameters

`id` - the transaction id, must not be `null`

`headers` - additional headers to send to the server. The `transaction` header is replaced by the value passed in the @{code id} parameter

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun commit(id: String, headers: MutableMap<String, String>, receiptHandler: Handler<Frame>): StompClientConnection`

Commits a transaction.

### Parameters

`id` - the transaction id, must not be `null`

`headers` - additional headers to send to the server. The `transaction` header is replaced by the value passed in the @{code id} parameter

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the transaction commit has been processed by the server. The handler receives the sent frame (`COMMIT`).

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection