|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.etools.systems.dstore.core.model.Handler
The Handler class is the base class for the threaded mechanisms in the DataStore. This is a thread that periodically does some activity. The frequency of handling can be configured.
Field Summary | |
---|---|
protected DataStore |
_dataStore
|
protected int |
_waitIncrement
|
static String |
Copyright
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
Handler()
Constructor |
Method Summary | |
---|---|
void |
finish()
Finish handling |
int |
getWaitTime()
Returns the time interval to wait between handling |
abstract void |
handle()
Implemented to provide the periodic activity to be done in a handler. |
boolean |
isFinished()
Indicates whether the handler is finished or not |
void |
run()
Runs the handler loop in a thread. |
void |
setDataStore(DataStore dataStore)
Sets the associated DataStore |
void |
setWaitTime(int value)
Sets the time interval to wait between handling |
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 |
Field Detail |
public static final String Copyright
protected int _waitIncrement
protected DataStore _dataStore
Constructor Detail |
public Handler()
Method Detail |
public void setWaitTime(int value)
value
- the wait intervalpublic int getWaitTime()
public void setDataStore(DataStore dataStore)
dataStore
- public boolean isFinished()
public void finish()
public abstract void handle()
public void run()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |