com.ibm.jbatch.container.impl
Class RetryHandler

java.lang.Object
  extended by com.ibm.jbatch.container.impl.RetryHandler

public class RetryHandler
extends Object


Field Summary
static String RETRY_COUNT
           
static String RETRY_EXCLUDE_EX
           
static String RETRY_INCLUDE_EX
           
 
Constructor Summary
RetryHandler(Chunk chunk, long l, String stepId)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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(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)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.