org.springframework.batch.retry
Interface RetryCallback

All Known Implementing Classes:
RecoveryRetryCallback

public interface RetryCallback

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

Author:
Rob Harrop

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

Method Detail

doWithRetry

Object doWithRetry(RetryContext context)
                   throws Throwable
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:
Throwable


Copyright © 2009 SpringSource. All Rights Reserved.