PkgAgentSystem
Class DelayException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--PkgAgentSystem.AgentException
|
+--PkgAgentSystem.DelayException
- Direct Known Subclasses:
- MovingDeniedException, PersistingDeniedException
- public class DelayException
- extends AgentException
Superclass of all exceptions which want to delay some action. Contains a value in
seconds for the delay requested.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
- Serialized Form
Constructor Summary |
DelayException()
Constructs a DelayException without a specified detail message and no specified delay. |
DelayException(String detail)
Constructs a DelayException with the specified detail message and no specified delay. |
DelayException(String detail,
int retryAfterSeconds)
Constructs a DelayException with the specified detail message and delay. |
Method Summary |
int |
getRetryDelay()
Retrieve the requested delay for the action. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DelayException
public DelayException(String detail,
int retryAfterSeconds)
- Constructs a
DelayException
with the specified detail message and delay.
- Parameters:
detail
- the detail messageretryAfterSeconds
- the requested delay in seconds
DelayException
public DelayException(String detail)
- Constructs a
DelayException
with the specified detail message and no specified delay.
- Parameters:
detail
- the detail message
DelayException
public DelayException()
- Constructs a
DelayException
without a specified detail message and no specified delay.
getRetryDelay
public int getRetryDelay()
- Retrieve the requested delay for the action.
- Returns:
- the requested delay for retrying in seconds
Submit a bug
Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.