Class ThreadQueue
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.renderer.ThreadQueue
-
public class ThreadQueue extends Object
Limits the number of executing threads to a specified maximum.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ThreadQueue.Listener
-
Constructor Summary
Constructors Constructor Description ThreadQueue(int maxRunningThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Runnable runnable)
void
add(ThreadQueue.Listener listener)
void
clear()
void
dispose()
int
getRunningThreads()
void
remove(ThreadQueue.Listener listener)
-
-
-
Method Detail
-
clear
public void clear()
-
add
public void add(Runnable runnable)
-
getRunningThreads
public int getRunningThreads()
-
add
public void add(ThreadQueue.Listener listener)
-
remove
public void remove(ThreadQueue.Listener listener)
-
dispose
public void dispose()
-
-