Here you can find the source of getExecutorService(String usage)
public static ExecutorService getExecutorService(String usage)
//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*/ }