public class RetryHandler extends Object
Constructor and Description |
---|
RetryHandler(Chunk chunk) |
Modifier and Type | Method and Description |
---|---|
void |
addRetryProcessListener(List<javax.batch.api.chunk.listener.RetryProcessListener> retryProcessListeners)
Add the user-defined RetryProcessListener.
|
void |
addRetryReadListener(List<javax.batch.api.chunk.listener.RetryReadListener> retryReadListeners)
Add the user-defined RetryReadListener.
|
void |
addRetryWriteListener(List<javax.batch.api.chunk.listener.RetryWriteListener> retryWriteListeners)
Add the user-defined RetryWriteListener.
|
Exception |
getException() |
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) |
String |
toString() |
public RetryHandler(Chunk chunk)
public void addRetryProcessListener(List<javax.batch.api.chunk.listener.RetryProcessListener> retryProcessListeners)
public void addRetryReadListener(List<javax.batch.api.chunk.listener.RetryReadListener> retryReadListeners)
public void addRetryWriteListener(List<javax.batch.api.chunk.listener.RetryWriteListener> 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()
Copyright © 2017 The Apache Software Foundation. All rights reserved.