类 NacosDelayTaskExecuteEngine
java.lang.Object
com.alibaba.nacos.common.task.engine.AbstractNacosTaskExecuteEngine<AbstractDelayTask>
com.alibaba.nacos.common.task.engine.NacosDelayTaskExecuteEngine
- 所有已实现的接口:
Closeable,NacosTaskExecuteEngine<AbstractDelayTask>
Nacos delay task execute engine.
- 作者:
- xiweng.yy
-
字段概要
字段 -
构造器概要
构造器构造器说明NacosDelayTaskExecuteEngine(String name, int initCapacity, org.slf4j.Logger logger)NacosDelayTaskExecuteEngine(String name, int initCapacity, org.slf4j.Logger logger, long processInterval)NacosDelayTaskExecuteEngine(String name, org.slf4j.Logger logger)NacosDelayTaskExecuteEngine(String name, org.slf4j.Logger logger, long processInterval) -
方法概要
修饰符和类型方法说明voidaddTask(Object key, AbstractDelayTask newTask)Add task into execute pool.Get all task keys.booleanisEmpty()Whether the execute engine is empty.protected voidprocess tasks in execute engine.removeTask(Object key)Remove task.voidshutdown()Shutdown the Resources, such as Thread Pool.intsize()Get Task size in execute engine.从类继承的方法 com.alibaba.nacos.common.task.engine.AbstractNacosTaskExecuteEngine
addProcessor, getAllProcessorKey, getEngineLog, getProcessor, removeProcessor, setDefaultTaskProcessor
-
字段详细资料
-
tasks
-
lock
-
-
构造器详细资料
-
NacosDelayTaskExecuteEngine
-
NacosDelayTaskExecuteEngine
-
NacosDelayTaskExecuteEngine
-
NacosDelayTaskExecuteEngine
-
NacosDelayTaskExecuteEngine
public NacosDelayTaskExecuteEngine(String name, int initCapacity, org.slf4j.Logger logger, long processInterval)
-
-
方法详细资料
-
size
public int size()从接口复制的说明:NacosTaskExecuteEngineGet Task size in execute engine.- 返回:
- size of task
-
isEmpty
public boolean isEmpty()从接口复制的说明:NacosTaskExecuteEngineWhether the execute engine is empty.- 返回:
- true if the execute engine has no task to do, otherwise false
-
removeTask
从接口复制的说明:NacosTaskExecuteEngineRemove task.- 参数:
key- key of task- 返回:
- nacos task
-
getAllTaskKeys
从接口复制的说明:NacosTaskExecuteEngineGet all task keys.- 返回:
- collection of task keys.
-
shutdown
public void shutdown() throws com.alibaba.nacos.api.exception.NacosException从接口复制的说明:CloseableShutdown the Resources, such as Thread Pool.- 抛出:
com.alibaba.nacos.api.exception.NacosException- exception.
-
addTask
从接口复制的说明:NacosTaskExecuteEngineAdd task into execute pool.- 参数:
key- key of tasknewTask- task
-
processTasks
protected void processTasks()process tasks in execute engine.
-