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.
|
GRP_IDX_UNASSIGNED, igniteInstanceName
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
IgniteSpiThread(String igniteInstanceName,
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() |
cachePoolThread, compositeRwLockIndex, compositeRwLockIndex, createName, current, getIgniteInstanceName, isForbiddenToRequestBinaryMetadata, onEntryProcessorEntered, onEntryProcessorLeft, onForbidBinaryMetadataRequestSectionEntered, onForbidBinaryMetadataRequestSectionLeft, policy, stripe
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 igniteInstanceName, String name, IgniteLogger log)
name
.igniteInstanceName
- 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 Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019