org.apache.avalon.composition.model
Class TransientServiceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.avalon.framework.CascadingException
              extended byorg.apache.avalon.framework.service.ServiceException
                  extended byorg.apache.avalon.composition.model.TransientServiceException
All Implemented Interfaces:
CascadingThrowable, Serializable

public class TransientServiceException
extends ServiceException

Exception to indicate that there was a transient service error. The exception exposes a delay value which is the anticipated delay in service availability. A delay value of 0 indicates an unknown delay.

Version:
$Revision: 1.1 $ $Date: 2004/02/12 05:59:41 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
TransientServiceException(String key, String message, long delay)
          Construct a new TransientServiceException instance.
 
Method Summary
 long getDelay()
          Returns the expected duration of service non-availability.
 
Methods inherited from class org.apache.avalon.framework.service.ServiceException
getKey, getMessage, getRole
 
Methods inherited from class org.apache.avalon.framework.CascadingException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, 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

TransientServiceException

public TransientServiceException(String key,
                                 String message,
                                 long delay)
Construct a new TransientServiceException instance.

Parameters:
key - the lookup key
message - The detail message for this exception.
delay - expected service availability delay in milliseconds
Method Detail

getDelay

public long getDelay()
Returns the expected duration of service non-availability.

Returns:
the non-availability duration


Copyright © The Apache Software Foundation. All Rights Reserved.