ch.systemsx.cisd.openbis.dss.generic.shared.content
Class DelayedPersistenceManager

java.lang.Object
  extended by ch.systemsx.cisd.openbis.dss.generic.shared.content.DelayedPersistenceManager
All Implemented Interfaces:
IPersistenceManager

public class DelayedPersistenceManager
extends java.lang.Object
implements IPersistenceManager


Constructor Summary
DelayedPersistenceManager(IPersistenceManager persistenceManager)
           
DelayedPersistenceManager(IPersistenceManager persistenceManager, long delay)
           
 
Method Summary
 java.io.Serializable load(java.io.Serializable defaultObject)
          Loads and returns the persistent object.
 void requestPersistence()
          Requests for persisting the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedPersistenceManager

public DelayedPersistenceManager(IPersistenceManager persistenceManager)

DelayedPersistenceManager

public DelayedPersistenceManager(IPersistenceManager persistenceManager,
                                 long delay)
Method Detail

load

public java.io.Serializable load(java.io.Serializable defaultObject)
Description copied from interface: IPersistenceManager
Loads and returns the persistent object.

Specified by:
load in interface IPersistenceManager
Parameters:
defaultObject - will be returned if loading failed.

requestPersistence

public void requestPersistence()
Description copied from interface: IPersistenceManager
Requests for persisting the object. This can be done synchronously or asynchronously depending on the implementation.

Specified by:
requestPersistence in interface IPersistenceManager