Semaphore. New tasks can start iff the latch is non-zero. The maximum parallelism is the minimum of the value specified to the constructor and the potential parallelism of the delegate service.
Note: The pattern for running tasks on this service is generally to
Runnable and to make that
FutureTask if you want to await the
Callable or otherwise manage its execution.
Note: This class can NOT be trivially wrapped as an
since the resulting delegation pattern for submit() winds up invoking
execute() on the delegate
ExecutorService rather than on this class.
|Constructor and Description|
|Modifier and Type||Method and Description|
Return the maximum parallelism allowed by this
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.