|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
javax.media.j3d.NotificationThread
class NotificationThread
The NotificationThread class is used for asynchronous error notification, such as notifying ShaderError listeners.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private java.util.LinkedList |
notificationQueue
|
private static int |
NOTIFY
|
private boolean |
ready
|
private boolean |
running
|
private static int |
STOP
|
private static int |
WAIT
|
private boolean |
waiting
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
NotificationThread(java.lang.ThreadGroup t)
Creates a new instance of NotificationThread |
Method Summary | |
---|---|
(package private) void |
addNotification(J3dNotification n)
Adds a notification message to the queue |
(package private) void |
finish()
|
private J3dNotification[] |
getNotifications()
Gets the list of queued notification messages |
private void |
processNotifications()
Processes all pending notification messages |
void |
run()
|
private void |
runMonitor(int action)
|
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 |
---|
private static final int WAIT
private static final int NOTIFY
private static final int STOP
private volatile boolean running
private boolean waiting
private boolean ready
private java.util.LinkedList notificationQueue
Constructor Detail |
---|
NotificationThread(java.lang.ThreadGroup t)
Method Detail |
---|
void addNotification(J3dNotification n)
private J3dNotification[] getNotifications()
private void processNotifications()
void finish()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void runMonitor(int action)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |