public class WorkerProcessPoolAsync extends Object implements WorkerProcessPool
| Constructor and Description |
|---|
WorkerProcessPoolAsync(int maxRequests,
com.google.common.hash.HashCode poolHash,
ThrowingSupplier<WorkerProcess,IOException> startWorkerProcess) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCapacity() |
com.google.common.hash.HashCode |
getPoolHash() |
com.google.common.util.concurrent.ListenableFuture<WorkerJobResult> |
submitJob(String expandedJobArgs) |
public WorkerProcessPoolAsync(int maxRequests,
com.google.common.hash.HashCode poolHash,
ThrowingSupplier<WorkerProcess,IOException> startWorkerProcess)
public com.google.common.hash.HashCode getPoolHash()
getPoolHash in interface WorkerProcessPoolpublic int getCapacity()
getCapacity in interface WorkerProcessPoolpublic com.google.common.util.concurrent.ListenableFuture<WorkerJobResult> submitJob(String expandedJobArgs) throws IOException, InterruptedException
submitJob in interface WorkerProcessPoolIOExceptionInterruptedExceptionpublic void close()
close in interface WorkerProcessPoolclose in interface Closeableclose in interface AutoCloseable