StompFrame

Types

Link copied to clipboard
data class Abort(val headers: StompAbortHeaders) : StompFrame

An ABORT frame is a client frame used to roll back a transaction in progress.

Link copied to clipboard
data class Ack(val headers: StompAckHeaders) : StompFrame

An ACK frame is a client frame used to acknowledge consumption of a message from a subscription using client or client-individual acknowledgment. Any messages received from such a subscription will not be considered to have been consumed until the message has been acknowledged via an ACK.

Link copied to clipboard
data class Begin(val headers: StompBeginHeaders) : StompFrame

A BEGIN frame is a client frame used to start a transaction.

Link copied to clipboard
data class Commit(val headers: StompCommitHeaders) : StompFrame

A COMMIT frame is a client frame used to commit a transaction in progress.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Connect(val headers: StompConnectHeaders) : StompFrame

A CONNECT frame is a client frame used to start a STOMP session on a web socket connection.

Link copied to clipboard
data class Connected(val headers: StompConnectedHeaders) : StompFrame

A CONNECTED frame is a server frame received upon successful connection at the STOMP protocol level.

Link copied to clipboard
data class Disconnect(val headers: StompDisconnectHeaders) : StompFrame

A DISCONNECT frame is a client frame used to gracefully disconnect from the server. Waiting for a RECEIPT on DISCONNECT ensures that all previously sent messages have been received by the server.

Link copied to clipboard
data class Error(val headers: StompErrorHeaders, val body: FrameBody?) : StompFrame

An ERROR frame is a server frame sent in case of error. Receiving an ERROR frame implies that the connection should be closed and no further messages can be sent or received.

Link copied to clipboard
data class Message(val headers: StompMessageHeaders, val body: FrameBody?) : StompFrame

A MESSAGE frame is a server frame used to convey a message from a subscription to the client. A MESSAGE frame must be part of a subscription.

Link copied to clipboard
data class Nack(val headers: StompNackHeaders) : StompFrame

A NACK frame is a client frame used to tell the server that the client did not consume the message. The server can then either send the message to a different client, discard it, or put it in a dead letter queue.

Link copied to clipboard
data class Receipt(val headers: StompReceiptHeaders) : StompFrame

A RECEIPT frame is sent from the server to the client once the server has successfully processed a client frame that requests a receipt. It is expected from the server when the client frame has a receipt header.

Link copied to clipboard
data class Send(val headers: StompSendHeaders, val body: FrameBody?) : StompFrame

A SEND frame is a client frame used to send a message to a destination in the messaging system. The optional body of the SEND frame is the message to be sent.

Link copied to clipboard
data class Stomp(val headers: StompConnectHeaders) : StompFrame

A STOMP frame is a STOMP 1.2 replacement for the CONNECT frame, used to start a STOMP session on a web socket connection.

Link copied to clipboard
data class Subscribe(val headers: StompSubscribeHeaders) : StompFrame

A SUBSCRIBE frame is a client frame used to register to listen to a given destination.

Link copied to clipboard

An UNSUBSCRIBE frame is a client frame used to stop a STOMP subscription.

Properties

Link copied to clipboard
open val body: FrameBody? = null

The body of this STOMP frame.

Link copied to clipboard

The body of this frame as text.

Link copied to clipboard

The command of this STOMP frame, which is the first word of the frame.

Link copied to clipboard

The headers of this STOMP frame.