|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.entra.phantom.server.ClientWorker
public class ClientWorker
The threaded client session that one clients can connect to.
| Nested Class Summary | |
|---|---|
static interface |
ClientWorker.ClientWorkerInterface
|
| Field Summary | |
|---|---|
static int |
REPLYTYPE_HTMLAPPEVENT
|
static int |
REPLYTYPE_SERVERCALLBACK
|
| Method Summary | |
|---|---|
void |
flagClientEventForProcessing()
Flags a client change event for processing. |
void |
flagHostEventForProcessing()
Flags a host change event for processing. |
Transaction |
getModalReturnCode(int returnType)
Waits and gets a modal return code-transaction that is corresponding with a certain return type (such as message box or clip board). |
Object |
getModalReturnCodeObject(int returnType,
long waitDelay)
Waits and gets a modal return code-object that is corresponding with a certain return type (such as message box or clip board). |
Object |
invokeAndWait(ServerAction serverAction)
Invokes the server action in the client worker thread and waits for a reply. |
void |
invokeLater(ServerAction serverAction)
Invokes the server action in the client worker thread later and doesn't wait for a reply. |
boolean |
isEventPosted()
Check if client event is posted for processing. |
boolean |
isWorkerThread()
Checks if the current thread is the worker thread. |
void |
postHttpClientTransaction(ClientWorker.ClientWorkerInterface cli)
Posts a HTTP client transaction for processing. |
void |
run()
Starts running the threaded client worker. |
Object |
serverCallbackEvent(boolean waitForReply,
Object caller,
Object paramObj)
Post a HTML Application event for callback processing in the main thread. |
void |
setModalReturnCode(int returnType,
Object obj,
boolean singleReply)
Sets the return code for a waiting thread "blocked" on the getModalReturnCode method. |
void |
setModalReturnCode(Transaction trans)
Sets the return code for a waiting thread "blocked" on the getModalReturnCode method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REPLYTYPE_SERVERCALLBACK
public static final int REPLYTYPE_HTMLAPPEVENT
| Method Detail |
|---|
public boolean isWorkerThread()
public void run()
run in interface Runnablepublic Transaction getModalReturnCode(int returnType)
setModalReturnCode be used.
When this method is called, a waiting thread is released
with this return code.
Note: if this is the worker thread, it will continue
to process the queued messages and events. If this is another
thread, it will be blocked until another thread calls the
setModalReturnCode method.
public Object getModalReturnCodeObject(int returnType,
long waitDelay)
setModalReturnCode be used.
When this method is called, a waiting thread is released
with this return code.
Note: if this is the worker thread, it will continue
to process the queued messages and events. If this is another
thread, it will be blocked until another thread calls the
setModalReturnCode method.
public void setModalReturnCode(int returnType,
Object obj,
boolean singleReply)
getModalReturnCode method.
public void setModalReturnCode(Transaction trans)
getModalReturnCode method.
public void flagHostEventForProcessing()
public void flagClientEventForProcessing()
public boolean isEventPosted()
public void postHttpClientTransaction(ClientWorker.ClientWorkerInterface cli)
public Object serverCallbackEvent(boolean waitForReply,
Object caller,
Object paramObj)
public void invokeLater(ServerAction serverAction)
public Object invokeAndWait(ServerAction serverAction)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||