public class BulkDeleteRetryHandler extends AbstractStoreOperation
Modifier and Type | Field and Description |
---|---|
static String |
XML_PARSE_BROKEN
This is an error string we see in exceptions when the XML parser
failed: "Failed to parse XML document".
|
Constructor and Description |
---|
BulkDeleteRetryHandler(StoreContext storeContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bulkDeleteRetried(com.amazonaws.services.s3.model.DeleteObjectsRequest deleteRequest,
Exception ex)
Handler for failure of bulk delete requests.
|
protected void |
incrementStatistic(Statistic statistic)
Increment a statistic by 1.
|
protected void |
incrementStatistic(Statistic statistic,
long count)
Increment a statistic by a specific value.
|
getStoreContext
public static final String XML_PARSE_BROKEN
public BulkDeleteRetryHandler(StoreContext storeContext)
storeContext
- contextprotected void incrementStatistic(Statistic statistic)
statistic
- The operation to incrementprotected void incrementStatistic(Statistic statistic, long count)
statistic
- The operation to incrementcount
- the count to incrementpublic void bulkDeleteRetried(com.amazonaws.services.s3.model.DeleteObjectsRequest deleteRequest, Exception ex)
deleteRequest
- request which was retried.ex
- exceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.