Package-level declarations
Types
Link copied to clipboard
PgMqClient is a client for interfacing with the pgmq system, providing various messaging queue operations. This client makes use of PostgreSQL as a message queue backend.
Link copied to clipboard
class PgMqConsumer(pgmq: PgMqClient, options: PgMqConsumer.Options, onMessage: suspend (Message) -> Unit, onFaiToRead: suspend (Throwable) -> Unit = {}, onFailToProcess: suspend (Throwable) -> Unit = {}, onFaiToAck: suspend (Throwable) -> Unit = {}, onFaiToNack: suspend (Throwable) -> Unit = {})
PgMqConsumer is responsible for consuming messages from a PostgreSQL-based message queue (PgMq). It provides configurable options for queue management and handles message processing, acknowledging, and retrying logic.
Link copied to clipboard
Adapter interface for interacting with PostgreSQL's message queue feature.
Link copied to clipboard
data class QueueRecord(val name: String, val partitioned: Boolean, val unlogged: Boolean, val createdAt: Instant)
Represents a record of a queue in the system, which holds metadata about the queue's configuration and creation time.