类 AsyncService
java.lang.Object
pkg.exoad.poprock.core.AsyncService
AsyncService - A utility class providing some basic asynchronous
functionalities.
- 作者:
- Jack Meng
-
字段概要
修饰符和类型字段说明static final Timer
WORKER1 delegates all of the routine tasks that either run as daemons or periodically.static final ExecutorService
WORKER2 delegates all of the other options for aForkJoinPool
for a workstealing thread pool. -
构造器概要
-
方法概要
修饰符和类型方法说明static void
Invokes a task on a newThread
object and runs it concurrently immediately (or when the JVM is ready)static void
runPeriodicTask
(long period, long initialDelay, Runnable task)
-
字段详细资料
-
WORKER1
WORKER1 delegates all of the routine tasks that either run as daemons or periodically.- 另请参阅:
-
WORKER2
WORKER2 delegates all of the other options for aForkJoinPool
for a workstealing thread pool.
-
-
构造器详细资料
-
AsyncService
private AsyncService()
-
-
方法详细资料
-
runAsync
Invokes a task on a newThread
object and runs it concurrently immediately (or when the JVM is ready)- 参数:
runnable
- The task
-
runPeriodicTask
-