FeatureLock directlypublic abstract class FeatureLockFactory extends Object implements Factory
Sample use:
FeatureLock lock = FeatureLockFactory.generate( "MyLock", 3600 );
| Constructor and Description |
|---|
FeatureLockFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract FeatureLock |
createLock(String name,
long duration)
Deprecated.
|
static FeatureLock |
generate(long duration)
Deprecated.
Generates a new FeatureLock for use.
|
static FeatureLock |
generate(String name,
long duration)
Deprecated.
Generates a new FeatureLock for use.
|
Map<RenderingHints.Key,Object> |
getImplementationHints()
Deprecated.
Returns the implementation hints.
|
static FeatureLockFactory |
getInstance()
Deprecated.
Gets an instance of the FeatureLockFactory.
|
public static FeatureLockFactory getInstance() throws FactoryRegistryException
FactoryRegistryException - 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 millisecondspublic static FeatureLock generate(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.duration - Date lock expires on.protected abstract FeatureLock createLock(String name, long duration)
public Map<RenderingHints.Key,Object> getImplementationHints()
getImplementationHints in interface FactoryCopyright © 1996–2019 Geotools. All rights reserved.