|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biz.chitec.qdemo.gjsa.TransactionLoggerDemo.SimpleReceiver
Example receiver. Implements special handle thread. Normally, all receivers should do this to guarantee that the handleLogObject method does not need too much time (handling should be asynchronously from giving the handling information.
Field Summary | |
private boolean |
active
|
private int |
lastfinished
|
private ThreadInterface |
ti
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
TransactionLoggerDemo.SimpleReceiver(java.lang.String namex)
Constructor for the SimpleReceiver object |
Method Summary | |
int |
getLastFinished()
Gets the lastFinished attribute of the SimpleReceiver object |
void |
handleLogObject(Logger src,
java.lang.Object o)
Interface method. |
boolean |
isActive()
Gets the active attribute of the SimpleReceiver object |
void |
run()
Main processing method for the SimpleReceiver object |
void |
setActive(boolean b)
Sets the active attribute of the SimpleReceiver object |
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 |
private ThreadInterface ti
private int lastfinished
private boolean active
Constructor Detail |
public TransactionLoggerDemo.SimpleReceiver(java.lang.String namex)
namex
- Description of the ParameterMethod Detail |
public int getLastFinished()
public void setActive(boolean b)
b
- The new active valuepublic boolean isActive()
public void handleLogObject(Logger src, java.lang.Object o)
handleLogObject
in interface LoggingReceiver
src
- Description of the Parametero
- Description of the Parameterpublic void run()
run
in interface java.lang.Runnable
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |