Package org.geotools.api.data
Interface LockingManager
-
- All Known Implementing Classes:
DirectoryLockingManager,InProcessLockingManager
public interface LockingManagerThis class describes a featureID based locking service.ContentFeatureSource, and others, may use this API to request locks on the basis of FeatureID.
This class is also used as a public api to manage locks.
- Author:
- Jody Garnett, Refractions Research
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists(String authID)Check if any locks exist held by the authorizationlockID.voidlockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock)FeatureID based locking.booleanrefresh(String authID, Transaction transaction)Refresh locks held by the authorizationlockID.booleanrelease(String authID, Transaction transaction)Release locks held by the authorizationlockID.voidunLockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock)FeatureID based unlocking.
-
-
-
Method Detail
-
exists
boolean exists(String authID)
Check if any locks exist held by the authorizationlockID.(remember that the lock may have expired)
- Parameters:
authID- Authorization for lock- Returns:
trueif lock was found
-
release
boolean release(String authID, Transaction transaction) throws IOException
Release locks held by the authorizationlockID.(remember that the lock may have expired)
- Parameters:
authID- Authorization for locktransaction- Transaction with authorization for lockID- Returns:
trueif lock was found and released- Throws:
IOException
-
refresh
boolean refresh(String authID, Transaction transaction) throws IOException
Refresh locks held by the authorizationlockID.All features locked with the provied
lockIDwill be locked for additional time (the origional duration requested).(remember that the lock may have expired)
- Parameters:
authID- Authorization for locktransaction- Transaction with authorization for lockID- Returns:
trueif lock was found and refreshed- Throws:
IOException
-
unLockFeatureID
void unLockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
FeatureID based unlocking.- Throws:
IOException
-
lockFeatureID
void lockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
FeatureID based locking.- Throws:
IOException
-
-