|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.xins.client.async.CallCAPIThread
Class used to call an API in a separate thread.
To call the API, you will need to invoke the Thread.start()
method.
If you want to wait for the result at a certain point in your program,
invoke the Thread.join()
method.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
CallCAPIThread(AbstractCAPI capi,
AbstractCAPICallRequest request)
Calls a CAPI function on a separate thread. |
Method Summary | |
AbstractCAPI |
getCAPI()
Gets the CAPI used to call the function. |
long |
getDuration()
Gets the time it took to call the function. |
Exception |
getException()
Gets the exception thrown by the CAPI call. |
AbstractCAPICallRequest |
getRequest()
Gets the request used to the call the function. |
AbstractCAPICallResult |
getResult()
Gets the result returned by the function. |
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
Constructor Detail |
public CallCAPIThread(AbstractCAPI capi, AbstractCAPICallRequest request)
capi
- the CAPI to use to call the function.request
- the input parameters for this call.Method Detail |
public void run()
public AbstractCAPI getCAPI()
public AbstractCAPICallRequest getRequest()
public AbstractCAPICallResult getResult()
AbstractCAPICallResult
to the generated result file normally returned by the CAPI call.
public Exception getException()
CallException
.public long getDuration()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |