public class RedissonRemoteService extends BaseRemoteService implements RRemoteService
codec, commandExecutor, name, redisson
Constructor and Description |
---|
RedissonRemoteService(Codec codec,
RedissonClient redisson,
CommandExecutor commandExecutor) |
RedissonRemoteService(Codec codec,
RedissonClient redisson,
String name,
CommandExecutor commandExecutor) |
RedissonRemoteService(RedissonClient redisson,
CommandExecutor commandExecutor) |
RedissonRemoteService(RedissonClient redisson,
String name,
CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
<T> void |
deregister(Class<T> remoteInterface)
Deregister all workers for remote service
|
int |
getFreeWorkers(Class<?> remoteInterface)
Returns free workers amount available for 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
|
addAsync, awaitResultAsync, encode, generateRequestId, get, get, get, get, getAckName, getCancelRequestQueueName, getCodec, getMethodSignatures, getRequestQueueName, getResponseQueueName, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, get, get, get
public RedissonRemoteService(RedissonClient redisson, CommandExecutor commandExecutor)
public RedissonRemoteService(RedissonClient redisson, String name, CommandExecutor commandExecutor)
public RedissonRemoteService(Codec codec, RedissonClient redisson, CommandExecutor commandExecutor)
public RedissonRemoteService(Codec codec, RedissonClient redisson, String name, CommandExecutor commandExecutor)
public <T> void register(Class<T> remoteInterface, T object)
RRemoteService
register
in interface RRemoteService
T
- type of remote serviceremoteInterface
- - remote service interfaceobject
- - remote service objectpublic <T> void deregister(Class<T> remoteInterface)
RRemoteService
deregister
in interface RRemoteService
T
- type of remote serviceremoteInterface
- - remote service interfacepublic int getFreeWorkers(Class<?> remoteInterface)
RRemoteService
getFreeWorkers
in interface RRemoteService
remoteInterface
- - remote service interfacepublic <T> void register(Class<T> remoteInterface, T object, int workers)
RRemoteService
register
in interface RRemoteService
T
- type of remote serviceremoteInterface
- - remote service interfaceobject
- - remote service objectworkers
- - workers amountpublic <T> void register(Class<T> remoteInterface, T object, int workers, ExecutorService executor)
RRemoteService
register
in interface RRemoteService
T
- type of remote serviceremoteInterface
- - remote service interfaceobject
- - remote service objectworkers
- - workers amountexecutor
- - executor serviceCopyright © 2014–2017 The Redisson Project. All rights reserved.