public class RedissonRemoteService extends BaseRemoteService implements RRemoteService
| Modifier and Type | Class and Description |
|---|---|
static class |
RedissonRemoteService.Entry |
cancelRequestMapName, cancelResponseMapName, codec, commandExecutor, executorId, name, responseQueueName| Constructor and Description |
|---|
RedissonRemoteService(Codec codec,
String name,
CommandAsyncExecutor commandExecutor,
String executorId,
ConcurrentMap<String,ResponseEntry> responses) |
| Modifier and Type | Method and Description |
|---|---|
protected RFuture<Boolean> |
addAsync(String requestQueueName,
RemoteServiceRequest request,
RemotePromise<Object> result) |
<T> void |
deregister(Class<T> remoteInterface)
Deregister all workers for remote service
|
int |
getFreeWorkers(Class<?> remoteInterface)
Returns free workers amount available for invocations
|
int |
getPendingInvocations(Class<?> remoteInterface)
Returns pending invocations amount for handling in free workers.
|
protected RFuture<RemoteServiceRequest> |
getTask(String requestId,
RMap<String,RemoteServiceRequest> tasks) |
<T> void |
register(Class<T> remoteInterface,
T object)
Register remote service with single worker
|
<T> void |
register(Class<T> remoteInterface,
T object,
int workers)
Register remote service with custom workers amount
|
<T> void |
register(Class<T> remoteInterface,
T object,
int workers,
ExecutorService executor)
Register remote service with custom workers amount
and executor for running them
|
protected RFuture<Boolean> |
removeAsync(String requestQueueName,
RequestId taskId) |
encode, generateRequestId, get, get, get, get, getAckName, getAckName, getMap, getMethodSignature, getRequestQueueName, getResponseQueueName, getTimeout, scheduleCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, get, getpublic RedissonRemoteService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String executorId, ConcurrentMap<String,ResponseEntry> responses)
protected RFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request, RemotePromise<Object> result)
addAsync in class BaseRemoteServiceprotected RFuture<Boolean> removeAsync(String requestQueueName, RequestId taskId)
removeAsync in class BaseRemoteServicepublic <T> void register(Class<T> remoteInterface, T object)
RRemoteServiceregister in interface RRemoteServiceT - type of remote serviceremoteInterface - - remote service interfaceobject - - remote service objectpublic <T> void deregister(Class<T> remoteInterface)
RRemoteServicederegister in interface RRemoteServiceT - type of remote serviceremoteInterface - - remote service interfacepublic int getPendingInvocations(Class<?> remoteInterface)
RRemoteServicegetPendingInvocations in interface RRemoteServiceremoteInterface - - remote service interfacepublic int getFreeWorkers(Class<?> remoteInterface)
RRemoteServicegetFreeWorkers in interface RRemoteServiceremoteInterface - - remote service interfacepublic <T> void register(Class<T> remoteInterface, T object, int workers)
RRemoteServiceregister in interface RRemoteServiceT - type of remote serviceremoteInterface - - remote service interfaceobject - - remote service objectworkers - - workers amountpublic <T> void register(Class<T> remoteInterface, T object, int workers, ExecutorService executor)
RRemoteServiceregister in interface RRemoteServiceT - type of remote serviceremoteInterface - - remote service interfaceobject - - remote service objectworkers - - workers amountexecutor - - executor serviceprotected RFuture<RemoteServiceRequest> getTask(String requestId, RMap<String,RemoteServiceRequest> tasks)
Copyright © 2014–2019 Redisson. All rights reserved.