Class RetryHandler
- java.lang.Object
-
- org.apache.batchee.container.impl.controller.chunk.RetryHandler
-
public class RetryHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description RetryHandler(Chunk chunk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRetryProcessListener(List<javax.batch.api.chunk.listener.RetryProcessListener> retryProcessListeners)Add the user-defined RetryProcessListener.voidaddRetryReadListener(List<javax.batch.api.chunk.listener.RetryReadListener> retryReadListeners)Add the user-defined RetryReadListener.voidaddRetryWriteListener(List<javax.batch.api.chunk.listener.RetryWriteListener> retryWriteListeners)Add the user-defined RetryWriteListener.ExceptiongetException()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)StringtoString()
-
-
-
Constructor Detail
-
RetryHandler
public RetryHandler(Chunk chunk)
-
-
Method Detail
-
addRetryProcessListener
public void addRetryProcessListener(List<javax.batch.api.chunk.listener.RetryProcessListener> retryProcessListeners)
Add the user-defined RetryProcessListener.
-
addRetryReadListener
public void addRetryReadListener(List<javax.batch.api.chunk.listener.RetryReadListener> retryReadListeners)
Add the user-defined RetryReadListener.
-
addRetryWriteListener
public void addRetryWriteListener(List<javax.batch.api.chunk.listener.RetryWriteListener> 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()
-
-