All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.craft.atom.util.thread.MonitoringExecutorService Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
package io.craft.atom.util.thread;

import java.util.concurrent.ExecutorService;

/**
 * An {@link ExecutorService} that provides extra monitoring function.
 * 
 * @author mindwind
 * @version 1.0, Oct 13, 2014
 */
public interface MonitoringExecutorService extends ExecutorService {
	
	/**
	 * @return the approximate wait task count of the executor.
	 */
	int waitCount();
	
	/**
	 * @return the approximate executing count of the executor.
	 */
	int executingCount();
	
	/**
	 * @return the approximate complete count of the executor.
	 */
	long completeCount();
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy