org.springframework.batch.retry
Interface RetryCallback

All Known Implementing Classes:
ItemWriterRetryCallback

public interface RetryCallback

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

Since:
2.1
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 © 2008 SpringSource. All Rights Reserved.