|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.hd.d.pg2k.webSvr.exhibit.DataSourceBean.BackGroundThread
private static final class DataSourceBean.BackGroundThread
Operates the poll()ing/background Thread. Retains only a WeakReference to the bean instance to as to allow GC.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private int |
basicBgInterval
Approx average interval between calls to doBG() in ms; maximum interval no more than twice this. |
private java.lang.ref.WeakReference<DataSourceBean> |
beanInstance
Non-strong reference back to the bean instance; never null but the referent may be. |
private int |
maxBgInterval
We'll back off to an upper limit if we encounter errors in polling. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
private |
DataSourceBean.BackGroundThread(DataSourceBean dsb)
|
| Method Summary | |
|---|---|
void |
run()
Call poll(). |
| 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 |
| Field Detail |
|---|
private final java.lang.ref.WeakReference<DataSourceBean> beanInstance
private final int basicBgInterval
Different per instance to make collisions, etc, less likely.
private final int maxBgInterval
This is short enough not to completely wreck performance/interaction, or (eg) break the variable pipeline.
| Constructor Detail |
|---|
private DataSourceBean.BackGroundThread(DataSourceBean dsb)
| Method Detail |
|---|
public final void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
DHD Multimedia Gallery V1.53.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||