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)
LockingManager
lockID
.
(remember that the lock may have expired)
exists
in interface LockingManager
authID
- Authorization for locktrue
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 lockIDtrue
if lock was found and releasedIOException
- 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 lockIDtrue
if lock was found and refreshedIOException
- 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!Copyright © 1996–2019 Geotools. All rights reserved.