public class TLcdWFSLockManager extends Object
ILcdWFSLockFactory
to create locks.
Custom lock factory implementations can be inserted through the factory method
ALcdOGCWFSCommandDispatcherFactory.createLockFactory(ILcdWFSFilteredModelFactory)
.ALcdOGCWFSCommandDispatcherFactory
,
ILcdWFSLockFactory
Modifier and Type | Method and Description |
---|---|
ALcdWFSLock |
createLock(long aExpiry)
Creates a new lock with the given expiry time.
|
ALcdWFSLock |
getLock(String aLockId)
Returns the lock with the given id.
|
void |
releaseLock(ALcdWFSLock aLock)
Releases the given lock and unlocks all features which it currently locks.
|
public ALcdWFSLock createLock(long aExpiry)
aExpiry
- an expiry time in seconds.public void releaseLock(ALcdWFSLock aLock)
aLock
- the lock to release.public ALcdWFSLock getLock(String aLockId) throws TLcdWFSServiceException
aLockId
- a valid lock id.ALcdWFSLock
that corresponds to the given lock id.TLcdWFSServiceException
- if the given lock id is null
or if no lock could be found.