Code example for ThreadPoolExecutor

Methods: getQueue

0
        executor.setMaximumPoolSize(poolSize);
        executor.setCorePoolSize(poolSize);
    } 
 
    public int getQueueSize() { 
        return executor.getQueue().size();
    } 
 
    public int getActiveCount() { 
        return executor.getActiveCount();
    } 
 
    public void start() { 
    } 
 
    public void stop() { 
        executor.shutdown();
    } 
}