Package org.redisson.executor
Class ScheduledTasksService
- java.lang.Object
-
- org.redisson.remote.BaseRemoteService
-
- org.redisson.executor.TasksService
-
- org.redisson.executor.ScheduledTasksService
-
public class ScheduledTasksService extends TasksService
- Author:
- Nikita Koksharov
-
-
Field Summary
-
Fields inherited from class org.redisson.executor.TasksService
schedulerChannelName, schedulerQueueName, statusName, tasksCounterName, tasksExpirationTimeName, tasksName, tasksRetryInterval, tasksRetryIntervalName, terminationTopicName
-
Fields inherited from class org.redisson.remote.BaseRemoteService
cancelRequestMapName, cancelResponseMapName, codec, commandExecutor, executorId, name, responseQueueName
-
-
Constructor Summary
Constructors Constructor Description ScheduledTasksService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String redissonId, ConcurrentMap<String,ResponseEntry> responses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RFuture<Boolean>
addAsync(String requestQueueName, RemoteServiceRequest request)
protected RequestId
generateRequestId()
protected long
getTimeout(Long executionTimeoutInMillis, RemoteServiceRequest request)
protected RFuture<Boolean>
removeAsync(String requestQueueName, RequestId taskId)
void
setRequestId(RequestId requestId)
-
Methods inherited from class org.redisson.executor.TasksService
addAsync, cancelExecutionAsync, getAddCommandExecutor, hasTaskAsync, setSchedulerChannelName, setSchedulerQueueName, setStatusName, setTasksCounterName, setTasksExpirationTimeName, setTasksName, setTasksRetryInterval, setTasksRetryIntervalName, setTerminationTopicName
-
Methods inherited from class org.redisson.remote.BaseRemoteService
encode, get, get, get, get, getAckName, getAckName, getMap, getMethodSignature, getRequestQueueName, getResponseQueueName, scheduleCheck
-
-
-
-
Constructor Detail
-
ScheduledTasksService
public ScheduledTasksService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String redissonId, ConcurrentMap<String,ResponseEntry> responses)
-
-
Method Detail
-
setRequestId
public void setRequestId(RequestId requestId)
-
addAsync
protected RFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request)
- Overrides:
addAsync
in classTasksService
-
removeAsync
protected RFuture<Boolean> removeAsync(String requestQueueName, RequestId taskId)
- Overrides:
removeAsync
in classTasksService
-
getTimeout
protected long getTimeout(Long executionTimeoutInMillis, RemoteServiceRequest request)
- Overrides:
getTimeout
in classBaseRemoteService
-
generateRequestId
protected RequestId generateRequestId()
- Overrides:
generateRequestId
in classTasksService
-
-