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