public class ScheduledTasksService extends TasksService
schedulerChannelName, schedulerQueueName, statusName, tasksCounterName, tasksName, tasksRetryInterval, tasksRetryIntervalName, terminationTopicName
cancelRequestMapName, cancelResponseMapName, codec, commandExecutor, executorId, name, redisson, responseQueueName
Constructor and Description |
---|
ScheduledTasksService(Codec codec,
RedissonClient redisson,
String name,
CommandExecutor commandExecutor,
String redissonId,
ConcurrentMap<String,ResponseEntry> responses) |
Modifier and Type | Method and Description |
---|---|
protected RFuture<Boolean> |
addAsync(String requestQueueName,
RemoteServiceRequest request) |
protected RequestId |
generateRequestId() |
protected <T extends RRemoteServiceResponse> |
pollResultResponse(long timeout,
RequestId requestId,
RemoteServiceRequest request) |
protected RFuture<Boolean> |
removeAsync(String requestQueueName,
RequestId taskId) |
void |
setRequestId(RequestId requestId) |
addAsync, cancelExecutionAsync, getAddCommandExecutor, setSchedulerChannelName, setSchedulerQueueName, setStatusName, setTasksCounterName, setTasksName, setTasksRetryInterval, setTasksRetryIntervalName, setTerminationTopicName
awaitResultAsync, encode, get, get, get, get, getAckName, getAckName, getMethodSignatures, getRequestQueueName, getResponseQueueName, scheduleCheck
public ScheduledTasksService(Codec codec, RedissonClient redisson, String name, CommandExecutor commandExecutor, String redissonId, ConcurrentMap<String,ResponseEntry> responses)
public void setRequestId(RequestId requestId)
protected RFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request)
addAsync
in class TasksService
protected RFuture<Boolean> removeAsync(String requestQueueName, RequestId taskId)
removeAsync
in class TasksService
protected <T extends RRemoteServiceResponse> RPromise<T> pollResultResponse(long timeout, RequestId requestId, RemoteServiceRequest request)
pollResultResponse
in class BaseRemoteService
protected RequestId generateRequestId()
generateRequestId
in class BaseRemoteService
Copyright © 2014–2018 The Redisson Project. All rights reserved.