com.katanox.tabour.sqs.config.SqsConsumer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A Kotlin library to consume and produce SQS messages
The newest version!
package com.katanox.tabour.sqs.config
import com.katanox.tabour.configuration.sqs.sqsConsumerConfiguration
import com.katanox.tabour.consumption.Config
import com.katanox.tabour.consumption.Consumer
import com.katanox.tabour.consumption.ConsumptionError
import java.net.URL
import software.amazon.awssdk.services.sqs.model.Message
class SqsConsumer
internal constructor(
val queueUri: URL,
val key: T,
override val onSuccess: suspend (Message) -> Boolean,
override val onError: suspend (ConsumptionError) -> Unit,
) : Consumer, Config {
var config: SqsConsumerConfiguration = sqsConsumerConfiguration { maxMessages = 10 }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy