Search in sources :

Example 1 with StatusLogThread

use of io.nuls.core.utils.queue.thread.StatusLogThread in project nuls by nuls-io.

the class QueueManager method start.

public static void start() {
    ScheduledExecutorService service = TaskManager.createScheduledThreadPool(new NulsThreadFactory(NulsConstant.MODULE_ID_MICROKERNEL, "queueStatusLogPool"));
    service.scheduleAtFixedRate(new StatusLogThread(), 0, QueueManager.getLatelySecond(), TimeUnit.SECONDS);
    Running = true;
}
Also used : ScheduledExecutorService(java.util.concurrent.ScheduledExecutorService) NulsThreadFactory(io.nuls.core.thread.manager.NulsThreadFactory) StatusLogThread(io.nuls.core.utils.queue.thread.StatusLogThread)

Aggregations

NulsThreadFactory (io.nuls.core.thread.manager.NulsThreadFactory)1 StatusLogThread (io.nuls.core.utils.queue.thread.StatusLogThread)1 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)1