Package org.geotools.data
Interface InProcessLockingManager.Lock
-
- Enclosing class:
- InProcessLockingManager
public static interface InProcessLockingManager.LockRepresents 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 booleanisAuthorized(Transaction transaction)Check if transaction is authorized for this lockbooleanisExpired()Check if lock has expired, it will be removed if sobooleanisMatch(String authID)Check if authID matches this lockvoidrefresh()Refresh lockvoidrelease()Release lock
-
-
-
Method Detail
-
isExpired
boolean isExpired()
Check if lock has expired, it will be removed if so- Returns:
trueif Lock has gone stale
-
isMatch
boolean isMatch(String authID)
Check if authID matches this lock- Returns:
trueif authID matches
-
isAuthorized
boolean isAuthorized(Transaction transaction)
Check if transaction is authorized for this lock- Returns:
trueif transaction is authorized
-
refresh
void refresh()
Refresh lock
-
release
void release()
Release lock
-
-