|
|
@ -101,6 +101,12 @@ public class RedissonRemoteService extends BaseRemoteService implements RRemoteS
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public int getFreeWorkers(Class<?> remoteInterface) {
|
|
|
|
|
|
|
|
Set<RFuture<RemoteServiceRequest>> futuresSet = futures.get(remoteInterface);
|
|
|
|
|
|
|
|
return futuresSet.size();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public <T> void register(Class<T> remoteInterface, T object, int workers) {
|
|
|
|
public <T> void register(Class<T> remoteInterface, T object, int workers) {
|
|
|
|
register(remoteInterface, object, workers, commandExecutor.getConnectionManager().getExecutor());
|
|
|
|
register(remoteInterface, object, workers, commandExecutor.getConnectionManager().getExecutor());
|
|
|
|