public class DirectoryLockingManager extends Object implements LockingManager
| Constructor and Description |
|---|
DirectoryLockingManager(DirectoryTypeCache cache) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean exists(String authID)
LockingManagerlockID.
(remember that the lock may have expired)
exists in interface LockingManagerauthID - Authorization for locktrue if lock was foundpublic boolean release(String authID, Transaction transaction) throws IOException
LockingManagerlockID.
(remember that the lock may have expired)
release in interface LockingManagerauthID - Authorization for locktransaction - Transaction with authorization for lockIDtrue if lock was found and releasedIOExceptionpublic boolean refresh(String authID, Transaction transaction) throws IOException
LockingManagerlockID.
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 LockingManagerauthID - Authorization for locktransaction - Transaction with authorization for lockIDtrue if lock was found and refreshedIOExceptionpublic void unLockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
LockingManagerunLockFeatureID in interface LockingManagerIOExceptionpublic void lockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
LockingManagerlockFeatureID in interface LockingManagerIOExceptionCopyright © 1996–2021 Geotools. All rights reserved.