ch.elca.el4j.services.exceptionhandler
Class RetryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.elca.el4j.services.exceptionhandler.RetryException
All Implemented Interfaces:
Serializable

public class RetryException
extends Exception

This exception signals a retry.

Author:
Andreas Bur (ABU)
See Also:
Serialized Form
File-location:
RetryException
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Constructor Summary
RetryException(int retries)
          Creates a new retry exception.
RetryException(int retries, HotSwappableTargetSource swapper)
          Creates a new retry exception with the given number of retires and the target source, which target has to be used in the next invocation.
 
Method Summary
 int getRetries()
           
 HotSwappableTargetSource getSwapper()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RetryException

public RetryException(int retries)
Creates a new retry exception.

Parameters:
retries - The number of expected retries. Catchers are free to use another value.

RetryException

public RetryException(int retries,
                      HotSwappableTargetSource swapper)
Creates a new retry exception with the given number of retires and the target source, which target has to be used in the next invocation.

Parameters:
retries - The number of expected retries.
swapper - The target source that points to the target which has to be used in the next invocation.
Method Detail

getRetries

public int getRetries()
Returns:
Returns the number of retries.

getSwapper

public HotSwappableTargetSource getSwapper()
Returns:
Returns the target source which target has to be used in the next invocation.


Copyright © 2005-2011 ELCA. All Rights Reserved.