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 RequestId<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 StringgetAckName(RequestId requestId) 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, RequestId taskId) protected <T> voidscheduleCheck(String mapName, RequestId 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
-
getAckName
-
getRequestQueueName
-
encode
-
get
-
get
-
get
-
get
-
getTimeout
-
getMap
-
scheduleCheck
protected <T> void scheduleCheck(String mapName, RequestId requestId, CompletableFuture<T> cancelRequest) -
generateRequestId
-
addAsync
protected abstract CompletableFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request, RemotePromise<Object> result) -
removeAsync
protected abstract CompletableFuture<Boolean> removeAsync(String requestQueueName, RequestId taskId) -
getMethodSignature
-