Here you can find the source of getExecutor()
public static ExecutorService getExecutor()
//package com.java2s; //License from project: Open Source License import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Main { private static ExecutorService executor; /**/*from w ww .j a v a 2 s. c o m*/ * Gets an existing cached thread pool or creates new one if none exists * * @return */ public static ExecutorService getExecutor() { if (executor == null) { executor = Executors.newCachedThreadPool(); } return executor; } }