com.ibm.websphere.batch
Interface RetryListener
- public interface RetryListener
The RetryListener gets control at several points during job step failure and retry.
The RetryListener is registered with the JobStepContext via JobStepContext.addRetryListener(RetryListener).
For example:
JobStepContext jsCtx= JobStepContextMgr.getContext();
jsCtx.addRetryListener(new MyRetryListener());
Method Summary
Modifier and Type | Method and Description |
---|---|
|
onError(java.lang.Throwable t)
This method gets called after the error occurs and before the transaction rolls back.
|
|
onRetry(java.lang.Throwable t)
This method gets control before the job step is restarted.
|
Method Detail
onError
- void onError(java.lang.Throwable t)
This method gets called after the error occurs and before the transaction rolls back.
Parameters:
t
- The error that caused the retry. onRetry
- void onRetry(java.lang.Throwable t)
This method gets control before the job step is restarted.
Parameters:
t
- The error that caused the retry.