public class IgniteThread extends Thread
Thread
class.
Specifically, it adds:
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static int |
GRP_IDX_UNASSIGNED
Index for unassigned thread.
|
protected String |
igniteInstanceName
The name of the Ignite instance this thread belongs to.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
|
IgniteThread(GridWorker worker)
Creates thread with given worker.
|
|
IgniteThread(String igniteInstanceName,
String threadName,
Runnable r)
Creates grid thread with given name for a given Ignite instance.
|
|
IgniteThread(String igniteInstanceName,
String threadName,
Runnable r,
int grpIdx,
int stripe)
Creates grid thread with given name for a given Ignite instance.
|
protected |
IgniteThread(String igniteInstanceName,
ThreadGroup threadGrp,
String threadName) |
|
IgniteThread(ThreadGroup grp,
String igniteInstanceName,
String threadName,
Runnable r,
int grpIdx,
int stripe)
Creates grid thread with given name for a given Ignite instance with specified
thread group.
|
Modifier and Type | Method and Description |
---|---|
int |
compositeRwLockIndex() |
void |
compositeRwLockIndex(int compositeRwLockIdx) |
protected static String |
createName(long num,
String threadName,
String igniteInstanceName)
Creates new thread name.
|
String |
getIgniteInstanceName()
Gets name of the Ignite instance this thread belongs to.
|
int |
stripe() |
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public static final int GRP_IDX_UNASSIGNED
protected final String igniteInstanceName
public IgniteThread(GridWorker worker)
worker
- Runnable to create thread with.public IgniteThread(String igniteInstanceName, String threadName, Runnable r)
igniteInstanceName
- Name of the Ignite instance this thread is created for.threadName
- Name of thread.r
- Runnable to execute.public IgniteThread(String igniteInstanceName, String threadName, Runnable r, int grpIdx, int stripe)
igniteInstanceName
- Name of the Ignite instance this thread is created for.threadName
- Name of thread.r
- Runnable to execute.grpIdx
- Index within a group.stripe
- Non-negative stripe number if this thread is striped pool thread.public IgniteThread(ThreadGroup grp, String igniteInstanceName, String threadName, Runnable r, int grpIdx, int stripe)
grp
- Thread group.igniteInstanceName
- Name of the Ignite instance this thread is created for.threadName
- Name of thread.r
- Runnable to execute.grpIdx
- Thread index within a group.stripe
- Non-negative stripe number if this thread is striped pool thread.protected IgniteThread(String igniteInstanceName, ThreadGroup threadGrp, String threadName)
igniteInstanceName
- Name of the Ignite instance this thread is created for.threadGrp
- Thread group.threadName
- Name of thread.public int stripe()
public String getIgniteInstanceName()
public int compositeRwLockIndex()
public void compositeRwLockIndex(int compositeRwLockIdx)
compositeRwLockIdx
- Composite RW lock index.protected static String createName(long num, String threadName, String igniteInstanceName)
num
- Thread number.threadName
- Thread name.igniteInstanceName
- Ignite instance name.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017