javax.media.j3d
Class NotificationThread

java.lang.Object
  extended by java.lang.Thread
      extended by javax.media.j3d.NotificationThread
All Implemented Interfaces:
java.lang.Runnable

 class NotificationThread
extends java.lang.Thread

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

WAIT

private static final int WAIT
See Also:
Constant Field Values

NOTIFY

private static final int NOTIFY
See Also:
Constant Field Values

STOP

private static final int STOP
See Also:
Constant Field Values

running

private volatile boolean running

waiting

private boolean waiting

ready

private boolean ready

notificationQueue

private java.util.LinkedList notificationQueue
Constructor Detail

NotificationThread

NotificationThread(java.lang.ThreadGroup t)
Creates a new instance of NotificationThread

Method Detail

addNotification

void addNotification(J3dNotification n)
Adds a notification message to the queue


getNotifications

private J3dNotification[] getNotifications()
Gets the list of queued notification messages


processNotifications

private void processNotifications()
Processes all pending notification messages


finish

void finish()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

runMonitor

private void runMonitor(int action)


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.