Java Thread Executor isShutdown(Executor executor)

Here you can find the source of isShutdown(Executor executor)

Description

is Shutdown

License

Apache License

Declaration

public static boolean isShutdown(Executor executor) 

Method Source Code


//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;
    }
}

Related

  1. getChannelService()
  2. getConstantLookup()
  3. getThreadExecutor(int nThreads)
  4. isCorrectCollectionSizeTimeOut(Collection collection, int size, long timeout, TimeUnit unit)
  5. isRegularlyDone(Future future)
  6. isShutDown(ExecutorService executorService)
  7. setTimeout(Long duration, Runnable csr)
  8. submitTask(Runnable command)