Package org.geotools.data
Interface InProcessLockingManager.Lock
- Enclosing class:
- InProcessLockingManager
public static interface InProcessLockingManager.Lock
Represents In-Process locks for Transactions or FeatureLocks.
- Author:
- Jody Garnett, Refractions Research
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthorized
(Transaction transaction) Check if transaction is authorized for this lockboolean
Check if lock has expired, it will be removed if soboolean
Check if authID matches this lockvoid
refresh()
Refresh lockvoid
release()
Release lock
-
Method Details
-
isExpired
boolean isExpired()Check if lock has expired, it will be removed if so- Returns:
true
if Lock has gone stale
-
isMatch
Check if authID matches this lock- Returns:
true
if authID matches
-
isAuthorized
Check if transaction is authorized for this lock- Returns:
true
if transaction is authorized
-
refresh
void refresh()Refresh lock -
release
void release()Release lock
-