/**************************************************************************
 * copyright file="AsyncExecutor.java" company="Microsoft"
 *     Copyright (c) Microsoft Corporation.  All rights reserved.
 * 
 * Defines the AsyncExecutor.java.
 **************************************************************************/
package microsoft.exchange.webservices.data;

import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
import java.util.concurrent.RunnableFuture;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

 class AsyncExecutor extends ThreadPoolExecutor implements ExecutorService{
	
	int poolSize = 1;
	 
    int maxPoolSize = 1;
 
    long keepAliveTime = 10;
 
    final static ArrayBlockingQueue<Runnable> queue = 
    	new ArrayBlockingQueue<Runnable>(
            1);
	
	AsyncExecutor(){
		super(1,5,10,TimeUnit.SECONDS, queue);
	}
	
	
	
	
	 public <T> Future<T> submit(Callable<T> task,AsyncCallback callback) {
	        if (task == null) throw new NullPointerException();
	        RunnableFuture<T> ftask = newTaskFor(task);
	        execute(ftask);
	        if(callback != null)
	        	callback.setTask(ftask);
	        new Thread(callback).start();
	        return ftask;
	    }

}

@@ -360,61 +360,8 @@
 a;%0A%0A
-import java.util.concurrent.AbstractExecutorService;%0A
 impo
@@ -527,48 +527,8 @@
 re;%0A
-import java.util.concurrent.FutureTask;%0A
 impo

Remove unused using statements in AsyncExecutor