Example usage for java.util.concurrent Executors newWorkStealingPool

List of usage examples for java.util.concurrent Executors newWorkStealingPool

Introduction

In this page you can find the example usage for java.util.concurrent Executors newWorkStealingPool.

Prototype

public static ExecutorService newWorkStealingPool() 

Source Link

Document

Creates a work-stealing thread pool using the number of Runtime#availableProcessors available processors as its target parallelism level.

Usage

From source file:com.oembedler.moon.graphql.engine.execute.GraphQLQueryExecutor.java

public GraphQLQueryExecutor forkJoinExecutorService() {
    this.executorService = Executors.newWorkStealingPool();
    return this;
}