Class BatchOverrideConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.sqs.batchmanager.BatchOverrideConfiguration
-
- All Implemented Interfaces:
ToCopyableBuilder<BatchOverrideConfiguration.Builder,BatchOverrideConfiguration>
public final class BatchOverrideConfiguration extends Object implements ToCopyableBuilder<BatchOverrideConfiguration.Builder,BatchOverrideConfiguration>
Configuration values for the BatchManager implementation used for controlling batch operations. All values are optional, and default values will be used if they are not specified.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchOverrideConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchOverrideConfiguration.Builder
builder()
boolean
equals(Object o)
int
hashCode()
Integer
maxBatchSize()
List<String>
receiveMessageAttributeNames()
Duration
receiveMessageMinWaitDuration()
List<MessageSystemAttributeName>
receiveMessageSystemAttributeNames()
Duration
receiveMessageVisibilityTimeout()
Duration
sendRequestFrequency()
BatchOverrideConfiguration.Builder
toBuilder()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
builder
public static BatchOverrideConfiguration.Builder builder()
-
maxBatchSize
public Integer maxBatchSize()
- Returns:
- the maximum number of items that can be batched together in a single outbound SQS request
(e.g., for
SendMessageBatchRequest
,ChangeMessageVisibilityBatchRequest
, orDeleteMessageBatchRequest
). A batch can contain up to a maximum of 10 messages. The default value is 10.
-
sendRequestFrequency
public Duration sendRequestFrequency()
- Returns:
- the maximum duration an outgoing call waits for additional messages of the same type before being sent.
If the
maxBatchSize()
is reached before this duration, the batch will be sent immediately. The default value is 200 milliseconds.
-
receiveMessageVisibilityTimeout
public Duration receiveMessageVisibilityTimeout()
- Returns:
- the custom visibility timeout to use when retrieving messages from SQS. If not set, the default visibility timeout configured on the SQS queue will be used.
-
receiveMessageMinWaitDuration
public Duration receiveMessageMinWaitDuration()
- Returns:
- the minimum wait time for incoming receive message requests. Without a non-zero minimum wait time, threads can waste CPU resources busy-waiting for messages. The default value is 50 milliseconds.
-
receiveMessageSystemAttributeNames
public List<MessageSystemAttributeName> receiveMessageSystemAttributeNames()
- Returns:
- the system attribute names to request for
ReceiveMessageRequest
. Requests with differing system attribute names will bypass the batch manager and make a direct call to SQS.
-
receiveMessageAttributeNames
public List<String> receiveMessageAttributeNames()
- Returns:
- the message attribute names to request for
ReceiveMessageRequest
. Requests with different message attribute names will bypass the batch manager and make a direct call to SQS.
-
toBuilder
public BatchOverrideConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<BatchOverrideConfiguration.Builder,BatchOverrideConfiguration>
-
-