@Override public boolean isShutdown() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return false; return executor.isShutdown(); }
@Override public int getCorePoolSize() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getCorePoolSize(); }
@Override public int getPoolSize() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getPoolSize(); }
@Override public int getActiveCount() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getActiveCount(); }
@Override public int getMaximumPoolSize() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getMaximumPoolSize(); }
@Override public int getQueuedTasks() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getQueue().size(); } }
@Override public long getTaskCount() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getTaskCount(); }
@Override public long getKeepAliveTime() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getKeepAliveTime(TimeUnit.MILLISECONDS); }
@Override public long getCompletedTaskCount() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getCompletedTaskCount(); }
@Override public boolean isTerminating() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return false; return executor.isTerminating(); }
@Override public boolean isTerminated() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return false; return executor.isTerminated(); }
@Override public String getRejectedExecutionHandler() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return null; return executor.getRejectedExecutionHandler().toString(); }
@Override public int getLargestPoolSize() { final ThreadPoolExecutor executor = getMonitored(); if (executor == null) return -1; return executor.getLargestPoolSize(); }