org.apache.avalon.composition.model
Class TransientServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.avalon.framework.CascadingException
org.apache.avalon.framework.service.ServiceException
org.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
Method Summary |
long |
getDelay()
Returns the expected duration of service non-availability. |
TransientServiceException
public TransientServiceException(String key,
String message,
long delay)
- Construct a new
TransientServiceException
instance.
- Parameters:
key
- the lookup keymessage
- The detail message for this exception.delay
- expected service availability delay in milliseconds
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.