Package org.eclipse.emf.cdo.session
Class CDORetryExceptionHandler
- java.lang.Object
- 
- org.eclipse.emf.cdo.session.CDORetryExceptionHandler
 
- 
- All Implemented Interfaces:
- CDOSession.ExceptionHandler
 
 public class CDORetryExceptionHandler extends java.lang.Object implements CDOSession.ExceptionHandler Asession exection handlerthat retries the failed protocol operation a configurable number of times.- Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intRETRY_FOREVER
 - 
Constructor SummaryConstructors Constructor Description CDORetryExceptionHandler()CDORetryExceptionHandler(int retries)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRetries()voidhandleException(CDOSession session, int attempt, java.lang.Exception exception)booleanisRetryingForever()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
RETRY_FOREVERpublic static final int RETRY_FOREVER - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getRetriespublic int getRetries() 
 - 
isRetryingForeverpublic boolean isRetryingForever() 
 - 
handleExceptionpublic void handleException(CDOSession session, int attempt, java.lang.Exception exception) throws java.lang.Exception - Specified by:
- handleExceptionin interface- CDOSession.ExceptionHandler
- Throws:
- java.lang.Exception
- Since:
- 4.0
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-