Java Thread Executor Create getExecutorService(String usage)

Here you can find the source of getExecutorService(String usage)

Description

get Executor Service

License

Open Source License

Declaration

public static ExecutorService getExecutorService(String usage) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.HashMap;

import java.util.Map;
import java.util.concurrent.ExecutorService;

public class Main {
    private static Map<String, ExecutorService> executors = new HashMap<>();

    public static ExecutorService getExecutorService(String usage) {
        return executors.get(usage);
    }/*from w  w w.j  ava 2s .  co m*/
}

Related

  1. getExecutorService()
  2. getExecutorService()
  3. getExecutorService()
  4. getExecutorService(int maximumPoolSize, int corePoolSize, long keepAliveTime, final String name, RejectedExecutionHandler rejectionPolicy)
  5. getExecutorService(int poolSize)
  6. getExecutorServiceWithThreadName(final String threadNamePrefix, int threadCount)
  7. getExecutorThreadId(final ExecutorService executor)