akka.stream.alpakka.sqs.SqsPublishBatchSettings.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akka-stream-alpakka-sqs_2.13 Show documentation
Show all versions of akka-stream-alpakka-sqs_2.13 Show documentation
Alpakka is a Reactive Enterprise Integration library for Java and Scala, based on Reactive Streams and Akka.
The newest version!
/*
* Copyright (C) since 2016 Lightbend Inc.
*/
package akka.stream.alpakka.sqs
final class SqsPublishBatchSettings private (val concurrentRequests: Int) {
def withConcurrentRequests(value: Int): SqsPublishBatchSettings = copy(concurrentRequests = value)
private def copy(concurrentRequests: Int): SqsPublishBatchSettings =
new SqsPublishBatchSettings(concurrentRequests = concurrentRequests)
override def toString =
s"""SqsPublishBatchSettings(concurrentRequests=$concurrentRequests)"""
}
object SqsPublishBatchSettings {
val Defaults = new SqsPublishBatchSettings(
concurrentRequests = 1
)
/** Scala API */
def apply(): SqsPublishBatchSettings = Defaults
/** Java API */
def create(): SqsPublishBatchSettings = Defaults
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy