Package org.eclipse.emf.cdo.session
Class CDORetryExceptionHandler
java.lang.Object
org.eclipse.emf.cdo.session.CDORetryExceptionHandler
- All Implemented Interfaces:
CDOSession.ExceptionHandler
A
session exection handler that retries the failed protocol operation a configurable number
of times.- Since:
- 2.0
- Author:
- Eike Stepper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidhandleException(CDOSession session, int attempt, Exception exception) booleantoString()
-
Field Details
-
RETRY_FOREVER
public static final int RETRY_FOREVER- See Also:
-
-
Constructor Details
-
CDORetryExceptionHandler
public CDORetryExceptionHandler(int retries) -
CDORetryExceptionHandler
public CDORetryExceptionHandler()
-
-
Method Details
-
getRetries
public int getRetries() -
isRetryingForever
public boolean isRetryingForever() -
handleException
- Specified by:
handleExceptionin interfaceCDOSession.ExceptionHandler- Throws:
Exception- Since:
- 4.0
-
toString
-