Execute f
, returning a Future that represents the outcome.
Execute f
, returning a Future that represents the outcome.
The approximate number of tasks actively executing.
The approximate number of tasks actively executing.
-1 if this FuturePool implementation doesn't support this statistic.
The approximate number of tasks that have completed execution.
The approximate number of tasks that have completed execution.
-1 if this FuturePool implementation doesn't support this statistic.
The approximate size of the pool.
The approximate size of the pool.
While this is implementation specific, this often represents the number of threads in the pool.
-1 if this FuturePool implementation doesn't support this statistic.
A FuturePool implementation backed by an
java.util.concurrent.ExecutorService
.If a piece of work has started, it cannot be cancelled and will not propagate cancellation unless
interruptible
is true. If you want to propagate cancellation, use an InterruptibleExecutorServiceFuturePool.