类 WorkerPropertyManager
- java.lang.Object
-
- cn.feiliu.taskflow.sdk.config.WorkerPropertyManager
-
public class WorkerPropertyManager extends Object
- 从以下版本开始:
- 2024-09-23
- 作者:
- SHOUSHEN.LUAN
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static String
DOMAIN
protected static String
OVERRIDE_DISCOVERY
-
构造器概要
构造器 构造器 说明 WorkerPropertyManager()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static int
getBatchPollTimeoutInMS(String taskDefName)
获取批量拉取任务超时时间static String
getDomainWithFallback(String taskType, String allWorkers, String defaultValue)
static int
getPollingInterval(String taskDefName)
获取Worker拉取间隔时间static boolean
getPollOutOfDiscovery(String taskDefName, String allWorkers, boolean defaultValue)
static boolean
leaseExtendEnabled(String taskDefName)
static boolean
paused(String taskDefName)
获取任务是否为暂停状态
-
-
-
方法详细资料
-
paused
public static boolean paused(String taskDefName)
获取任务是否为暂停状态- 参数:
taskDefName
-- 返回:
-
getPollingInterval
public static int getPollingInterval(String taskDefName)
获取Worker拉取间隔时间- 参数:
taskDefName
-- 返回:
-
leaseExtendEnabled
public static boolean leaseExtendEnabled(String taskDefName)
-
getBatchPollTimeoutInMS
public static int getBatchPollTimeoutInMS(String taskDefName)
获取批量拉取任务超时时间- 参数:
taskDefName
-- 返回:
-
getDomainWithFallback
public static String getDomainWithFallback(String taskType, String allWorkers, String defaultValue)
-
-