|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.ibm.di.queue.QNotification
public class QNotification
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
OP_AVAILABLE
|
static int |
OP_EMPTY
|
static int |
OP_FULL
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
QNotification(Log l,
MemBufferQ src)
|
|
| Method Summary | |
|---|---|
void |
register(QCallback a,
int purpose)
register : registers a callback which will be called when memQ is empty/full/data available it is assumed that the callback implements the handle()function |
void |
run()
run : the thread run method issues full/empty/data available triggers to objects registered for respective triggers |
void |
setPurpose(int p)
setPurpose set the operation that should be handled |
void |
unregister(QCallback a,
int purpose)
unregister : unregisters a callback |
| 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 |
|---|
public static final int OP_FULL
public static final int OP_EMPTY
public static final int OP_AVAILABLE
| Constructor Detail |
|---|
public QNotification(Log l,
MemBufferQ src)
| Method Detail |
|---|
public void setPurpose(int p)
p - full/empty/data available
public void register(QCallback a,
int purpose)
a - object to be triggeredpurpose - full/empty/data available
public void unregister(QCallback a,
int purpose)
throws java.lang.Exception
a - object to be unregisteredpurpose - full/empty/data available if -1 unregister the object from all
callbacks
java.lang.Exception - if callback object is not foundpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||