public class AsynchronousPool
extends java.lang.Object
Constructor and Description |
---|
AsynchronousPool(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor,
Duration awaitDuration) |
Modifier and Type | Method and Description |
---|---|
static AsynchronousPool |
create(AppContext appContext) |
java.lang.Object |
invoke(java.util.concurrent.Callable<java.lang.Object> callable,
boolean isVoid) |
void |
stop() |
public AsynchronousPool(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor, Duration awaitDuration)
public static AsynchronousPool create(AppContext appContext)
public java.lang.Object invoke(java.util.concurrent.Callable<java.lang.Object> callable, boolean isVoid) throws java.lang.Throwable
java.lang.Throwable
public void stop()