|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFeatureLockFactory
FeatureLock
directly
public abstract class FeatureLockFactory
This specifies the interface to create FeatureLocks.
Sample use:
FeatureLock lock = FeatureLockFactory.generate( "MyLock", 3600 );
Constructor Summary | |
---|---|
FeatureLockFactory()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureLockFactory()
Method Detail |
---|
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 Factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |