Class DeadLetterConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DeadLetterConfiguration.Builder,DeadLetterConfiguration>
The dead-letter handling configuration for a queue. Each queue has built-in dead-letter handling. When a record has
been received MaxReceiveCount times without being acknowledged, it becomes a dead-letter record, and
ReceiveQueueRecords no longer returns it. The dead-letter record stays in the same queue, and you work with it
through ReceiveDeadLetterQueueRecords, AcknowledgeDeadLetterQueueRecords,
UpdateDeadLetterQueueRecordsVisibility, and RestoreDeadLetterQueueRecords, which use the same queue
ARN.
Dead-letter handling is enabled by default, with a MaxReceiveCount of 6. To use a different value, or to
turn dead-letter handling off, specify this configuration in QueueAttributes.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe number of times a record can be received without being acknowledged before it becomes a dead-letter record.static Class<? extends DeadLetterConfiguration.Builder> final TargetTypeWhether dead-letter handling is enabled for the queue.final StringWhether dead-letter handling is enabled for the queue.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
targetType
Whether dead-letter handling is enabled for the queue.
BUILT_INenables it: when a record has been receivedMaxReceiveCounttimes without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it.NONEdisables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- Whether dead-letter handling is enabled for the queue.
BUILT_INenables it: when a record has been receivedMaxReceiveCounttimes without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it.NONEdisables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends. - See Also:
-
targetTypeAsString
Whether dead-letter handling is enabled for the queue.
BUILT_INenables it: when a record has been receivedMaxReceiveCounttimes without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it.NONEdisables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- Whether dead-letter handling is enabled for the queue.
BUILT_INenables it: when a record has been receivedMaxReceiveCounttimes without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it.NONEdisables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends. - See Also:
-
maxReceiveCount
The number of times a record can be received without being acknowledged before it becomes a dead-letter record. Required when
TargetTypeisBUILT_IN. A queue that you create withoutDeadLetterConfigurationgets aMaxReceiveCountof 6.- Returns:
- The number of times a record can be received without being acknowledged before it becomes a dead-letter
record. Required when
TargetTypeisBUILT_IN. A queue that you create withoutDeadLetterConfigurationgets aMaxReceiveCountof 6.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DeadLetterConfiguration.Builder,DeadLetterConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-