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 ofSqsAsyncBatchManagerbased on the supplied configurations.client(SqsAsyncClient client) Sets a customSqsClientfor polling resources.overrideConfiguration(BatchOverrideConfiguration overrideConfiguration) Sets custom overrides for the BatchManager configuration.scheduledExecutor(ScheduledExecutorService scheduledExecutor) Sets a customScheduledExecutorServicefor periodic buffer flushes.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.BuilderSets custom overrides for the BatchManager configuration.- Specified by:
overrideConfigurationin interfaceSqsAsyncBatchManager.Builder- Parameters:
overrideConfiguration- The configuration overrides.- Returns:
- This builder for method chaining.
-
client
Description copied from interface:SqsAsyncBatchManager.BuilderSets a customSqsClientfor polling resources. This client must be closed by the caller.- Specified by:
clientin interfaceSqsAsyncBatchManager.Builder- Parameters:
client- The SqsAsyncClient to use.- Returns:
- This builder for method chaining.
-
scheduledExecutor
Description copied from interface:SqsAsyncBatchManager.BuilderSets a customScheduledExecutorServicefor periodic buffer flushes. This executor must be closed by the caller.- Specified by:
scheduledExecutorin interfaceSqsAsyncBatchManager.Builder- Parameters:
scheduledExecutor- The executor to use.- Returns:
- This builder for method chaining.
-
build
Description copied from interface:SqsAsyncBatchManager.BuilderBuilds an instance ofSqsAsyncBatchManagerbased on the supplied configurations.- Specified by:
buildin interfaceSqsAsyncBatchManager.Builder- Returns:
- An initialized SqsAsyncBatchManager.
-