| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private class | |
| private class | |
| private class | |
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final ExecutorService | |
| pack-priv static final MLogger | |
| pack-priv int | |
| pack-priv final int | |
| pack-priv BoundedExecutorService. | |
| pack-priv Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized void | |
| public synchronized boolean | awaitTermination(long
the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first. |
| private void | |
| public void | execute(Runnable
the runnable task runnable)Implements java. Executes the given command at some time in the future. |
| public synchronized BoundedExecutorService. | |
| public synchronized boolean | isShutdown()
Implements java. Returns |
| public synchronized boolean | isTerminated()
Implements java. Returns |
| protected <V> RunnableFuture | newTaskFor(Callable<V>
the callable task being wrapped callable)Overrides java. Returns a |
| protected <V> RunnableFuture | newTaskFor(Runnable
the runnable task being wrapped runnable, V the default value for the returned future result)Overrides java. Returns a |
| private synchronized void | |
| private boolean | |
| public synchronized void | shutdown()
Implements java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
| public synchronized List | shutdownNow()
Implements java. Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. |
| private void |
| blockBound | back to summary |
|---|---|
| pack-priv final int blockBound | |
| inner | back to summary |
|---|---|
| pack-priv final ExecutorService inner | |
| logger | back to summary |
|---|---|
| pack-priv static final MLogger logger | |
| permits | back to summary |
|---|---|
| pack-priv int permits | |
| restartBeneath | back to summary |
|---|---|
| pack-priv final int restartBeneath | |
| state | back to summary |
|---|---|
| pack-priv BoundedExecutorService. | |
| waiters | back to summary |
|---|---|
| pack-priv Map<Thread, Runnable> waiters | |
| BoundedExecutorService | back to summary |
|---|---|
| public BoundedExecutorService(ExecutorService inner, int blockBound, int restartBeneath) | |
| BoundedExecutorService | back to summary |
|---|---|
| public BoundedExecutorService(ExecutorService inner, int blockBound) | |
| acquirePermit | back to summary |
|---|---|
| private synchronized void acquirePermit(Runnable task) | |
| awaitTermination | back to summary |
|---|---|
| public synchronized boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException Implements java. Doc from java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
| |
| doUpdateState | back to summary |
|---|---|
| private void doUpdateState(BoundedExecutorService. | |
| execute | back to summary |
|---|---|
| public void execute(Runnable runnable) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the
| |
| getState | back to summary |
|---|---|
| public synchronized BoundedExecutorService. | |
| isShutdown | back to summary |
|---|---|
| public synchronized boolean isShutdown() Implements java. Doc from java. Returns
| |
| isTerminated | back to summary |
|---|---|
| public synchronized boolean isTerminated() Implements java. Doc from java. Returns
| |
| newTaskFor | back to summary |
|---|---|
| protected <V> RunnableFuture Overrides java. Doc from java. Returns a
| |
| newTaskFor | back to summary |
|---|---|
| protected <V> RunnableFuture Overrides java. Doc from java. Returns a
| |
| releasePermit | back to summary |
|---|---|
| private synchronized void releasePermit() | |
| shouldWait | back to summary |
|---|---|
| private boolean shouldWait() | |
| shutdown | back to summary |
|---|---|
| public synchronized void shutdown() Implements java. Doc from java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down. This method does not wait for previously submitted tasks to
complete execution. Use | |
| shutdownNow | back to summary |
|---|---|
| public synchronized List Implements java. Doc from java. Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. This method does not wait for actively executing tasks to
terminate. Use There are no guarantees beyond best-effort attempts to stop
processing actively executing tasks. For example, typical
implementations will cancel via | |
| updateState | back to summary |
|---|---|
| private void updateState(BoundedExecutorService. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| setTask | back to summary |
|---|---|
| public void setTask(BoundedExecutorService. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Callable | |
| pack-priv BoundedExecutorService. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public V | call()
Implements java. Computes a result, or throws an exception if unable to do so. |
| public void |
| callable | back to summary |
|---|---|
| pack-priv Callable<V> callable | |
| task | back to summary |
|---|---|
| pack-priv BoundedExecutorService. | |
| PermitAcquiringCallable | back to summary |
|---|---|
| pack-priv PermitAcquiringCallable(Callable<V> callable) | |
| call | back to summary |
|---|---|
| public V call() throws Exception Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| setTask | back to summary |
|---|---|
| public void setTask(BoundedExecutorService. Implements com. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Runnable | |
| pack-priv BoundedExecutorService. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| runnable | back to summary |
|---|---|
| pack-priv Runnable runnable | |
| task | back to summary |
|---|---|
| pack-priv BoundedExecutorService. | |
| PermitAcquiringRunnable | back to summary |
|---|---|
| pack-priv PermitAcquiringRunnable(Runnable runnable) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setTask | back to summary |
|---|---|
| public void setTask(BoundedExecutorService. Implements com. | |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | done()
Overrides java. Protected method invoked when this task transitions to state
|
| ReleasingFutureTask | back to summary |
|---|---|
| pack-priv ReleasingFutureTask(BoundedExecutorService. | |
| ReleasingFutureTask | back to summary |
|---|---|
| pack-priv ReleasingFutureTask(BoundedExecutorService. | |
| done | back to summary |
|---|---|
| protected void done() Overrides java. Doc from java. Protected method invoked when this task transitions to state
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BoundedExecutorService. | |
| public static final BoundedExecutorService. | |
| public static final BoundedExecutorService. | |
| public static final BoundedExecutorService. | |
| public static final BoundedExecutorService. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BoundedExecutorService. | |
| public static BoundedExecutorService. |
| ACCEPTING | back to summary |
|---|---|
| public static final BoundedExecutorService. | |
| SATURATED | back to summary |
|---|---|
| public static final BoundedExecutorService. | |
| SHUTDOWN | back to summary |
|---|---|
| public static final BoundedExecutorService. | |
| SHUTDOWN_NOW | back to summary |
|---|---|
| public static final BoundedExecutorService. | |
| UNWINDING | back to summary |
|---|---|
| public static final BoundedExecutorService. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static BoundedExecutorService. | |
| values | back to summary |
|---|---|
| public static BoundedExecutorService. | |