|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.zkoss.zkex.zul.impl.OperationThread
public class OperationThread
This class is for model sharer developer only, you rarely need to use this class.
Available in ZK PE and ZK EE.
OperationThread has only one instance in each desktop, it store it-self in the desktop by setAttribute.
It create and monitor the OperationQueue
, if there are any operation in queue, it will consume it.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
static void |
destroyWith(Desktop desktop)
Terminate a OperationThread which is stored in desktop and clear it. |
static OperationQueue |
getQueue(Desktop desktop)
Get the OperationQueue of OperationThread,
It is check is there any OperationThread exist in desktop. |
boolean |
isRunning()
Is this thread still running |
void |
run()
|
void |
terminate()
Terminate this thread. thread will be stopped after last run trip. |
Methods inherited from class java.lang.Thread |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static OperationQueue getQueue(Desktop desktop)
OperationQueue
of OperationThread,
It is check is there any OperationThread exist in desktop.
If no, create one ,start it and store in desktop, then return thread's operation queue.
If yes, return operation queue directly.
There is only one OperationThread in each desktop.
desktop
- the associated desktop
public static void destroyWith(Desktop desktop)
desktop
- the associated desktoppublic boolean isRunning()
public void terminate()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |