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 TypeMethodDescriptionbooleanisAuthorized(Transaction transaction) Check if transaction is authorized for this lockbooleanCheck if lock has expired, it will be removed if sobooleanCheck if authID matches this lockvoidrefresh()Refresh lockvoidrelease()Release lock
-
Method Details
-
isExpired
boolean isExpired()Check if lock has expired, it will be removed if so- Returns:
trueif Lock has gone stale
-
isMatch
Check if authID matches this lock- Returns:
trueif authID matches
-
isAuthorized
Check if transaction is authorized for this lock- Returns:
trueif transaction is authorized
-
refresh
void refresh()Refresh lock -
release
void release()Release lock
-