类 ThreadPool

java.lang.Object
com.inlaylink.rfid.util.ThreadPool

public class ThreadPool extends Object
The type Thread pool.
  • 方法详细资料

    • execute

      public static void execute(Runnable runnable)
      Execute.
      参数:
      runnable - the runnable
    • execute

      public static <T> void execute(FutureTask<T> futureTask)
      Execute.
      类型参数:
      T - the type parameter
      参数:
      futureTask - the future task
    • process

      public static <T> T process(Callable<T> task, long timeout)
      Process t.
      类型参数:
      T - the type parameter
      参数:
      task - the task
      timeout - the timeout
      返回:
      the t