Class ServiceThreadBase<T>
- java.lang.Object
-
- java.lang.Thread
-
- com.dtolabs.rundeck.core.execution.ServiceThreadBase<T>
-
- All Implemented Interfaces:
ServiceContext<T>,java.lang.Runnable
- Direct Known Subclasses:
WorkflowExecutionServiceThread
public class ServiceThreadBase<T> extends java.lang.Thread implements ServiceContext<T>
ServiceThreadBase is ...
-
-
Constructor Summary
Constructors Constructor Description ServiceThreadBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()TgetResultObject()java.lang.ThrowablegetThrowable()booleanisAborted()booleanisSuccessful()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
abort
public void abort()
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessfulin interfaceServiceContext<T>- Returns:
- true if successful
-
getThrowable
public java.lang.Throwable getThrowable()
- Specified by:
getThrowablein interfaceServiceContext<T>- Returns:
- thrown exception
-
isAborted
public boolean isAborted()
- Specified by:
isAbortedin interfaceServiceContext<T>- Returns:
- true if aborted
-
getResultObject
public T getResultObject()
- Specified by:
getResultObjectin interfaceServiceContext<T>- Returns:
- result object
-
-