Class SliceThread
java.lang.Object
java.lang.Thread
org.apache.openjpa.slice.SliceThread
- All Implemented Interfaces:
Runnable
A thread to execute operation against each database slice.
- Author:
- Pinaki Poddar
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionSliceThread(String name, Thread parent, Runnable r) SliceThread(Thread parent, Runnable r) -
Method Summary
Modifier and TypeMethodDescriptionGets the parent thread of this receiver.static ExecutorServicegetPool()Create a cached pool of slice threads.Methods inherited from class 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
-
Constructor Details
-
SliceThread
-
SliceThread
-
-
Method Details
-
getParent
Gets the parent thread of this receiver. -
getPool
Create a cached pool of slice threads. The thread factory creates specialized threads for preferential locking treatment.
-