|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
fr.esrf.tangoatk.core.Refresher
public class Refresher
ARefresher is used as a base class to implement refreshers of
IRefreshees. Refreshers are Threads which calls the IEntityCollections
refresh method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected static java.lang.ThreadGroup |
refreshers
|
boolean |
running
|
boolean |
stop
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Refresher()
|
|
Refresher(java.lang.String s)
|
|
| Method Summary | |
|---|---|
java.lang.Thread |
addRefreshee(IRefreshee e)
addRefreshee is used by the refreshee to add itself to the
ARefresher. |
IRefreshee |
getRefreshee()
|
long |
getRefreshInterval()
|
java.lang.String |
getVersion()
|
boolean |
isRunning()
|
boolean |
isSynchronizedPeriod()
To know wheather the period is resynchronized or not |
boolean |
isTraceUnexpected()
To know wheather unexpected exceptions are traced or not |
void |
run()
|
void |
setRefreshee(IRefreshee refreshee)
|
void |
setRefreshInterval(long milliSeconds)
|
void |
setSynchronizedPeriod(boolean synchronizedP)
To synchronize or not the refreshing period. |
void |
setTraceUnexpected(boolean trace)
To trace or not unexpected Exceptions. |
void |
start()
|
void |
stopRunning()
|
| 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 |
| Field Detail |
|---|
public boolean stop
public boolean running
protected static java.lang.ThreadGroup refreshers
| Constructor Detail |
|---|
public Refresher()
public Refresher(java.lang.String s)
| Method Detail |
|---|
public void setRefreshInterval(long milliSeconds)
public long getRefreshInterval()
public void start()
start in class java.lang.Threadpublic void stopRunning()
public boolean isRunning()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.lang.Thread addRefreshee(IRefreshee e)
addRefreshee is used by the refreshee to add itself to the
ARefresher. This method returns its Thread so that the IRefreshee
implementator can write
refrehser.addRefreshee(this).start();
e - an IRefreshee value
Thread valuepublic java.lang.String getVersion()
public void setSynchronizedPeriod(boolean synchronizedP)
synchronizedP - 21 dec. 2005public boolean isSynchronizedPeriod()
public void setTraceUnexpected(boolean trace)
synchronizedP - 21 dec. 2005public boolean isTraceUnexpected()
public IRefreshee getRefreshee()
public void setRefreshee(IRefreshee refreshee)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||