Code example for ThreadPoolExecutor

Methods: getActiveCount, getMaximumPoolSize

0
	/** 
	 * @see java.lang.Object#toString() 
	 */ 
	@Override 
	public String toString() {
		return ToString.de(this).add("Concurrentes", this.inmediateExecutor.getMaximumPoolSize())
				.add("Activas", this.inmediateExecutor.getActiveCount())
				.add("Pendientes", this.inmediatePendingTasks.size())
				.add("Postergadas", this.delayedDelegator.getPendingCount()).toString();
	} 
 
	/** 
	 * @see net.gaia.taskprocessor.api.processor.TaskProcessor#detener() 
	 */ 
	public void detener() { 
		// Primero detenemos las que tienen delay 
		this.delayedDelegator.detener();
 
		// Cancelamos todas las tareas pendientes 
		SubmittedTask pendingTask;
		while ((pendingTask = inmediatePendingTasks.poll()) != null) {