|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An object space that shares some of its objects with some other object space.
| Method Summary | |
void |
checkConsistency(java.util.logging.Logger log)
|
IntIterator |
getNewIDs()
The creation of new identifiers in calls to ObjectSpace.getID(java.lang.Object) and
ObjectSpace.setObject(int, java.lang.Object) is logged in a set newIDs. |
IntIterator |
getNewlySharedIDs()
If an identifier of this object space becomes shared, it is first inserted into the set newlySharedIDs. |
IntIterator |
getNewlyUnsharedIDs()
|
IntIterator |
getSharedIDs()
Objects corresponding to identifiers in this object space can eiter be shared or non-shared. |
void |
resetNewIDs()
Empties the set newIDs and flushes the
information in newlySharedIDs and
newlyUnsharedIDs to sharedIDs. |
| Methods inherited from interface uka.transport.ObjectSpace |
clear, findID, getID, getObject, getUsedIDs, includeID, isAccepted, isIncluded, isShared, isUsed, remove, resetObject, setObject |
| Method Detail |
public IntIterator getSharedIDs()
Objects corresponding to identifiers in this object space can eiter be shared or non-shared. If an object is consedered shared or non-shared depends on the concrete object space.
Operation on this object space (inclusion of objects, adding
objects to sub-spaces, and so on) never modify the set of
shared identifiers directly. Instead, the two journals newlySharedIDs and newlyUnsharedIDs are updated. These
journals are flushed into the shared identifier set via a call
to resetNewIDs().
public IntIterator getNewIDs()
ObjectSpace.getID(java.lang.Object) and
ObjectSpace.setObject(int, java.lang.Object) is logged in a set newIDs.
resetNewIDs().public IntIterator getNewlySharedIDs()
newlySharedIDs. A call to resetNewIDs() flushes this
information to sharedIDs.
public IntIterator getNewlyUnsharedIDs()
getNewlySharedIDs()public void resetNewIDs()
newIDs and flushes the
information in newlySharedIDs and
newlyUnsharedIDs to sharedIDs.
public void checkConsistency(java.util.logging.Logger log)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||