com.caucho.server.cluster
Interface StorableObject


public interface StorableObject

Interface for an object meant to be stored.


Method Summary
 java.lang.String getId()
          Returns the object's id.
 void load(java.io.ObjectInputStream is)
          Deserializes the object from the input stream.
 void store(java.io.ObjectOutputStream os)
          Serializes the object to from the output stream.
 

Method Detail

getId

java.lang.String getId()
Returns the object's id.


load

void load(java.io.ObjectInputStream is)
          throws java.io.IOException
Deserializes the object from the input stream.

Parameters:
is - the input stream to deserialize from.
Throws:
java.io.IOException

store

void store(java.io.ObjectOutputStream os)
           throws java.io.IOException
Serializes the object to from the output stream.

Parameters:
os - the output stream to deserialize to.
Throws:
java.io.IOException