|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
gov.sandia.ccaffeine.dc.user_iface.MVC.event.ThreadWaitForResultSet
public class ThreadWaitForResultSet
We sent a query to an entity. Wait for that entity to respond. The entity will either send us the result set or send us an exception.
We have two possible scenarios. In the first scenario, this thread is started BEFORE the entity sends back a result set in response to the query. In the second scenario, this thread is started AFTER the entity sens back a result set.
SCENARIO:
this thread is started
this thread waits for the ResultSetEvent to arrive
entity processes query and sends ResultSetEvent
This thread terminates
SCENARIO:
entity processes query and sends ResultSetEvent
this thread is started
this thread immediately terminates
| 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 |
| Constructor Summary | |
|---|---|
ThreadWaitForResultSet()
|
|
| Method Summary | |
|---|---|
ExceptionEvent |
getExceptionEvent()
Retrieve the ExceptionEvent. |
ResultSetEvent |
getResultSetEvent()
Retrieve the ResultSetEvent. |
void |
receivedException(ExceptionEvent event)
|
void |
receivedResultSet(ResultSetEvent event)
|
void |
run()
Wait for a result set or an exception or a time out |
void |
start()
Start the thread. |
| Methods inherited from class java.lang.Thread |
|---|
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, 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 ThreadWaitForResultSet()
| Method Detail |
|---|
public ResultSetEvent getResultSetEvent()
public ExceptionEvent getExceptionEvent()
public void start()
start in class java.lang.Threadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void receivedResultSet(ResultSetEvent event)
receivedResultSet in interface ResultSetListenerpublic void receivedException(ExceptionEvent event)
receivedException in interface ResultSetListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||