@Override
    public void getConfig(ContainerThreadpoolConfig.Builder builder) {
        setDefaultConfigValues(builder);

        builder.name(this.name);
        if (options.max() != null) {
            int max = (int) Math.round(options.max());
            if (options.max() != 0 && max == 0) max = options.max() > 0 ? 1 : -1;
            builder.maxThreads(max);
        }
        if (options.min() != null) {
            int min = (int) Math.round(options.min());
            if (options.min() != 0 && min == 0) min = options.min() > 0 ? 1 : -1;
            builder.minThreads(min);
        }
        if (options.queue() != null) {
            int queue = (int) Math.round(options.queue());
            if (options.queue() != 0 && queue == 0) queue = options.queue() > 0 ? 1 : -1;
            builder.queueSize(queue);
        }
    }
Component definition for a {@link java.util.concurrent.Executor} using {@link ContainerThreadPool}.

@author bjorncs
config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java