← ZIO SQS docs

zio.sqs

package zio.sqs

Members list

Packages

Type members

Classlikes

Attributes

Companion
class
Source
SqsStreamSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SqsMessageLifetimeExtensionSettings(automaticExtension: Boolean, maximumRetries: Int, overrideInitialDelay: Option[Duration], overrideRepeatSchedule: Option[Schedule[Any, Any, Any]])

Settings for extending the visibility timeout of messages while they are processed by SqsStream.consumeChunkAtLeastOnce.

Settings for extending the visibility timeout of messages while they are processed by SqsStream.consumeChunkAtLeastOnce.

Value parameters

automaticExtension

If true, the visibility timeout of the messages is extended while they are processed.

maximumRetries

Currently used as the new visibility timeout, in seconds, for each automatic extension. It is not used as a retry count.

overrideInitialDelay

If set, the delay before the first extension. If None, half of the visibility timeout, rounded down to whole seconds, or 15 seconds when no visibility timeout is set.

overrideRepeatSchedule

If set, the schedule for the repeated extensions. If None, every half of the visibility timeout, rounded down to whole seconds, or every 15 seconds when no visibility timeout is set.

Attributes

Companion
object
Source
SqsStreamSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SqsStream

Reads messages from an SQS queue as a stream, and deletes, extends or processes them.

Reads messages from an SQS queue as a stream, and deletes, extends or processes them.

Attributes

Source
SqsStream.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SqsStream.type

Factory for SqsStreamSettings.

Factory for SqsStreamSettings.

Attributes

Companion
class
Source
SqsStreamSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SqsStreamSettings(attributeNames: List[QueueAttributeName], maxNumberOfMessages: Option[Int], messageAttributeNames: List[String], visibilityTimeout: Option[Int], waitTimeSeconds: Option[Int], autoDelete: Boolean, stopWhenQueueEmpty: Boolean)

Configuration settings for consuming messages from an SQS queue.

Configuration settings for consuming messages from an SQS queue.

Value parameters

attributeNames

List of queue attribute names to retrieve with each message. See AWS SQS API documentation for valid values.

autoDelete

If true, SqsStream.apply deletes the received messages before it emits them. If false, SqsStream.apply does not delete them; delete them with SqsStream.deleteMessage, SqsStream.deleteMessageBatch or SqsStream.deleteMessageBatchSink. SqsStream.consumeChunkAtLeastOnce ignores this setting.

maxNumberOfMessages

Maximum number of messages to retrieve in a single request. Valid values are between 1 and 10.

messageAttributeNames

List of message attribute names to retrieve with each message.

stopWhenQueueEmpty

If true, the stream stops when a receive request returns no messages. If false, the stream keeps polling for new messages.

visibilityTimeout

The duration (in seconds) that the received messages are hidden from subsequent retrieve requests. If None, uses the queue's default visibility timeout. See AWS SQS Visibility Timeout documentation.

waitTimeSeconds

The duration (in seconds) for which the call waits for messages to arrive in the queue before returning. Maximum is 20 seconds. If None, the stream sends no wait time and SQS applies its own default. A value above 0 enables long polling. Short polling increases the number of requests made to SQS and so the cost.

Attributes

Companion
object
Source
SqsStreamSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Utils

Helpers for creating an SQS queue and finding its URL.

Helpers for creating an SQS queue and finding its URL.

Attributes

Source
Utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type