public class ScheduledExecutorRemoteService extends ExecutorRemoteService
statusName, tasksCounterName, terminationTopicName
codec, commandExecutor, name, redisson
Constructor and Description |
---|
ScheduledExecutorRemoteService(Codec codec,
RedissonClient redisson,
String name,
CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
protected RFuture<Boolean> |
addAsync(RBlockingQueue<RemoteServiceRequest> requestQueue,
RemoteServiceRequest request) |
protected void |
awaitResultAsync(RemoteInvocationOptions optionsCopy,
RemotePromise<Object> result,
RemoteServiceRequest request,
String responseName) |
boolean |
cancelExecution(String requestId) |
protected String |
generateRequestId() |
protected boolean |
remove(RBlockingQueue<RemoteServiceRequest> requestQueue,
RemoteServiceRequest request) |
void |
setRequestId(String requestId) |
void |
setSchedulerChannelName(String schedulerChannelName) |
void |
setSchedulerQueueName(String scheduledQueueName) |
void |
setSchedulerTasksName(String schedulerTasksName) |
addAsync, setStatusName, setTasksCounterName, setTerminationTopicName
encode, get, get, get, get, getAckName, getCancelRequestQueueName, getCodec, getMethodSignatures, getRequestQueueName, getResponseQueueName
public ScheduledExecutorRemoteService(Codec codec, RedissonClient redisson, String name, CommandExecutor commandExecutor)
public void setRequestId(String requestId)
public void setSchedulerTasksName(String schedulerTasksName)
public void setSchedulerChannelName(String schedulerChannelName)
public void setSchedulerQueueName(String scheduledQueueName)
protected RFuture<Boolean> addAsync(RBlockingQueue<RemoteServiceRequest> requestQueue, RemoteServiceRequest request)
addAsync
in class ExecutorRemoteService
protected void awaitResultAsync(RemoteInvocationOptions optionsCopy, RemotePromise<Object> result, RemoteServiceRequest request, String responseName)
awaitResultAsync
in class BaseRemoteService
protected boolean remove(RBlockingQueue<RemoteServiceRequest> requestQueue, RemoteServiceRequest request)
remove
in class ExecutorRemoteService
protected String generateRequestId()
generateRequestId
in class BaseRemoteService
public boolean cancelExecution(String requestId)
Copyright © 2014–2017 The Redisson Project. All rights reserved.