|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.util.IDConstants
uka.util.IDMap
uka.transport.DefaultObjectSpace
| Field Summary |
| Fields inherited from class uka.util.IDMap |
idToObject, INVALID_INDEX, space |
| Fields inherited from class uka.util.IDConstants |
FIRST_NEW_ID, FIRST_VALID_ID, INVALID_ID, UNUSED_ID |
| Constructor Summary | |
DefaultObjectSpace()
|
|
| Method Summary | |
int |
getID(java.lang.Object obj)
Returns the identifier for a given object. |
void |
includeID(int id)
Make the object that corresponds to the given identifier part of this object space. |
boolean |
isAccepted(int id)
Decides whether an object reference should be blocked during transmission through a MarshalStream/UnmarshalStream pair. |
boolean |
isIncluded(int id)
Decides whether the obect that corresponds to the given identifier is part of this object space. |
boolean |
isShared(int id)
|
| Methods inherited from class uka.util.IDMap |
appendTo, clear, dump, findID, get, getHash, getIndexForHash, getIndexForID, getObject, getObjects, getSize, getUsedIDs, isUsed, rawFindID, remove, resetObject, restoreBeforeReadObject, set, setObject |
| Methods inherited from class uka.util.IDConstants |
isNew, isValid, normalizeID, toggleNew |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uka.transport.ObjectSpace |
clear, findID, getObject, getUsedIDs, isUsed, remove, resetObject, setObject |
| Constructor Detail |
public DefaultObjectSpace()
| Method Detail |
public void includeID(int id)
ObjectSpaceObjectSpace.isIncluded(int) method returns true for the
corresponding identifier. An object can have an assigned
identifier in some object space without being part of that
object space.
includeID in interface ObjectSpacepublic int getID(java.lang.Object obj)
ObjectSpaceObjectSpace the first time, the #isNew method returns true for the resulting
identifier.
getID in interface ObjectSpacegetID in class IDMappublic boolean isIncluded(int id)
ObjectSpace
isIncluded in interface ObjectSpaceObjectSpace.includeID(int)public boolean isShared(int id)
isShared in interface ObjectSpacepublic boolean isAccepted(int id)
ObjectSpaceMarshalStream/UnmarshalStream pair. If a call to ObjectSpace.isAccepted(int) on the
ObjectSpace of the sender-side stream returns
false for an object identifier, a reference to the
corresponding object is blocked (replaced with
null).
isAccepted in interface ObjectSpace
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||