@InterfaceAudience.Public @InterfaceStability.Unstable public class CloseableTaskPoolSubmitter extends Object implements TaskPool.Submitter, Closeable
| Constructor and Description |
|---|
CloseableTaskPoolSubmitter(ExecutorService pool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down the pool.
|
ExecutorService |
getPool()
Get the pool.
|
Future<?> |
submit(Runnable task)
Submit work.
|
public CloseableTaskPoolSubmitter(ExecutorService pool)
pool - non-null executor.public ExecutorService getPool()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Future<?> submit(Runnable task)
TaskPool.Submittersubmit in interface TaskPool.Submittertask - task to executeCopyright © 2008–2025 Apache Software Foundation. All rights reserved.