Wired up the remainder of event dispatch and added facilities for cleaning

up after objects when they have no more subscribers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@38 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-06-13 05:17:55 +00:00
parent 6fd554de7c
commit 7cb9d84d54
5 changed files with 58 additions and 10 deletions
@@ -1,5 +1,5 @@
//
// $Id: DObjectManager.java,v 1.5 2001/06/09 23:39:04 mdb Exp $
// $Id: DObjectManager.java,v 1.6 2001/06/13 05:17:55 mdb Exp $
package com.threerings.cocktail.cher.dobj;
@@ -76,4 +76,12 @@ public interface DObjectManager
* @param event The event to be dispatched.
*/
public void postEvent (DEvent event);
/**
* When a distributed object removes its last subscriber, it will call
* this function to let the object manager know. The manager might
* then choose to flush this object from the system or unregister from
* some upstream manager whose object it was proxying, for example.
*/
public void removedLastSubscriber (DObject obj);
}