@Test
   public void TestExceute() {
      ExecutorService executor = Executors.newFixedThreadPool(1);
      // TaskThread taskThread = new TaskThread();
      FutureTask<String> future = new FutureTask<String>(new Callable<String>() {// 使用Callable接口作为构造参数
               public String call() {
                  // 真正的任务在这里执行，这里的返回值类型为String，可以为任意类型
                  for (int i = 0; i < 10000; i++) {
                     // 同步阻塞获取信号量
                     System.out.println(i);
                  }
                  return "123";
               }
            });
      executor.execute(future);
      try {
         String lg = future.get(30, TimeUnit.SECONDS);
         System.out.println(lg);
         System.out.println("你好......");
      } catch (InterruptedException | ExecutionException | TimeoutException e) {
         future.cancel(true);
         System.out.println("出异常了 我去......");
      } finally {
         executor.shutdownNow();
      }
      System.out.println("执行完成......");
      boolean cancelResult = future.cancel(true);
      System.out.println(executor.isShutdown());
      System.out.println("删除结果：" + cancelResult);
      while (!executor.isTerminated()) {
      }
   }