Package com.levigo.jadice.server
Class JobTimeout
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.levigo.jadice.server.JobException
-
- com.levigo.jadice.server.JobTimeout
-
- All Implemented Interfaces:
Serializable
public class JobTimeout extends JobException
An exception indicating a job-related problem due to a timeout.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JobTimeout(Job.State state, String message, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job.State
getState()
The state being waited for (not the current one!) when the timeout occurred.long
getTimeout()
The timeout in milliseconds.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getState
public Job.State getState()
The state being waited for (not the current one!) when the timeout occurred.- Returns:
- the state to wait for
-
getTimeout
public long getTimeout()
The timeout in milliseconds.- Returns:
- Timeout in milliseconds
-
-