@SuppressWarnings("unchecked") public <S> ProxyObject<S> proxyFor(long id, Class<S> clazz) { ProxyObject<S> proxy = (ProxyObject<S>) proxying.get(id); if (proxy == null) { synchronized (proxying) { proxy = (ProxyObject<S>) proxying.get(id); if (proxy != null) { return proxy; } proxy = new ProxyObject<S>(this, id, clazz); proxying.put(proxy.getId(), proxy); } } return proxy; }
public T async() { return rootClient.async(); }
public <R> T async(final Callback<R> callback) { return rootClient.async(callback); }
public T sync() { return rootClient.sync(); }