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 void
abort()
T
getResultObject()
java.lang.Throwable
getThrowable()
boolean
isAborted()
boolean
isSuccessful()
-
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:
isSuccessful
in interfaceServiceContext<T>
- Returns:
- true if successful
-
getThrowable
public java.lang.Throwable getThrowable()
- Specified by:
getThrowable
in interfaceServiceContext<T>
- Returns:
- thrown exception
-
isAborted
public boolean isAborted()
- Specified by:
isAborted
in interfaceServiceContext<T>
- Returns:
- true if aborted
-
getResultObject
public T getResultObject()
- Specified by:
getResultObject
in interfaceServiceContext<T>
- Returns:
- result object
-
-