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 WorkerProcessPool
public int getCapacity()
getCapacity
in interface WorkerProcessPool
public com.google.common.util.concurrent.ListenableFuture<WorkerJobResult> submitJob(String expandedJobArgs) throws IOException, InterruptedException
submitJob
in interface WorkerProcessPool
IOException
InterruptedException
public void close()
close
in interface WorkerProcessPool
close
in interface Closeable
close
in interface AutoCloseable