public class QueuedWork
extends java.lang.Object
Constructor and Description |
---|
QueuedWork() |
Modifier and Type | Method and Description |
---|---|
static void |
add(java.lang.Runnable finisher)
Add a runnable to finish (or wait for) a deferred operation
started in this context earlier.
|
static boolean |
hasPendingWork()
Returns true if there is pending work to be done.
|
static void |
remove(java.lang.Runnable finisher) |
static java.util.concurrent.ExecutorService |
singleThreadExecutor()
Returns a single-thread Executor shared by the entire process,
creating it if necessary.
|
static void |
waitToFinish()
Finishes or waits for async operations to complete.
|
public static java.util.concurrent.ExecutorService singleThreadExecutor()
public static void add(java.lang.Runnable finisher)
public static void remove(java.lang.Runnable finisher)
public static void waitToFinish()
public static boolean hasPendingWork()