|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.FeatureLockFactory
This specifies the interface to create FeatureLocks.
Sample use:
FeatureLock lock = FeatureLockFactory.generate( "MyLock", 3600 );
Constructor Summary | |
FeatureLockFactory()
|
Method Summary | |
protected abstract FeatureLock |
createLock(java.lang.String name,
long duration)
|
static FeatureLock |
generate(long duration)
Generates a new FeatureLock for use. |
static FeatureLock |
generate(java.lang.String name,
long duration)
Generates a new FeatureLock for use. |
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
static FeatureLockFactory |
getInstance()
Gets an instance of the FeatureLockFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FeatureLockFactory()
Method Detail |
public static FeatureLockFactory getInstance() throws FactoryConfigurationError
FactoryConfigurationError
- If there exists a configuration error.public static FeatureLock generate(long duration)
The lock will be of the form:
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.
duration
- FeatureLock duration in secondspublic static FeatureLock generate(java.lang.String name, long duration)
To aid in tracing your may wish to supply your own name,
rather than
LockID
, for use in lock generation.
name
- User supplied name used in lock generation.
protected abstract FeatureLock createLock(java.lang.String name, long duration)
public java.util.Map getImplementationHints()
getImplementationHints
in interface Factory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |