public class RetryHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RETRY_COUNT |
static String |
RETRY_EXCLUDE_EX |
static String |
RETRY_INCLUDE_EX |
| Constructor and Description |
|---|
RetryHandler(Chunk chunk,
long l,
String stepId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRetryProcessListener(List<RetryProcessListenerProxy> retryProcessListeners)
Add the user-defined RetryProcessListener.
|
void |
addRetryReadListener(List<RetryReadListenerProxy> retryReadListeners)
Add the user-defined RetryReadListener.
|
void |
addRetryWriteListener(List<RetryWriteListenerProxy> retryWriteListeners)
Add the user-defined RetryWriteListener.
|
Exception |
getException() |
long |
getRetryCount() |
void |
handleExceptionProcess(Exception e,
Object w)
Handle exception from a process failure.
|
void |
handleExceptionRead(Exception e)
Handle exception from a read failure.
|
void |
handleExceptionWrite(Exception e,
List<Object> w)
Handle exception from a write failure.
|
boolean |
isRollbackException(Exception e) |
void |
setRetryCount(long retryCount) |
String |
toString() |
public static final String RETRY_COUNT
public static final String RETRY_INCLUDE_EX
public static final String RETRY_EXCLUDE_EX
public void addRetryProcessListener(List<RetryProcessListenerProxy> retryProcessListeners)
public void addRetryReadListener(List<RetryReadListenerProxy> retryReadListeners)
public void addRetryWriteListener(List<RetryWriteListenerProxy> retryWriteListeners)
public boolean isRollbackException(Exception e)
public void handleExceptionRead(Exception e)
public void handleExceptionProcess(Exception e, Object w)
public void handleExceptionWrite(Exception e, List<Object> w)
public Exception getException()
public long getRetryCount()
public void setRetryCount(long retryCount)
© Copyright IBM Corp. 2014
Licensed under the Apache License, Version 2.0