Class BatchingMap<RequestT,ResponseT>
java.lang.Object
software.amazon.awssdk.services.sqs.internal.batchmanager.BatchingMap<RequestT,ResponseT>
- Type Parameters:
RequestT- the type of an outgoing response
Outer map maps a batchKey (ex. queueUrl, overrideConfig etc.) to a
RequestBatchBuffer-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelAndReplaceScheduledFlush(String batchKey, ScheduledFuture<?> scheduledFlush) voidcancelScheduledFlush(String batchKey) voidclear()booleanextractBatchIfReady(String batchKey) extractBatchIfSizeExceeded(String batchKey, RequestT request) extractEntriesForScheduledFlush(String batchKey, int maxBatchItems) voidforEach(BiConsumer<String, RequestBatchBuffer<RequestT, ResponseT>> action) voidput(String batchKey, Supplier<ScheduledFuture<?>> scheduleFlush, RequestT request, CompletableFuture<ResponseT> response)
-
Constructor Details
-
BatchingMap
-
-
Method Details
-
put
public void put(String batchKey, Supplier<ScheduledFuture<?>> scheduleFlush, RequestT request, CompletableFuture<ResponseT> response) throws IllegalStateException - Throws:
IllegalStateException
-
contains
-
cancelAndReplaceScheduledFlush
-
forEach
-
extractBatchIfReady
-
extractBatchIfSizeExceeded
-
extractEntriesForScheduledFlush
-
cancelScheduledFlush
-
clear
public void clear()
-