|
||||||||||
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<java.lang.String> |
getFailedToLockFeatures()
Returns the ids of all features that have been requested to be locked, but which couldn't. |
java.lang.String |
getId()
Returns the lock identifier. |
CloseableIterator<java.lang.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(java.lang.String fid)
Returns whether this Lock involves the specified feature. |
void |
release()
Releases all locked features (invalidates the lock). |
void |
release(javax.xml.namespace.QName ftName,
Filter filter)
Releases the specified features from the lock. |
void |
release(java.lang.String fid)
Releases the specified feature from the lock (if it was locked). |
Method Detail |
---|
java.lang.String getId()
int getNumLocked()
int getNumFailedToLock()
CloseableIterator<java.lang.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<java.lang.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(java.lang.String fid) throws FeatureStoreException
Lock
involves the specified feature.
fid
- id of the feature
FeatureStoreException
void release() throws FeatureStoreException
FeatureStoreException
void release(java.lang.String fid) throws FeatureStoreException
fid
- id of the feature
FeatureStoreException
void release(javax.xml.namespace.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 |