Package org.redisson.executor
Class ScheduledTasksService
java.lang.Object
org.redisson.remote.BaseRemoteService
org.redisson.executor.TasksService
org.redisson.executor.ScheduledTasksService
- 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
ConstructorDescriptionScheduledTasksService
(Codec codec, String name, CommandAsyncExecutor commandExecutor, String redissonId, ConcurrentMap<String, ResponseEntry> responses) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<Boolean>
addAsync
(String requestQueueName, RemoteServiceRequest request) protected String
generateRequestId
(Object[] args) protected long
getTimeout
(Long executionTimeoutInMillis, RemoteServiceRequest request) protected CompletableFuture<Boolean>
removeAsync
(String requestQueueName, String taskId) void
setRequestId
(String 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, getBlockingQueue, getMap, getMethodSignature, getRequestQueueName, getResponseQueueName, scheduleCheck
-
Constructor Details
-
ScheduledTasksService
public ScheduledTasksService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String redissonId, ConcurrentMap<String, ResponseEntry> responses)
-
-
Method Details
-
setRequestId
-
addAsync
protected CompletableFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request) - Overrides:
addAsync
in classTasksService
-
removeAsync
- Overrides:
removeAsync
in classTasksService
-
getTimeout
- Overrides:
getTimeout
in classBaseRemoteService
-
generateRequestId
- Overrides:
generateRequestId
in classTasksService
-