类 NacosDelayTaskExecuteEngine

java.lang.Object
com.alibaba.nacos.common.task.engine.AbstractNacosTaskExecuteEngine<AbstractDelayTask>
com.alibaba.nacos.common.task.engine.NacosDelayTaskExecuteEngine
所有已实现的接口:
Closeable, NacosTaskExecuteEngine<AbstractDelayTask>

public class NacosDelayTaskExecuteEngine extends AbstractNacosTaskExecuteEngine<AbstractDelayTask>
Nacos delay task execute engine.
作者:
xiweng.yy
  • 字段详细资料

  • 构造器详细资料

    • NacosDelayTaskExecuteEngine

      public NacosDelayTaskExecuteEngine(String name)
    • NacosDelayTaskExecuteEngine

      public NacosDelayTaskExecuteEngine(String name, org.slf4j.Logger logger)
    • NacosDelayTaskExecuteEngine

      public NacosDelayTaskExecuteEngine(String name, org.slf4j.Logger logger, long processInterval)
    • NacosDelayTaskExecuteEngine

      public NacosDelayTaskExecuteEngine(String name, int initCapacity, org.slf4j.Logger logger)
    • NacosDelayTaskExecuteEngine

      public NacosDelayTaskExecuteEngine(String name, int initCapacity, org.slf4j.Logger logger, long processInterval)
  • 方法详细资料

    • size

      public int size()
      从接口复制的说明: NacosTaskExecuteEngine
      Get Task size in execute engine.
      返回:
      size of task
    • isEmpty

      public boolean isEmpty()
      从接口复制的说明: NacosTaskExecuteEngine
      Whether the execute engine is empty.
      返回:
      true if the execute engine has no task to do, otherwise false
    • removeTask

      public AbstractDelayTask removeTask(Object key)
      从接口复制的说明: NacosTaskExecuteEngine
      Remove task.
      参数:
      key - key of task
      返回:
      nacos task
    • getAllTaskKeys

      public Collection<Object> getAllTaskKeys()
      从接口复制的说明: NacosTaskExecuteEngine
      Get all task keys.
      返回:
      collection of task keys.
    • shutdown

      public void shutdown() throws com.alibaba.nacos.api.exception.NacosException
      从接口复制的说明: Closeable
      Shutdown the Resources, such as Thread Pool.
      抛出:
      com.alibaba.nacos.api.exception.NacosException - exception.
    • addTask

      public void addTask(Object key, AbstractDelayTask newTask)
      从接口复制的说明: NacosTaskExecuteEngine
      Add task into execute pool.
      参数:
      key - key of task
      newTask - task
    • processTasks

      protected void processTasks()
      process tasks in execute engine.