|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Lock
Represents a lock of a LockManager
.
Method Summary | |
---|---|
CloseableIterator<String> |
getFailedToLockFeatures()
Returns the ids of all features that have been requested to be locked, but which couldn't. |
String |
getId()
Returns the lock identifier. |
CloseableIterator<String> |
getLockedFeatures()
Returns the ids of all locked features. |
int |
getNumFailedToLock()
Returns the number of features that have been requested to be locked, but which couldn't. |
int |
getNumLocked()
Returns the number of locked features. |
boolean |
isLocked(String fid)
Returns whether this Lock involves the specified feature. |
void |
release()
Releases all locked features (invalidates the lock). |
void |
release(QName ftName,
Filter filter)
Releases the specified features from the lock. |
void |
release(String fid)
Releases the specified feature from the lock (if it was locked). |
Method Detail |
---|
String getId()
int getNumLocked()
int getNumFailedToLock()
CloseableIterator<String> getLockedFeatures() throws FeatureStoreException
NOTE: The caller must invoke CloseableIterator.close()
after it's not needed anymore -- otherwise,
backing resources (such as database connections) may not be freed.
FeatureStoreException
CloseableIterator<String> getFailedToLockFeatures() throws FeatureStoreException
NOTE: The caller must invoke CloseableIterator.close()
after it's not needed anymore -- otherwise,
backing resources (such as database connections) may not be freed.
FeatureStoreException
boolean isLocked(String fid) throws FeatureStoreException
Lock
involves the specified feature.
fid
- id of the feature
FeatureStoreException
void release() throws FeatureStoreException
FeatureStoreException
void release(String fid) throws FeatureStoreException
fid
- id of the feature
FeatureStoreException
void release(QName ftName, Filter filter) throws FeatureStoreException
ftName
- filter
-
FeatureStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |