public class StorableObject extends Object implements Serializable
MarshalledObject that can be stored persistently. When you
invoke get, the object is deserialized, its value cached in this object, and then
returned. Subsequent calls to get return that value. This lets you store the object
and hold it around, waiting until it is actually deserializable, since it may not be at any given
time due to various factors, such as the codebase being unavailable.| Constructor and Description |
|---|
StorableObject(Object obj)
Create a
StorableObject that will hold obj in a
MarshalledObject. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
Object |
get()
Return the Remote reference.
|
int |
hashCode()
Return the
hashCode of the MarshalledObject. |
public StorableObject(Object obj) throws RemoteException
StorableObject that will hold obj in a
MarshalledObject.RemoteExceptionpublic int hashCode()
hashCode of the MarshalledObject.public Object get() throws RemoteException
RemoteException - Problems re-establishing connection with remote objectCopyright © GigaSpaces.