Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static ThreadGroup |
DFLT_GRP
Default thread's group.
|
MAX_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() |
activeCount, 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, yield
public 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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015