Package jadex.commons.concurrent
Class ThreadPool.ServiceThread
- java.lang.Object
- 
- java.lang.Thread
- 
- jadex.commons.concurrent.ThreadPool.ServiceThread
 
 
- 
- All Implemented Interfaces:
- java.lang.Runnable
 - Enclosing class:
- ThreadPool
 
 public class ThreadPool.ServiceThread extends java.lang.ThreadA service thread executes tasks.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleannotifiedprotected java.lang.RunnabletaskThe actual task.protected booleanterminated
 - 
Constructor SummaryConstructors Constructor Description ServiceThread()Create a new thread.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.RunnablegetTask()Get the runnable (the task).protected voidmarkParked()(method "park" already exists in android - do not overwrite)protected voidmarkUnpark()(method "unpark" already exists in android - do not overwrite)protected voidremove()Remove the service thread from the pool.voidrun()Dequeue an element from the queue and execute it.java.lang.StringtoString()Get the string representation.- 
Methods inherited from class java.lang.ThreadactiveCount, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
 
- 
 
- 
- 
- 
Method Detail- 
runpublic void run() Dequeue an element from the queue and execute it.- Specified by:
- runin interface- java.lang.Runnable
- Overrides:
- runin class- java.lang.Thread
 
 - 
markParkedprotected void markParked() (method "park" already exists in android - do not overwrite)
 - 
markUnparkprotected void markUnpark() (method "unpark" already exists in android - do not overwrite)
 - 
removeprotected void remove() Remove the service thread from the pool.
 - 
getTaskpublic java.lang.Runnable getTask() Get the runnable (the task).- Returns:
- The runnable.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Thread
 
 
- 
 
-