this.awaitDuration = awaitDuration;
}
public static AsynchronousPool create(final AppContext appContext) {
final Options options = appContext.getOptions();
final ExecutorBuilder builder = new ExecutorBuilder()
.prefix("AsynchronousPool")
.size(options.get("AsynchronousPool.Size", 5))
.threadFactory(new DaemonThreadFactory("@Asynchronous", appContext.getId()));
return new AsynchronousPool(
builder.build(options),
options.get("AsynchronousPool.ShutdownWaitDuration", new Duration(1, TimeUnit.MINUTES)));
}