public class ScheduledTasksService extends TasksService
cancelRequestMapName, cancelResponseMapName, codec, commandExecutor, executorId, name, redisson, responseQueueName
schedulerChannelName, schedulerQueueName, statusName, tasksCounterName, tasksName, tasksRetryInterval, tasksRetryIntervalName, terminationTopicName
Constructor | Description |
---|---|
ScheduledTasksService(Codec codec,
RedissonClient redisson,
String name,
CommandExecutor commandExecutor,
String redissonId,
ConcurrentMap<String,ResponseEntry> responses) |
Modifier and Type | Method | 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) |
awaitResultAsync, encode, get, get, get, get, getAckName, getAckName, getMethodSignatures, getRequestQueueName, getResponseQueueName, scheduleCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAsync, cancelExecutionAsync, getAddCommandExecutor, setSchedulerChannelName, setSchedulerQueueName, setStatusName, setTasksCounterName, setTasksName, setTasksRetryInterval, setTasksRetryIntervalName, setTerminationTopicName
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.