All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.katanox.tabour.sqs.config.SqsConsumer.kt Maven / Gradle / Ivy

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