|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDirectoryLockingManager
public class DirectoryLockingManager
Locking manager that will delegate its work to the locking managers of the delegate data stores
Constructor Summary | |
---|---|
DirectoryLockingManager(DirectoryTypeCache cache)
|
Method Summary | |
---|---|
boolean |
exists(String authID)
Check if any locks exist held by the authorization lockID . |
void |
lockFeatureID(String typeName,
String authID,
Transaction transaction,
FeatureLock featureLock)
FeatureID based locking. |
boolean |
refresh(String authID,
Transaction transaction)
Refresh locks held by the authorization lockID . |
boolean |
release(String authID,
Transaction transaction)
Release locks held by the authorization lockID . |
void |
unLockFeatureID(String typeName,
String authID,
Transaction transaction,
FeatureLock featureLock)
FeatureID based unlocking. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryLockingManager(DirectoryTypeCache cache)
Method Detail |
---|
public boolean exists(String authID)
LockingManager
lockID
.
(remember that the lock may have expired)
exists
in interface LockingManager
authID
- Authorization for lock
true
if lock was foundpublic boolean release(String authID, Transaction transaction) throws IOException
LockingManager
lockID
.
(remember that the lock may have expired)
release
in interface LockingManager
authID
- Authorization for locktransaction
- Transaction with authorization for lockID
true
if lock was found and released
IOException
- DOCUMENT ME!public boolean refresh(String authID, Transaction transaction) throws IOException
LockingManager
lockID
.
All features locked with the provied lockID
will be locked
for additional time (the origional duration requested).
(remember that the lock may have expired)
refresh
in interface LockingManager
authID
- Authorization for locktransaction
- Transaction with authorization for lockID
true
if lock was found and refreshed
IOException
- DOCUMENT ME!public void unLockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
LockingManager
unLockFeatureID
in interface LockingManager
IOException
- DOCUMENT ME!public void lockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
LockingManager
lockFeatureID
in interface LockingManager
IOException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |