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 interfaceThreadQueue.Listener
-
Constructor Summary
Constructors Constructor Description ThreadQueue(int maxRunningThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Runnable runnable)voidadd(ThreadQueue.Listener listener)voidclear()voiddispose()intgetRunningThreads()voidremove(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()
-
-