| java.lang.Object org.geotools.data.FeatureLockFactory
All known Subclasses: org.geotools.data.DefaultFeatureLockFactory,
FeatureLockFactory | abstract public class FeatureLockFactory implements Factory(Code) | | This specifies the interface to create FeatureLocks.
Sample use:
FeatureLock lock = FeatureLockFactory.generate( "MyLock", 3600 );
version: $Id: FeatureLockFactory.java 24991 2007-04-03 05:41:12Z jgarnett $ author: Chris Holmes, TOPP |
generate | public static FeatureLock generate(long duration)(Code) | | Generates a new FeatureLock for use.
The lock will be of the form:
LockID{number}
Where:
{number} - is unique based on time and expiration requested
The resulting lock is unique.
To aid in tracing your may wish to supply your own name,
rather than LockID, for use in lock generation.
Parameters: duration - FeatureLock duration in seconds |
generate | public static FeatureLock generate(String name, long duration)(Code) | | Generates a new FeatureLock for use.
The lock will be of the form:
{name}{number}
Where:
{number} - is unique based on time and expiration requested
The resulting lock is unique.
To aid in tracing your may wish to supply your own name,
rather than LockID, for use in lock generation.
Parameters: name - User supplied name used in lock generation. Parameters: duration - Date lock expires on. |
getImplementationHints | public Map getImplementationHints()(Code) | | Returns the implementation hints. The default implementation returns en empty map.
|
|
|