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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
handleException
(CDOSession session, int attempt, Exception exception) boolean
toString()
-
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:
handleException
in interfaceCDOSession.ExceptionHandler
- Throws:
Exception
- Since:
- 4.0
-
toString
-