Class AsyncBatchWriteHandler<RecT,ResT>

java.lang.Object
org.apache.beam.sdk.io.aws2.common.AsyncBatchWriteHandler<RecT,ResT>
Type Parameters:
RecT - Record type in batch
ResT - Potentially erroneous result that needs to be correlated to a record using failedRecords(List, List)

@NotThreadSafe @Internal public abstract class AsyncBatchWriteHandler<RecT,ResT> extends Object
Async handler that automatically retries unprocessed records in case of a partial success.

The handler enforces the provided upper limit of concurrent requests. Once that limit is reached any further call to batchWrite(String, List) will block until another request completed.

The handler is fail fast and won't submit any further request after a failure. Async failures can be polled using checkForAsyncFailure().