← ZIO SQS docs

SqsMessageLifetimeExtensionSettings

zio.sqs.SqsMessageLifetimeExtensionSettings
See theSqsMessageLifetimeExtensionSettings companion object
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.

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Returns the delay before the first extension. It is overrideInitialDelay when set. Otherwise it is half of the visibility timeout in settings, rounded down to whole seconds, or 15 seconds when settings has no visibility timeout.

Returns the delay before the first extension. It is overrideInitialDelay when set. Otherwise it is half of the visibility timeout in settings, rounded down to whole seconds, or 15 seconds when settings has no visibility timeout.

Attributes

Source
SqsStreamSettings.scala
def schedule(settings: SqsStreamSettings): Schedule[Any, Any, Any]

Returns the schedule that repeats the extension. It is overrideRepeatSchedule when set. Otherwise it repeats every half of the visibility timeout in settings, rounded down to whole seconds, or every 15 seconds when settings has no visibility timeout.

Returns the schedule that repeats the extension. It is overrideRepeatSchedule when set. Otherwise it repeats every half of the visibility timeout in settings, rounded down to whole seconds, or every 15 seconds when settings has no visibility timeout.

Attributes

Source
SqsStreamSettings.scala

Sets whether the visibility timeout is extended while messages are processed.

Sets whether the visibility timeout is extended while messages are processed.

Attributes

Source
SqsStreamSettings.scala

Sets the value of maximumRetries. See the class documentation for how it is used.

Sets the value of maximumRetries. See the class documentation for how it is used.

Attributes

Source
SqsStreamSettings.scala

Sets the delay before the first extension.

Sets the delay before the first extension.

Attributes

Source
SqsStreamSettings.scala

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala