public class AjaxSwingThread
extends java.lang.Thread
| Modifier and Type | Class and Description |
|---|---|
static class |
AjaxSwingThread.ThreadFlag
Lock flag that is used to synchronize the execution of operations on this thread
|
| Modifier and Type | Field and Description |
|---|---|
static int |
EMULATE_REQUEST |
static int |
VOID_METHOD_VOID |
| Constructor and Description |
|---|
AjaxSwingThread(AjaxSwingThreadGroup group) |
| Modifier and Type | Method and Description |
|---|---|
void |
emulateRequest(AbstractDocument page,
HttpRequestData data)
Runs request emulation on this thread
|
AjaxSwingThreadGroup |
getAjaxSwingThreadGroup()
Returns AjaxSwingThreadGroup that own this thread
|
ClientAgent |
getClientAgent()
Returns the client agent that owns this thread
|
java.lang.Object |
getFlag()
Returns thread flag.
|
boolean |
isBlocked()
Returns true if this thread is currently blocked
|
boolean |
isRunning()
Returns true if this thread is currently executing an operation
|
void |
raiseFlag()
Notifies the caller (the client agent)
that the thread has finished the processing of an operation
|
void |
resetData()
Release all references so objects can be garbage collected
|
void |
run()
Runs a loop waiting for an operation to process.
|
void |
runMethod(ClientAgent clientAgent,
java.lang.Object object,
java.lang.String methodName)
Runs the object's method with a given name on this thread.
|
void |
setBlocked(boolean blocked)
Called by GUI subsystem to notify this thread that it is about to become blocked.
|
void |
shutdown()
Stops this thread
|
java.lang.String |
toString() |
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, yieldpublic static final int VOID_METHOD_VOID
public static final int EMULATE_REQUEST
public AjaxSwingThread(AjaxSwingThreadGroup group)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void runMethod(ClientAgent clientAgent, java.lang.Object object, java.lang.String methodName) throws java.lang.Exception
clientAgent - ClientAgentobject - ObjectmethodName - name of the method to run. The method should have no parameters and should return no valuesjava.lang.Exceptionpublic void emulateRequest(AbstractDocument page, HttpRequestData data) throws java.lang.Exception
page - HTMLPagedata - HttpRequestDatajava.lang.Exceptionpublic void setBlocked(boolean blocked)
blocked - booleanpublic boolean isBlocked()
public boolean isRunning()
public java.lang.Object getFlag()
public void raiseFlag()
public ClientAgent getClientAgent()
public void resetData()
public java.lang.String toString()
toString in class java.lang.Threadpublic AjaxSwingThreadGroup getAjaxSwingThreadGroup()
public void shutdown()
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.