Interface QueueAttributes.Builder

  • Method Details

    • visibilityTimeoutSeconds

      QueueAttributes.Builder visibilityTimeoutSeconds(Integer visibilityTimeoutSeconds)

      The duration, in seconds, that a record is in flight and not visible to any consumer instance after it is received. A record that is not acknowledged before this duration elapses becomes visible in the queue again and can be received by any consumer instance. If you omit this attribute when you create a queue, the queue uses 30 seconds.

      Parameters:
      visibilityTimeoutSeconds - The duration, in seconds, that a record is in flight and not visible to any consumer instance after it is received. A record that is not acknowledged before this duration elapses becomes visible in the queue again and can be received by any consumer instance. If you omit this attribute when you create a queue, the queue uses 30 seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deadLetterConfiguration

      QueueAttributes.Builder deadLetterConfiguration(DeadLetterConfiguration deadLetterConfiguration)

      The dead-letter handling configuration for the queue. If you omit this attribute, dead-letter handling is enabled with a MaxReceiveCount of 6. If you specify it with a TargetType of BUILT_IN, you must also specify MaxReceiveCount.

      Parameters:
      deadLetterConfiguration - The dead-letter handling configuration for the queue. If you omit this attribute, dead-letter handling is enabled with a MaxReceiveCount of 6. If you specify it with a TargetType of BUILT_IN, you must also specify MaxReceiveCount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deadLetterConfiguration

      default QueueAttributes.Builder deadLetterConfiguration(Consumer<DeadLetterConfiguration.Builder> deadLetterConfiguration)

      The dead-letter handling configuration for the queue. If you omit this attribute, dead-letter handling is enabled with a MaxReceiveCount of 6. If you specify it with a TargetType of BUILT_IN, you must also specify MaxReceiveCount.

      This is a convenience method that creates an instance of the DeadLetterConfiguration.Builder avoiding the need to create one manually via DeadLetterConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deadLetterConfiguration(DeadLetterConfiguration).

      Parameters:
      deadLetterConfiguration - a consumer that will call methods on DeadLetterConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: