Package org.redisson.remote
Class BaseRemoteService
java.lang.Object
org.redisson.remote.BaseRemoteService
- Direct Known Subclasses:
RedissonRemoteService,TasksService
- Author:
- Nikita Koksharov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseRemoteService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String executorId, ConcurrentMap<String, ResponseEntry> responses) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CompletableFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request, RemotePromise<Object> result) protected io.netty.buffer.ByteBufprotected StringgenerateRequestId(Object[] args) <T> T<T> T<T> Tget(Class<T> remoteInterface, long executionTimeout, TimeUnit executionTimeUnit, long ackTimeout, TimeUnit ackTimeUnit) <T> Tget(Class<T> remoteInterface, RemoteInvocationOptions options) protected StringgetAckName(String requestId) protected <V> RBlockingQueue<V> getBlockingQueue(String name, Codec codec) protected <K,V> RMap <K, V> protected long[]getMethodSignature(Method method) getRequestQueueName(Class<?> remoteInterface) getResponseQueueName(String executorId) protected longgetTimeout(Long executionTimeoutInMillis, RemoteServiceRequest request) protected abstract CompletableFuture<Boolean> removeAsync(String requestQueueName, String taskId) protected <T> voidscheduleCheck(String mapName, String requestId, CompletableFuture<T> cancelRequest)
-
Field Details
-
codec
-
name
-
commandExecutor
-
executorId
-
cancelRequestMapName
-
cancelResponseMapName
-
responseQueueName
-
-
Constructor Details
-
BaseRemoteService
public BaseRemoteService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String executorId, ConcurrentMap<String, ResponseEntry> responses)
-
-
Method Details
-
getResponseQueueName
-
getAckName
-
getRequestQueueName
-
encode
-
get
-
get
-
get
-
get
-
getTimeout
-
getMap
-
scheduleCheck
protected <T> void scheduleCheck(String mapName, String requestId, CompletableFuture<T> cancelRequest) -
generateRequestId
-
addAsync
protected abstract CompletableFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request, RemotePromise<Object> result) -
removeAsync
-
getMethodSignature
-
getBlockingQueue
-