public abstract class IgniteSpiThread extends IgniteThread
IgniteThread class:
body()Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static ThreadGroup |
DFLT_GRP
Default thread's group.
|
gridNameMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
IgniteSpiThread(String gridName,
String name,
IgniteLogger log)
Creates thread with given
name. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
body()
Body of SPI thread.
|
protected void |
cleanup()
Should be overridden by child classes if cleanup logic is required.
|
void |
run() |
String |
toString() |
createName, getGridNameactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldpublic static final ThreadGroup DFLT_GRP
protected IgniteSpiThread(String gridName, String name, IgniteLogger log)
name.gridName - Name of grid this thread is created in.name - Thread's name.log - Grid logger to use.protected void cleanup()
protected abstract void body()
throws InterruptedException
InterruptedException - If thread got interrupted.public String toString()
toString in class IgniteThread
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016