public final class BoundedTaskExecutor
extends java.util.concurrent.AbstractExecutorService
instead
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.List<java.lang.Runnable> |
clearAndCancelAll() |
void |
execute(java.lang.Runnable task) |
boolean |
isEmpty() |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow() |
java.lang.String |
toString() |
void |
waitAllTasksExecuted(long timeout,
java.util.concurrent.TimeUnit unit) |
public void shutdown()
public java.util.List<java.lang.Runnable> shutdownNow()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void execute(java.lang.Runnable task)
public void waitAllTasksExecuted(long timeout, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public boolean isEmpty()
public java.util.List<java.lang.Runnable> clearAndCancelAll()
public java.lang.String toString()
toString
in class java.lang.Object