com.vividsolutions.jump.workbench.ui.renderer
Class ThreadQueue

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.ThreadQueue

public class ThreadQueue
extends java.lang.Object

Limits the number of executing threads to a specified maximum.


Nested Class Summary
static interface ThreadQueue.Listener
           
 
Constructor Summary
ThreadQueue(int maxRunningThreads)
           
 
Method Summary
 void add(java.lang.Runnable runnable)
           
 void add(ThreadQueue.Listener listener)
           
 void clear()
           
 void dispose()
           
 int getRunningThreads()
           
 void remove(ThreadQueue.Listener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadQueue

public ThreadQueue(int maxRunningThreads)
Method Detail

clear

public void clear()

add

public void add(java.lang.Runnable runnable)

getRunningThreads

public int getRunningThreads()

add

public void add(ThreadQueue.Listener listener)

remove

public void remove(ThreadQueue.Listener listener)

dispose

public void dispose()