Package com.xxl.tool.concurrent
Class CyclicThread
java.lang.Object
com.xxl.tool.concurrent.CyclicThread
Cyclic Thread
- Author:
- xuxueli 2025-04-06
-
Constructor Summary
ConstructorsConstructorDescriptionCyclicThread(String name, boolean daemon, Runnable runnable, long cyclicInterval) CyclicThread(String name, boolean daemon, Runnable runnable, long cyclicInterval, boolean alignTime) constructorCyclicThread(String name, Runnable runnable, long cyclicInterval) CyclicThread(String name, Runnable runnable, long cyclicInterval, boolean alignTime) -
Method Summary
-
Constructor Details
-
CyclicThread
-
CyclicThread
-
CyclicThread
-
CyclicThread
public CyclicThread(String name, boolean daemon, Runnable runnable, long cyclicInterval, boolean alignTime) constructor- Parameters:
name- thread namedaemon- true daemon thread, will be killed when main thread exit; false user thread.runnable- cyclic methodcyclicInterval- cycle interval, for millisecondalignTime- true: align time, all nodes run at the same time
-
-
Method Details
-
start
public void start()start -
stop
public void stop()stop
-