com.sun.sgs.app
Interface ManagedObjectRemoval

All Superinterfaces:
ManagedObject
All Known Implementing Classes:
ScalableDeque, ScalableHashMap, ScalableHashSet, ScalableList

public interface ManagedObjectRemoval
extends ManagedObject

An interface that managed objects should implement in order to be notified when they are being removed from the DataManager. When the DataManager.removeObject method is called on an object that implements this interface, that method will first call removingObject before removing the object from the data manager. Managed objects containing references to other managed objects that should be removed when the main object is removed can implement the removingObject method to remove those referred-to objects. The removingObject method will not be called if this object has already been removed or is not currently managed by the data manager.

Note that the implementation of removingObject should make sure that it only removes objects that are logically "owned" by the main object, and that objects are not removed more than once. In particular, the implementation should not call DataManager.removeObject on the main object itself.

See Also:
DataManager.removeObject

Method Summary
 void removingObject()
          Performs additional operations that are needed when this object is removed.
 

Method Detail

removingObject

void removingObject()
Performs additional operations that are needed when this object is removed.


Project Darkstar, Version 0.9.9.6
2009-05-08 15:39:40

Copyright © 2007-2009 Sun Microsystems, Inc. All rights reserved