|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.mahalo.StorableObject
public class StorableObject
This class holds a 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 Summary | |
---|---|
StorableObject(Object obj)
Create a StorableObject that will hold obj
in a MarshalledObject . |
Method Summary | |
---|---|
boolean |
equals(Object that)
|
Object |
get()
Return the Remote reference. |
int |
hashCode()
Return the hashCode of the MarshalledObject . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorableObject(Object obj) throws RemoteException
StorableObject
that will hold obj
in a MarshalledObject
.
RemoteException
Method Detail |
---|
public int hashCode()
hashCode
of the MarshalledObject
.
hashCode
in class Object
public boolean equals(Object that)
equals
in class Object
public Object get() throws RemoteException
RemoteException
- Problems re-establishing connection with remote object
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |