|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoemware.core.MultiThread
public abstract class MultiThread
The multiple thread object. This creates multiple threads of the extended class, and runs them.
| Constructor Summary | |
|---|---|
MultiThread(int pThreadCount,
java.lang.String pThreadName)
Create a new object with params. |
|
MultiThread(int pThreadCount,
java.lang.String pThreadName,
int pThreadPriority,
boolean pJoinThread)
Create a new object with params. |
|
MultiThread(long pSleepTime,
int pThreadCount,
java.lang.String pThreadName,
int pThreadPriority,
boolean pJoinThread)
Create the new object. |
|
MultiThread(java.lang.String pThreadName)
Create a new object with params. |
|
MultiThread(java.lang.String pThreadName,
long pSleepTime)
Create a new object with params. |
|
| Method Summary | |
|---|---|
abstract void |
execute()
This is implemented by the extending class. |
int |
getThreadCount()
Returns the thread count. |
void |
run()
The run method. |
void |
setThreadCount(int pCount)
Set the thread count. |
void |
shutdown()
Shutdown the component. |
void |
startup()
Start the component/threads. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiThread(long pSleepTime,
int pThreadCount,
java.lang.String pThreadName,
int pThreadPriority,
boolean pJoinThread)
pSleepTime - The sleep time.pThreadCount - The thread count.pThreadName - The thread name.pThreadPriority - The thread priority.
public MultiThread(int pThreadCount,
java.lang.String pThreadName)
pThreadCount - The thread count.pThreadName - The thread name.public MultiThread(java.lang.String pThreadName)
pThreadName - The thread name.
public MultiThread(java.lang.String pThreadName,
long pSleepTime)
pThreadName - The thread name.pSleepTime - The sleep time.
public MultiThread(int pThreadCount,
java.lang.String pThreadName,
int pThreadPriority,
boolean pJoinThread)
pThreadCount - The thread count.pThreadName - The thread name.pThreadPriority - The thread priority.| Method Detail |
|---|
public final void startup()
public final void shutdown()
public final void run()
run in interface java.lang.Runnablepublic abstract void execute()
public final void setThreadCount(int pCount)
pCount - The number of threads to spawn.public final int getThreadCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||