| Modifier and Type | Class and Description |
|---|---|
static interface |
ClientWorker.ClientWorkerInterface |
| Modifier and Type | Field and Description |
|---|---|
static int |
REPLYTYPE_HTMLAPPEVENT |
static int |
REPLYTYPE_SERVERCALLBACK |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static final int REPLYTYPE_SERVERCALLBACK
public static final int REPLYTYPE_HTMLAPPEVENT
public boolean isWorkerThread()
public void run()
public 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)
Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.