org.springframework.batch.retry
Interface RetryCallback<T>


public interface RetryCallback<T>

Callback interface for an operation that can be retried using a RetryOperations.

Author:
Rob Harrop, Dave Syer

Method Summary
 T doWithRetry(RetryContext context)
          Execute an operation with retry semantics.
 

Method Detail

doWithRetry

T doWithRetry(RetryContext context)
              throws Exception
Execute an operation with retry semantics. Operations should generally be idempotent, but implementations may choose to implement compensation semantics when an operation is retried.

Parameters:
context - the current retry context.
Returns:
the result of the successful operation.
Throws:
Exception - if processing fails


Copyright © 2013 SpringSource. All Rights Reserved.