All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticsearch.testframework.threadpool.TestThreadPool Maven / Gradle / Ivy

package org.elasticsearch.testframework.threadpool;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.node.Node;
import org.elasticsearch.threadpool.ThreadPool;

public class TestThreadPool extends ThreadPool {

    public TestThreadPool(String name) {
        this(name, Settings.EMPTY);
    }

    public TestThreadPool(String name, Settings settings) {
        super(Settings.builder().put(Node.NODE_NAME_SETTING.getKey(), name).put(settings).build());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy