ch.systemsx.cisd.openbis.dss.generic.shared.content
Class DelayedPersistenceManager
java.lang.Object
ch.systemsx.cisd.openbis.dss.generic.shared.content.DelayedPersistenceManager
- All Implemented Interfaces:
- IPersistenceManager
public class DelayedPersistenceManager
- extends java.lang.Object
- implements IPersistenceManager
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 |
DelayedPersistenceManager
public DelayedPersistenceManager(IPersistenceManager persistenceManager)
DelayedPersistenceManager
public DelayedPersistenceManager(IPersistenceManager persistenceManager,
long delay)
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