Interface DeadLetterConfiguration.Builder

  • Method Details

    • targetType

      DeadLetterConfiguration.Builder targetType(String targetType)

      Whether dead-letter handling is enabled for the queue. BUILT_IN enables it: when a record has been received MaxReceiveCount times without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it. NONE disables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.

      Parameters:
      targetType - Whether dead-letter handling is enabled for the queue. BUILT_IN enables it: when a record has been received MaxReceiveCount times without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it. NONE disables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetType

      Whether dead-letter handling is enabled for the queue. BUILT_IN enables it: when a record has been received MaxReceiveCount times without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it. NONE disables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.

      Parameters:
      targetType - Whether dead-letter handling is enabled for the queue. BUILT_IN enables it: when a record has been received MaxReceiveCount times without being acknowledged, it becomes a dead-letter record and ReceiveQueueRecords no longer returns it. NONE disables it, and an unacknowledged record continues to be redelivered until it is acknowledged or its retention period ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxReceiveCount

      DeadLetterConfiguration.Builder maxReceiveCount(Integer maxReceiveCount)

      The number of times a record can be received without being acknowledged before it becomes a dead-letter record. Required when TargetType is BUILT_IN. A queue that you create without DeadLetterConfiguration gets a MaxReceiveCount of 6.

      Parameters:
      maxReceiveCount - The number of times a record can be received without being acknowledged before it becomes a dead-letter record. Required when TargetType is BUILT_IN. A queue that you create without DeadLetterConfiguration gets a MaxReceiveCount of 6.
      Returns:
      Returns a reference to this object so that method calls can be chained together.