public class RedissonRemoteService extends Object implements RRemoteService
Constructor and Description |
---|
RedissonRemoteService(Redisson redisson) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<T> remoteInterface)
Get remote service object for remote invocations.
|
<T> T |
get(Class<T> remoteInterface,
long executionTimeout,
TimeUnit executionTimeUnit)
Get remote service object for remote invocations
with specified invocation timeout.
|
<T> T |
get(Class<T> remoteInterface,
long executionTimeout,
TimeUnit executionTimeUnit,
long ackTimeout,
TimeUnit ackTimeUnit)
Get remote service object for remote invocations
with specified invocation and ack timeouts
|
<T> void |
register(Class<T> remoteInterface,
T object)
Register remote service with single executor
|
<T> void |
register(Class<T> remoteInterface,
T object,
int executorsAmount)
Register remote service with custom executors amount
|
public RedissonRemoteService(Redisson redisson)
public <T> void register(Class<T> remoteInterface, T object)
RRemoteService
register
in interface RRemoteService
public <T> void register(Class<T> remoteInterface, T object, int executorsAmount)
RRemoteService
register
in interface RRemoteService
public <T> T get(Class<T> remoteInterface)
RRemoteService
get
in interface RRemoteService
public <T> T get(Class<T> remoteInterface, long executionTimeout, TimeUnit executionTimeUnit)
RRemoteService
get
in interface RRemoteService
executionTimeout
- - invocation timeoutpublic <T> T get(Class<T> remoteInterface, long executionTimeout, TimeUnit executionTimeUnit, long ackTimeout, TimeUnit ackTimeUnit)
RRemoteService
get
in interface RRemoteService
executionTimeout
- - invocation timeoutackTimeout
- - ack timeoutCopyright © 2014–2016. All rights reserved.