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()booleanflushableRequests(String batchKey) flushableRequestsOnByteLimitBeforeAdd(String batchKey, RequestT request) flushableScheduledRequests(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
-
flushableRequests
-
flushableRequestsOnByteLimitBeforeAdd
-
flushableScheduledRequests
-
cancelScheduledFlush
-
clear
public void clear()
-