Class DefaultSqsAsyncBatchManager.DefaultBuilder
java.lang.Object
software.amazon.awssdk.services.sqs.internal.batchmanager.DefaultSqsAsyncBatchManager.DefaultBuilder
- All Implemented Interfaces:
SqsAsyncBatchManager.Builder
- Enclosing class:
DefaultSqsAsyncBatchManager
public static final class DefaultSqsAsyncBatchManager.DefaultBuilder
extends Object
implements SqsAsyncBatchManager.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an instance ofSqsAsyncBatchManager
based on the supplied configurations.client
(SqsAsyncClient client) Sets a customSqsClient
for polling resources.overrideConfiguration
(BatchOverrideConfiguration overrideConfiguration) Sets custom overrides for the BatchManager configuration.scheduledExecutor
(ScheduledExecutorService scheduledExecutor) Sets a customScheduledExecutorService
for periodic buffer flushes.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.services.sqs.batchmanager.SqsAsyncBatchManager.Builder
overrideConfiguration
-
Method Details
-
overrideConfiguration
public SqsAsyncBatchManager.Builder overrideConfiguration(BatchOverrideConfiguration overrideConfiguration) Description copied from interface:SqsAsyncBatchManager.Builder
Sets custom overrides for the BatchManager configuration.- Specified by:
overrideConfiguration
in interfaceSqsAsyncBatchManager.Builder
- Parameters:
overrideConfiguration
- The configuration overrides.- Returns:
- This builder for method chaining.
-
client
Description copied from interface:SqsAsyncBatchManager.Builder
Sets a customSqsClient
for polling resources. This client must be closed by the caller.- Specified by:
client
in interfaceSqsAsyncBatchManager.Builder
- Parameters:
client
- The SqsAsyncClient to use.- Returns:
- This builder for method chaining.
-
scheduledExecutor
Description copied from interface:SqsAsyncBatchManager.Builder
Sets a customScheduledExecutorService
for periodic buffer flushes. This executor must be closed by the caller.- Specified by:
scheduledExecutor
in interfaceSqsAsyncBatchManager.Builder
- Parameters:
scheduledExecutor
- The executor to use.- Returns:
- This builder for method chaining.
-
build
Description copied from interface:SqsAsyncBatchManager.Builder
Builds an instance ofSqsAsyncBatchManager
based on the supplied configurations.- Specified by:
build
in interfaceSqsAsyncBatchManager.Builder
- Returns:
- An initialized SqsAsyncBatchManager.
-