public interface LockingManager
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.
| 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.
|
boolean exists(String authID)
lockID.
(remember that the lock may have expired)
authID - Authorization for locktrue if lock was foundboolean release(String authID, Transaction transaction) throws IOException
lockID.
(remember that the lock may have expired)
authID - Authorization for locktransaction - Transaction with authorization for lockIDtrue if lock was found and releasedIOException - DOCUMENT ME!boolean refresh(String authID, Transaction transaction) throws IOException
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)
authID - Authorization for locktransaction - Transaction with authorization for lockIDtrue if lock was found and refreshedIOException - DOCUMENT ME!void unLockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
typeName - authID - transaction - featureLock - IOException - DOCUMENT ME!void lockFeatureID(String typeName, String authID, Transaction transaction, FeatureLock featureLock) throws IOException
typeName - authID - transaction - featureLock - IOException - DOCUMENT ME!Copyright © 1996–2019 Geotools. All rights reserved.