com.caucho.server.cluster
Interface ObjectManager

All Known Implementing Classes:
ProSessionManager, SessionManager

public interface ObjectManager

Base class for the distributed objects


Method Summary
 long getMaxIdleTime()
          Returns the maximum idle time.
 boolean isEmpty(java.lang.Object object)
          Returns true if the object is empty.
 void load(java.io.InputStream in, java.lang.Object object)
          Loads the object from the input stream.
 void notifyRemove(java.lang.String objectId)
          Notifies an object has been removed.
 void notifyUpdate(java.lang.String objectId)
          Notifies that an object is updated.
 void store(java.io.OutputStream out, java.lang.Object object)
          Stores the object in the output stream.
 

Method Detail

getMaxIdleTime

long getMaxIdleTime()
Returns the maximum idle time.


load

void load(java.io.InputStream in,
          java.lang.Object object)
          throws java.io.IOException
Loads the object from the input stream.

Throws:
java.io.IOException

isEmpty

boolean isEmpty(java.lang.Object object)
                throws java.io.IOException
Returns true if the object is empty.

Throws:
java.io.IOException

store

void store(java.io.OutputStream out,
           java.lang.Object object)
           throws java.io.IOException
Stores the object in the output stream.

Throws:
java.io.IOException

notifyUpdate

void notifyUpdate(java.lang.String objectId)
                  throws java.io.IOException
Notifies that an object is updated.

Throws:
java.io.IOException

notifyRemove

void notifyRemove(java.lang.String objectId)
                  throws java.io.IOException
Notifies an object has been removed.

Throws:
java.io.IOException