|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
prefuse.data.io.sql.DataSourceWorker
Worker thread that asynchronously handles a queue of jobs, with each job responsible for issuing a query and processing the results. Currently involves just a single thread, in the future this may be expanded to thread pool for greater concurrency.
DatabaseDataSource| Nested Class Summary | |
static class |
DataSourceWorker.Entry
Stores the parameters of a data query and processing job. |
static interface |
DataSourceWorker.Listener
Listener interface for receiving notifications about the status of a submitted data query and processing job. |
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
void |
run()
|
static void |
submit(DataSourceWorker.Entry e)
Submit a job to the worker thread. |
| 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 |
| Method Detail |
public static void submit(DataSourceWorker.Entry e)
e - an DataSourceWorker.Entry instance that contains
the parameters of the job.public void run()
Runnable.run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||