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 TypeMethodDescriptionvoid
cancelScheduledFlush
(String batchKey) void
clear()
boolean
flushableRequests
(String batchKey) flushableRequestsOnByteLimitBeforeAdd
(String batchKey, RequestT request) flushableScheduledRequests
(String batchKey, int maxBatchItems) void
forEach
(BiConsumer<String, RequestBatchBuffer<RequestT, ResponseT>> action) void
put
(String batchKey, Supplier<ScheduledFuture<?>> scheduleFlush, RequestT request, CompletableFuture<ResponseT> response) void
putScheduledFlush
(String batchKey, ScheduledFuture<?> scheduledFlush)
-
Constructor Details
-
BatchingMap
-
-
Method Details
-
put
public void put(String batchKey, Supplier<ScheduledFuture<?>> scheduleFlush, RequestT request, CompletableFuture<ResponseT> response) throws IllegalStateException - Throws:
IllegalStateException
-
contains
-
putScheduledFlush
-
forEach
-
flushableRequests
-
flushableRequestsOnByteLimitBeforeAdd
-
flushableScheduledRequests
-
cancelScheduledFlush
-
clear
public void clear()
-