public class TraditionalWorkerThread extends DirectoryThread
Thread.State, Thread.UncaughtExceptionHandler
DIRECTORY_THREAD_GROUP
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TraditionalWorkerThread(TraditionalWorkQueue workQueue,
int threadID)
Creates a new worker thread that will service the provided work queue and process any new requests that are
submitted.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getDebugProperties()
Retrieves any relevant debug information with which this tread is associated so they can be included in debug
messages.
|
boolean |
isActive()
Indicates whether this worker thread is actively processing a request.
|
void |
run()
Operates in a loop, retrieving the next request from the work queue, processing it, and then going back to the
queue for more.
|
void |
setStoppedByReducedThreadNumber()
Indicates that this thread is about to be stopped because the Directory Server configuration has been updated to
reduce the number of worker threads.
|
void |
shutDown()
Indicates that the Directory Server has received a request to stop running and that this thread should stop
running as soon as possible.
|
getAssociatedTask, getCreationStackTrace, getParentThread, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWork
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, toString, yield
public TraditionalWorkerThread(TraditionalWorkQueue workQueue, int threadID)
workQueue
- The work queue with which this worker thread is associated.threadID
- The thread ID for this worker thread.public void setStoppedByReducedThreadNumber()
public boolean isActive()
true
if this worker thread is actively processing a request, or false
if it is idle.public void run()
public void shutDown()
public Map<String,String> getDebugProperties()
getDebugProperties
in class DirectoryThread
Copyright 2010-2020 ForgeRock AS.