Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`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().

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Actuate Corp. All rights reserved.