vertx / io.vertx.ext.stomp / StompClientConnection / send

send

abstract fun send(headers: MutableMap<String, String>, body: Buffer): StompClientConnection

Sends a SEND frame to the server.

Parameters

headers - the headers, must not be null

body - the body, may be null

Return
the current StompClientConnection

abstract fun send(headers: MutableMap<String, String>, body: Buffer, receiptHandler: Handler<Frame>): StompClientConnection

Sends a SEND frame to the server.

Parameters

headers - the headers, must not be null

body - the body, may be null

receiptHandler - the handler invoked when the RECEIPT frame associated with the sent frame has been received. The handler receives the sent frame.

Return
the current StompClientConnection

abstract fun send(destination: String, body: Buffer): StompClientConnection

Sends a SEND frame to the server to the given destination. The message does not have any other header.

Parameters

destination - the destination, must not be null

body - the body, may be null

Return
the current StompClientConnection

abstract fun send(destination: String, body: Buffer, receiptHandler: Handler<Frame>): StompClientConnection

Sends a SEND frame to the server to the given destination. The message does not have any other header.

Parameters

destination - the destination, must not be null

body - the body, may be null

receiptHandler - the handler invoked when the RECEIPT frame associated with the sent frame has been received. The handler receives the sent frame.

Return
the current StompClientConnection

abstract fun send(frame: Frame): StompClientConnection

Sends the given frame to the server.

Parameters

frame - the frame

Return
the current StompClientConnection

abstract fun send(frame: Frame, receiptHandler: Handler<Frame>): StompClientConnection

Sends the given frame to the server.

Parameters

frame - the frame

receiptHandler - the handler invoked when the RECEIPT frame associated with the sent frame has been received. The handler receives the sent frame.

Return
the current StompClientConnection

abstract fun send(destination: String, headers: MutableMap<String, String>, body: Buffer): StompClientConnection

Sends a SEND frame to the server to the given destination.

Parameters

destination - the destination, must not be null

body - the body, may be null

headers - the header. The destination header is replaced by the value given to the destination parameter

Return
the current StompClientConnection

abstract fun send(destination: String, headers: MutableMap<String, String>, body: Buffer, receiptHandler: Handler<Frame>): StompClientConnection

Sends a SEND frame to the server to the given destination.

Parameters

destination - the destination, must not be null

body - the body, may be null

headers - the header. The destination header is replaced by the value given to the destination parameter

receiptHandler - the handler invoked when the RECEIPT frame associated with the sent frame has been received. The handler receives the sent frame.

Return
the current StompClientConnection