deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.datastore
Class Lock

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

public class Lock
extends java.lang.Object
implements java.io.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(java.lang.String lockId, java.util.Set<java.lang.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.
 java.lang.String getId()
          Returns the unique lock identifier.
 java.util.Set<java.lang.String> getLockedFids()
          Returns the ids of the features that are locked by this lock.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lock

Lock(java.lang.String lockId,
     java.util.Set<java.lang.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 java.lang.String getId()
Returns the unique lock identifier.

Returns:
the unique lock identifier

getLockedFids

public java.util.Set<java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

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