|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.elite.jdcbot.framework.EventDispatchThread
public class EventDispatchThread
Created on 27-May-08
The task of this class is to run a thread (jDCBot-EventDispatchThread), which can be used to call
methods of various methods, making the code of those methods run in this thread, asynchornously from
the calling method.
Nested Class Summary | |
---|---|
private class |
EventDispatchThread.DispatchEntity
Deprecated. |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private java.util.List<EventDispatchThread.DispatchEntity> |
dispatch
Deprecated. |
private boolean |
running
Deprecated. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
EventDispatchThread()
Deprecated. |
Method Summary | |
---|---|
void |
call(java.lang.Object owner,
java.lang.String method,
java.lang.Class[] param_types,
java.lang.Object... args)
Deprecated. Use this to invoke a call to a method via this (jDCBot-EventDispatchThread) thread, but you will also need to specify arguments' types in param_types argument. |
void |
run()
Deprecated. |
void |
stopIt()
Deprecated. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.List<EventDispatchThread.DispatchEntity> dispatch
private volatile boolean running
Constructor Detail |
---|
public EventDispatchThread()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void call(java.lang.Object owner, java.lang.String method, java.lang.Class[] param_types, java.lang.Object... args)
owner
- The object of whom method is memeber.method
- The case-sensitive name of the method. This can be public only.param_types
- The array of arguments' types.
Note:int i;
new Class[]{int.class}
PrimitiveWrapper
.args
- All the arguments of the method.public void stopIt()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |