OPEN - issue BATCH-220: Chunk-oriented approach to processing

Skip should be working now for reads and writes (not processing).
This commit is contained in:
dsyer
2008-08-27 11:08:47 +00:00
parent b55fc3b475
commit 32118407c7
11 changed files with 276 additions and 490 deletions

View File

@@ -96,9 +96,8 @@ public class SimpleRetryPolicy implements RetryPolicy {
* attempts so far is less than the limit.
*/
public boolean canRetry(RetryContext context) {
SimpleRetryContext simpleContext = ((SimpleRetryContext) context);
Throwable t = simpleContext.getLastThrowable();
return (t == null || retryForException(t)) && simpleContext.getRetryCount() < maxAttempts;
Throwable t = context.getLastThrowable();
return (t == null || retryForException(t)) && context.getRetryCount() < maxAttempts;
}
/**