public abstract class BaseRemoteService extends Object
Modifier and Type | Field and Description |
---|---|
protected Codec |
codec |
protected CommandExecutor |
commandExecutor |
protected String |
name |
protected RedissonClient |
redisson |
Constructor and Description |
---|
BaseRemoteService(Codec codec,
RedissonClient redisson,
CommandExecutor commandExecutor) |
BaseRemoteService(Codec codec,
RedissonClient redisson,
String name,
CommandExecutor commandExecutor) |
BaseRemoteService(RedissonClient redisson,
CommandExecutor commandExecutor) |
BaseRemoteService(RedissonClient redisson,
String name,
CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
protected RFuture<Boolean> |
addAsync(RBlockingQueue<RemoteServiceRequest> requestQueue,
RemoteServiceRequest request,
RemotePromise<Object> result) |
protected void |
awaitResultAsync(RemoteInvocationOptions optionsCopy,
RemotePromise<Object> result,
RemoteServiceRequest request,
String responseName) |
protected byte[] |
encode(Object obj) |
protected String |
generateRequestId() |
<T> T |
get(Class<T> remoteInterface) |
<T> T |
get(Class<T> remoteInterface,
long executionTimeout,
TimeUnit executionTimeUnit) |
<T> T |
get(Class<T> remoteInterface,
long executionTimeout,
TimeUnit executionTimeUnit,
long ackTimeout,
TimeUnit ackTimeUnit) |
<T> T |
get(Class<T> remoteInterface,
RemoteInvocationOptions options) |
protected String |
getAckName(Class<?> remoteInterface,
String requestId) |
protected String |
getCancelRequestQueueName(Class<?> remoteInterface,
String requestId) |
protected Codec |
getCodec() |
protected String |
getRequestQueueName(Class<?> remoteInterface) |
protected String |
getResponseQueueName(Class<?> remoteInterface,
String requestId) |
protected boolean |
remove(RBlockingQueue<RemoteServiceRequest> requestQueue,
RemoteServiceRequest request) |
protected final Codec codec
protected final RedissonClient redisson
protected final String name
protected final CommandExecutor commandExecutor
public BaseRemoteService(RedissonClient redisson, CommandExecutor commandExecutor)
public BaseRemoteService(RedissonClient redisson, String name, CommandExecutor commandExecutor)
public BaseRemoteService(Codec codec, RedissonClient redisson, CommandExecutor commandExecutor)
public BaseRemoteService(Codec codec, RedissonClient redisson, String name, CommandExecutor commandExecutor)
protected String getCancelRequestQueueName(Class<?> remoteInterface, String requestId)
protected String getResponseQueueName(Class<?> remoteInterface, String requestId)
protected Codec getCodec()
protected byte[] encode(Object obj)
public <T> T get(Class<T> remoteInterface)
public <T> T get(Class<T> remoteInterface, long executionTimeout, TimeUnit executionTimeUnit, long ackTimeout, TimeUnit ackTimeUnit)
public <T> T get(Class<T> remoteInterface, RemoteInvocationOptions options)
protected void awaitResultAsync(RemoteInvocationOptions optionsCopy, RemotePromise<Object> result, RemoteServiceRequest request, String responseName)
protected String generateRequestId()
protected RFuture<Boolean> addAsync(RBlockingQueue<RemoteServiceRequest> requestQueue, RemoteServiceRequest request, RemotePromise<Object> result)
protected boolean remove(RBlockingQueue<RemoteServiceRequest> requestQueue, RemoteServiceRequest request)
Copyright © 2014–2017 The Redisson Project. All rights reserved.