org.eclipse.emf.cdo.session
Class CDORetryExceptionHandler

java.lang.Object
  extended by org.eclipse.emf.cdo.session.CDORetryExceptionHandler
All Implemented Interfaces:
CDOSession.ExceptionHandler

public class CDORetryExceptionHandler
extends Object
implements CDOSession.ExceptionHandler

Since:
2.0
Author:
Eike Stepper

Field Summary
static int RETRY_FOREVER
           
 
Constructor Summary
CDORetryExceptionHandler()
           
CDORetryExceptionHandler(int retries)
           
 
Method Summary
 int getRetries()
           
 void handleException(CDOSession session, int attempt, Exception exception)
           
 boolean isRetryingForever()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RETRY_FOREVER

public static final int RETRY_FOREVER
See Also:
Constant Field Values
Constructor Detail

CDORetryExceptionHandler

public CDORetryExceptionHandler(int retries)

CDORetryExceptionHandler

public CDORetryExceptionHandler()
Method Detail

getRetries

public int getRetries()

isRetryingForever

public boolean isRetryingForever()

handleException

public void handleException(CDOSession session,
                            int attempt,
                            Exception exception)
                     throws Exception
Specified by:
handleException in interface CDOSession.ExceptionHandler
Throws:
Exception
Since:
4.0

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.