因为这几个类比较简单,所以简单进行文字陈述。
Future:A Future represents the result of an asynchronous computation. Methods are provided to check if the computation is complete, to wait for its completion, and to retrieve the result of the computation. The result can only be retrieved using method get when the computation has completed, blocking if necessary until it is ready. Cancellation is performed by the cancel method. Additional methods are provided to determine if the task completed normally or was cancelled. Once a computation has completed, the computation cannot be cancelled. If you would like to use a Future for the sake of cancellability but not provide a usable result, you can declare types of the form Future<?> and return null as a result of the underlying task.
FutureTask: Future的具体实现类,继承Runnable,Future,引用Callable实例,可以通过Exector.sumit提交执行。
Callable:与Runnale类似,但是多了返回值和抛出了异常。
Executors:一个工厂类,可以参数实例化个各ThreadPool以及Callable对象。