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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAuthorized(Transaction transaction)
Check if transaction is authorized for this lockboolean
isExpired()
Check if lock has expired, it will be removed if soboolean
isMatch(String authID)
Check if authID matches this lockvoid
refresh()
Refresh lockvoid
release()
Release lock
-
-
-
Method Detail
-
isExpired
boolean isExpired()
Check if lock has expired, it will be removed if so- Returns:
true
if Lock has gone stale
-
isMatch
boolean isMatch(String authID)
Check if authID matches this lock- Returns:
true
if authID matches
-
isAuthorized
boolean isAuthorized(Transaction transaction)
Check if transaction is authorized for this lock- Returns:
true
if transaction is authorized
-
refresh
void refresh()
Refresh lock
-
release
void release()
Release lock
-
-