|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockManager
Interface that defines lock managers for providing various types of repository item locking.
Method Summary | |
---|---|
void |
createRepository(java.io.File repositoryDir)
Method invoked when a new repository is created. |
int |
getNextItemId()
Returns the next item id. |
void |
initialize(java.io.File repositoryDir)
Initialize the locking manager, obtaining any repository level lock if one is required. |
Lock |
lockItem(RepositoryItem item,
boolean writeLock)
Lock the given item for reading and/or writing. |
Lock |
lockItem(java.lang.String itemId,
boolean writeLock)
Lock the given itemId for reading and/or writing. |
void |
releaseLock(Lock lock)
Release the lock held on the given item. |
void |
terminate()
Terminate the locking manager. |
Method Detail |
---|
void initialize(java.io.File repositoryDir)
void createRepository(java.io.File repositoryDir)
void terminate()
int getNextItemId()
Lock lockItem(RepositoryItem item, boolean writeLock)
Lock lockItem(java.lang.String itemId, boolean writeLock)
void releaseLock(Lock lock)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |