vertx / io.vertx.reactivex.ext.stomp / StompClientConnection / ack

ack

open fun ack(id: String): StompClientConnection

Sends an acknowledgement for a specific message. It means that the message has been handled and processed by the client. The id parameter is the message id received in the frame.

Parameters

id - the message id of the message to acknowledge

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

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

Sends an acknowledgement for a specific message. It means that the message has been handled and processed by the client. The id parameter is the message id received in the frame.

Parameters

id - the message id of the message to acknowledge

receiptHandler - the handler invoked when the RECEIPT frame associated with the acknowledgment has been processed by the server. The handler receives the sent frame (ACK).

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

open fun ack(id: String, txId: String): StompClientConnection

Sends an acknowledgement for the given frame. It means that the frame has been handled and processed by the client. The sent acknowledgement is part of the transaction identified by the given id.

Parameters

id - the message id of the message to acknowledge

txId - the transaction id

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

open fun ack(id: String, txId: String, receiptHandler: Handler<Frame>): StompClientConnection

Sends an acknowledgement for the given frame. It means that the frame has been handled and processed by the client. The sent acknowledgement is part of the transaction identified by the given id.

Parameters

id - the message id of the message to acknowledge

txId - the transaction id

receiptHandler - the handler invoked when the RECEIPT frame associated with the acknowledgment has been processed by the server. The handler receives the sent frame (ACK).

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