Here you can find the source of isShutDown(ExecutorService executorService)
public static boolean isShutDown(ExecutorService executorService)
//package com.java2s; import java.util.concurrent.ExecutorService; public class Main { public static boolean isShutDown(ExecutorService executorService) { return (executorService == null || executorService.isShutdown()); }//from ww w . ja v a 2 s . c om }