deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.datastore
Class Lock

java.lang.Object
  extended by org.deegree.io.datastore.Lock
All Implemented Interfaces:
Serializable

public class Lock
extends Object
implements Serializable

Represents a lock that has been acquired by a LockFeature or a GetFeatureWithLock request.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$
See Also:
Serialized Form

Constructor Summary
Lock(String lockId, Set<String> lockedFids, long expiryTime)
          Creates a new Lock from the given parameters.
 
Method Summary
(package private)  long getExpiryTime()
          Returns the point in time when this lock will automatically expire.
 String getId()
          Returns the unique lock identifier.
 Set<String> getLockedFids()
          Returns the ids of the features that are locked by this lock.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lock

Lock(String lockId,
     Set<String> lockedFids,
     long expiryTime)
Creates a new Lock from the given parameters.

Parameters:
lockId - id of the lock (must be unique)
lockedFids - locked feature ids
expiryTime - point in time when the Lock expires automatically
Method Detail

getId

public String getId()
Returns the unique lock identifier.

Returns:
the unique lock identifier

getLockedFids

public Set<String> getLockedFids()
Returns the ids of the features that are locked by this lock.

Returns:
the ids of the locked features

getExpiryTime

long getExpiryTime()
Returns the point in time when this lock will automatically expire.

Returns:
the point in time when this lock will automatically expire

toString

public String toString()
Overrides:
toString in class Object

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org