Here you can find the source of isShutdown(Executor executor)
public static boolean isShutdown(Executor executor)
//package com.java2s; //License from project: Apache License import java.util.concurrent.*; public class Main { public static boolean isShutdown(Executor executor) { if (executor instanceof ExecutorService) { if (((ExecutorService) executor).isShutdown()) { return true; }//w ww . ja v a 2 s. c om } return false; } }