|
||||||||||
| 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
public class 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. |
| 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 |
| 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, 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, 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()
run in interface java.lang.Runnablerun in class java.lang.ThreadRunnable.run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||