Message

data class Message(val msgId: Long, val readCt: Int, val enqueuedAt: Instant, val vt: Instant, val message: String, val headers: Map<String, String>)(source)

Represents a message in a queue system.

Constructors

Link copied to clipboard
constructor(msgId: Long, readCt: Int, enqueuedAt: Instant, vt: Instant, message: String, headers: Map<String, String>)

Properties

Link copied to clipboard

The timestamp when the message was added to the queue.

Link copied to clipboard

A map containing metadata key-value pairs associated with the message, which will be converted to JSON during processing.

Link copied to clipboard

The content of the message, expected to be in valid JSON format.

Link copied to clipboard
val msgId: Long

Unique identifier for the message.

Link copied to clipboard
val readCt: Int

Indicates how many times the message has been read.

Link copied to clipboard
val vt: Instant

The visibility timeout of the message, indicating when it becomes visible for processing.