Package com.ibm.jbatch.container.impl
Class RetryHandler
- java.lang.Object
-
- com.ibm.jbatch.container.impl.RetryHandler
-
public class RetryHandler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringRETRY_COUNTstatic StringRETRY_EXCLUDE_EXstatic StringRETRY_INCLUDE_EX
-
Constructor Summary
Constructors Constructor Description RetryHandler(com.ibm.jbatch.jsl.model.Chunk chunk, long l, String stepId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRetryProcessListener(List<RetryProcessListenerProxy> retryProcessListeners)Add the user-defined RetryProcessListener.voidaddRetryReadListener(List<RetryReadListenerProxy> retryReadListeners)Add the user-defined RetryReadListener.voidaddRetryWriteListener(List<RetryWriteListenerProxy> retryWriteListeners)Add the user-defined RetryWriteListener.ExceptiongetException()longgetRetryCount()voidhandleExceptionProcess(Exception e, Object w)Handle exception from a process failure.voidhandleExceptionRead(Exception e)Handle exception from a read failure.voidhandleExceptionWrite(Exception e, List<Object> w)Handle exception from a write failure.booleanisRollbackException(Exception e)voidsetRetryCount(long retryCount)StringtoString()
-
-
-
Field Detail
-
RETRY_COUNT
public static final String RETRY_COUNT
- See Also:
- Constant Field Values
-
RETRY_INCLUDE_EX
public static final String RETRY_INCLUDE_EX
- See Also:
- Constant Field Values
-
RETRY_EXCLUDE_EX
public static final String RETRY_EXCLUDE_EX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RetryHandler
public RetryHandler(com.ibm.jbatch.jsl.model.Chunk chunk, long l, String stepId)
-
-
Method Detail
-
addRetryProcessListener
public void addRetryProcessListener(List<RetryProcessListenerProxy> retryProcessListeners)
Add the user-defined RetryProcessListener.
-
addRetryReadListener
public void addRetryReadListener(List<RetryReadListenerProxy> retryReadListeners)
Add the user-defined RetryReadListener.
-
addRetryWriteListener
public void addRetryWriteListener(List<RetryWriteListenerProxy> retryWriteListeners)
Add the user-defined RetryWriteListener.
-
isRollbackException
public boolean isRollbackException(Exception e)
-
handleExceptionRead
public void handleExceptionRead(Exception e)
Handle exception from a read failure.
-
handleExceptionProcess
public void handleExceptionProcess(Exception e, Object w)
Handle exception from a process failure.
-
handleExceptionWrite
public void handleExceptionWrite(Exception e, List<Object> w)
Handle exception from a write failure.
-
getException
public Exception getException()
-
getRetryCount
public long getRetryCount()
-
setRetryCount
public void setRetryCount(long retryCount)
-
-