Interface QueueAttributes.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<QueueAttributes.Builder,,QueueAttributes> SdkBuilder<QueueAttributes.Builder,,QueueAttributes> SdkPojo
- Enclosing class:
QueueAttributes
-
Method Summary
Modifier and TypeMethodDescriptiondefault QueueAttributes.BuilderdeadLetterConfiguration(Consumer<DeadLetterConfiguration.Builder> deadLetterConfiguration) The dead-letter handling configuration for the queue.deadLetterConfiguration(DeadLetterConfiguration deadLetterConfiguration) The dead-letter handling configuration for the queue.visibilityTimeoutSeconds(Integer visibilityTimeoutSeconds) The duration, in seconds, that a record is in flight and not visible to any consumer instance after it is received.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
The dead-letter handling configuration for the queue. If you omit this attribute, dead-letter handling is enabled with a
MaxReceiveCountof 6. If you specify it with aTargetTypeofBUILT_IN, you must also specifyMaxReceiveCount.- Parameters:
deadLetterConfiguration- The dead-letter handling configuration for the queue. If you omit this attribute, dead-letter handling is enabled with aMaxReceiveCountof 6. If you specify it with aTargetTypeofBUILT_IN, you must also specifyMaxReceiveCount.- 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
This is a convenience method that creates an instance of theMaxReceiveCountof 6. If you specify it with aTargetTypeofBUILT_IN, you must also specifyMaxReceiveCount.DeadLetterConfiguration.Builderavoiding the need to create one manually viaDeadLetterConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeadLetterConfiguration(DeadLetterConfiguration).- Parameters:
deadLetterConfiguration- a consumer that will call methods onDeadLetterConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-