Implemented the mechanism for initiating and clearing out a remote object
proxy. Untested, but hey, it probably works. :) git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4543 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -120,6 +120,19 @@ public class PresentsDObjectMgr
|
||||
_proxies.put(origObjectId, new ProxyReference(object.getOid(), omgr));
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears a proxy object reference from our local distributed object space. This merely removes
|
||||
* it from our internal tables, the caller is responsible for coordinating the deregistration
|
||||
* of the object with the proxying client.
|
||||
*/
|
||||
public void clearProxyObject (int origObjectId, DObject object)
|
||||
{
|
||||
if (_proxies.remove(origObjectId) == null) {
|
||||
log.warning("Missing proxy mapping for cleared proxy [ooid=" + origObjectId + "].");
|
||||
}
|
||||
_objects.remove(object.getOid());
|
||||
}
|
||||
|
||||
// from interface DObjectManager
|
||||
public boolean isManager (DObject object)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user