public class Refresher
extends java.lang.Thread
implements java.io.Serializable
ARefresher
is used as a base class to implement refreshers of
IRefreshees. Refreshers are Threads which calls the IEntityCollections
refresh method.Modifier and Type | Field and Description |
---|---|
protected static java.lang.ThreadGroup |
refreshers |
boolean |
running |
boolean |
stop |
Constructor and Description |
---|
Refresher() |
Refresher(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
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() |
activeCount, checkAccess, clone, 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
public boolean stop
public boolean running
protected static java.lang.ThreadGroup refreshers
public void setRefreshInterval(long milliSeconds)
public long getRefreshInterval()
public void start()
start
in class java.lang.Thread
public void stopRunning()
public boolean isRunning()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public 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
valueThread
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)