Package org.redisson.executor
Class TasksRunnerService
- java.lang.Object
-
- org.redisson.executor.TasksRunnerService
-
- All Implemented Interfaces:
RemoteExecutorService
public class TasksRunnerService extends Object implements RemoteExecutorService
Executor service runs Callable and Runnable tasks.- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description TasksRunnerService(CommandAsyncExecutor commandExecutor, RedissonClient redisson, Codec codec, String name, ConcurrentMap<String,ResponseEntry> responses)
-
Method Summary
-
-
-
Constructor Detail
-
TasksRunnerService
public TasksRunnerService(CommandAsyncExecutor commandExecutor, RedissonClient redisson, Codec codec, String name, ConcurrentMap<String,ResponseEntry> responses)
-
-
Method Detail
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
setTasksExpirationTimeName
public void setTasksExpirationTimeName(String tasksExpirationTimeName)
-
setTasksRetryIntervalName
public void setTasksRetryIntervalName(String tasksRetryInterval)
-
setSchedulerQueueName
public void setSchedulerQueueName(String schedulerQueueName)
-
setSchedulerChannelName
public void setSchedulerChannelName(String schedulerChannelName)
-
setTasksName
public void setTasksName(String tasksName)
-
setTasksCounterName
public void setTasksCounterName(String tasksCounterName)
-
setStatusName
public void setStatusName(String statusName)
-
setTerminationTopicName
public void setTerminationTopicName(String terminationTopicName)
-
scheduleAtFixedRate
public void scheduleAtFixedRate(ScheduledAtFixedRateParameters params)
- Specified by:
scheduleAtFixedRate
in interfaceRemoteExecutorService
-
schedule
public void schedule(ScheduledCronExpressionParameters params)
- Specified by:
schedule
in interfaceRemoteExecutorService
-
scheduleWithFixedDelay
public void scheduleWithFixedDelay(ScheduledWithFixedDelayParameters params)
- Specified by:
scheduleWithFixedDelay
in interfaceRemoteExecutorService
-
scheduleCallable
public Object scheduleCallable(ScheduledParameters params)
- Specified by:
scheduleCallable
in interfaceRemoteExecutorService
-
scheduleRunnable
public void scheduleRunnable(ScheduledParameters params)
- Specified by:
scheduleRunnable
in interfaceRemoteExecutorService
-
executeCallable
public Object executeCallable(TaskParameters params)
- Specified by:
executeCallable
in interfaceRemoteExecutorService
-
scheduleRetryTimeRenewal
protected void scheduleRetryTimeRenewal(String requestId, Long retryInterval)
-
executeRunnable
public void executeRunnable(TaskParameters params, boolean removeTask)
-
executeRunnable
public void executeRunnable(TaskParameters params)
- Specified by:
executeRunnable
in interfaceRemoteExecutorService
-
-