Package com.luciad.ogc.wfs
Class TLcdWFSLockManager
java.lang.Object
com.luciad.ogc.wfs.TLcdWFSLockManager
A manager which enables management of locks.
This lock manager uses
ILcdWFSLockFactory
to create locks.
Custom lock factory implementations can be inserted through the factory method
ALcdOGCWFSCommandDispatcherFactory.createLockFactory(ILcdWFSFilteredModelFactory)
.- Since:
- 10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateLock
(long aExpiry) Creates a new lock with the given expiry time.Returns the lock with the given id.void
releaseLock
(ALcdWFSLock aLock) Releases the given lock and unlocks all features which it currently locks.
-
Method Details
-
createLock
Creates a new lock with the given expiry time.- Parameters:
aExpiry
- an expiry time in seconds.- Returns:
- a new lock.
-
releaseLock
Releases the given lock and unlocks all features which it currently locks. The given lock can no longer be used after this method has been called.- Parameters:
aLock
- the lock to release.
-
getLock
Returns the lock with the given id.- Parameters:
aLockId
- a valid lock id.- Returns:
- the
ALcdWFSLock
that corresponds to the given lock id. - Throws:
TLcdWFSServiceException
- if the given lock id isnull
or if no lock could be found.
-