我是否需要定期调用 future.get 来检查任务是否执行?
ExecutorService executor = Executors.newSingleThreadExecutor();
@SuppressWarnings("unchecked")
public void start(final file avo) throws IOException
{
Future future = executor.submit(new Callable(){
@Override
public Object call() throws Exception {
Condee conv = new Condee();
return conv.doChange(file);
});
LOG.debug("Finished the execution serverion");
executor.shutdown();
}