Package org.eclipse.birt.core.archive
Interface IArchiveLockManager
-
public interface IArchiveLockManager
lock used by the report engine to synchronize the document archives. the call sequence of such a locker should be:Object lock = manager.lock("fileName"); synchronized(lock) { ... process ... } manager.unlock(lock).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
lock(java.lang.String name)
lock the object named by "name"void
unlock(java.lang.Object lock)
unlock the object locked by "lock".
-
-
-
Method Detail
-
lock
java.lang.Object lock(java.lang.String name) throws java.io.IOException
lock the object named by "name"- Parameters:
name
- object name, the file name for file object.- Returns:
- a locker used to lock the object.
- Throws:
java.io.IOException
-
unlock
void unlock(java.lang.Object lock)
unlock the object locked by "lock".- Parameters:
lock
- the lock object return from lock().
-
-