public class CloudJobServiceManagerImpl extends java.lang.Object implements CloudJobServiceManager
构造器和说明 |
---|
CloudJobServiceManagerImpl(CloudJobService service) |
限定符和类型 | 方法和说明 |
---|---|
void |
addJobInterceptor(int index,
CloudJobInterceptor jobInterceptor)
添加任务拦截器
|
java.util.List<RankEntity<CloudJobInterceptor>> |
getJobInterceptors()
获取任务拦截器
|
boolean |
isRegistered(java.lang.String name)
是否已注册
|
boolean |
register(java.lang.String name,
java.lang.String cron7x,
java.lang.String description,
CloudJobHandler handler)
注册任务
|
public CloudJobServiceManagerImpl(CloudJobService service)
public void addJobInterceptor(int index, CloudJobInterceptor jobInterceptor)
addJobInterceptor
在接口中 CloudJobServiceManager
public java.util.List<RankEntity<CloudJobInterceptor>> getJobInterceptors()
getJobInterceptors
在接口中 CloudJobServiceManager
public boolean register(java.lang.String name, java.lang.String cron7x, java.lang.String description, CloudJobHandler handler)
register
在接口中 CloudJobService
name
- 任务名cron7x
- 计划表达式description
- 描述handler
- 处理器public boolean isRegistered(java.lang.String name)
isRegistered
在接口中 CloudJobService
name
- 任务名