Class TLcdWFSLockManager

java.lang.Object
com.luciad.ogc.wfs.TLcdWFSLockManager

public class TLcdWFSLockManager extends Object
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 Details

    • createLock

      public ALcdWFSLock createLock(long aExpiry)
      Creates a new lock with the given expiry time.
      Parameters:
      aExpiry - an expiry time in seconds.
      Returns:
      a new lock.
    • releaseLock

      public void releaseLock(ALcdWFSLock aLock)
      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

      public ALcdWFSLock getLock(String aLockId) throws TLcdWFSServiceException
      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 is null or if no lock could be found.