AbstractPgmqEventHandler
abstract class AbstractPgmqEventHandler(pgmq: Pgmq, queue: PgmqClient.Queue, options: PgmqConsumer.Options = DEFAULT_OPTIONS, defaultUser: Principal? = null) : Component(source)
Properties
Functions
Link copied to clipboard
context(_: ExecContext, _: QueryExecutor)
suspend fun archive(message: Message): EitherThrowable<Boolean>
suspend fun archive(message: Message): EitherThrowable<Boolean>
context(ec: ExecContext, _: QueryExecutor)
suspend fun archive(msgId: Long): EitherThrowable<Boolean>
suspend fun archive(msgId: Long): EitherThrowable<Boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
context(ec: ExecContext, _: QueryExecutor)
suspend fun send(message: String, headers: Map<String, String> = emptyMap(), delay: Duration = 0.seconds): EitherThrowable<Long>
suspend fun send(message: String, headers: Map<String, String> = emptyMap(), delay: Duration = 0.seconds): EitherThrowable<Long>
context(ec: ExecContext, _: QueryExecutor)
suspend fun send(headers: Map<String, String> = emptyMap(), delay: Duration = 0.seconds, supplier: () -> String): EitherThrowable<Long>
suspend fun send(headers: Map<String, String> = emptyMap(), delay: Duration = 0.seconds, supplier: () -> String): EitherThrowable<Long>