All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.birt.core.archive.IArchiveLockManager Maven / Gradle / Ivy

There is a newer version: 4.6.0-20160607
Show newest version
package org.eclipse.birt.core.archive;

import java.io.IOException;

/**
 * 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).
 * 
*/ public interface IArchiveLockManager { /** * lock the object named by "name" * @param name object name, the file name for file object. * @return a locker used to lock the object. */ Object lock(String name) throws IOException; /** * unlock the object locked by "lock". * @param lock the lock object return from lock(). */ void unlock(Object lock); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy