public class ObjectRef extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
VIRTUAL_METHOD_CLOSE_OBJECT_MANAGER |
static String |
VIRTUAL_METHOD_NAME_DEC_REF_COUNT
Virtual method indicating that the associated
ObjectRef is not needed anymore - and should
eventually (when the counter is 0) be removed from the ObjectManager . |
static String |
VIRTUAL_METHOD_NAME_INC_REF_COUNT
Virtual method indicating that the associated
ObjectRef is used by a reference on the other side. |
Constructor and Description |
---|
ObjectRef(Uid clientId,
int classId,
long objectId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getClassId() |
ClassInfo |
getClassInfo() |
Uid |
getClientId() |
long |
getObjectId() |
int |
hashCode() |
void |
setClassInfo(ClassInfo classInfo) |
String |
toString() |
public static final String VIRTUAL_METHOD_NAME_INC_REF_COUNT
ObjectRef
is used by a reference on the other side.
This method is "virtual", because it does not exist and actually has a name that is illegal as a Java method name (thus making sure, we'll never have a collision with a real method). This special name is transferred as method-name in the remote-invocation-protocol whenever a proxy on the other side is created. Normally, there should be only one proxy, but there might be multiple, if the old objects were not yet garbage-collected. Additionally, there might be 0 for a short while - the actual removal is deferred a few seconds.
public static final String VIRTUAL_METHOD_NAME_DEC_REF_COUNT
ObjectRef
is not needed anymore - and should
eventually (when the counter is 0) be removed from the ObjectManager
.
This method is "virtual", because it does not exist and actually has a name that is illegal as a Java method name
(thus making sure, we'll never have a collision with a real method).
This special name is transferred as method-name in the remote-invocation-protocol whenever a proxy on the other side
is garbage-collected and the corresponding ObjectRef-to-Object-mapping should thus be removed from the
ObjectManager
.
public static final String VIRTUAL_METHOD_CLOSE_OBJECT_MANAGER
public Uid getClientId()
public int getClassId()
public long getObjectId()
public ClassInfo getClassInfo()
public void setClassInfo(ClassInfo classInfo)
Copyright © 2013–2019. All rights reserved.