Used to lock features when used with LockingDataSource.
This class is responsible for supplying a unique Authorization ID and
expirery date for LockingDataSource locking operations.
Example:
FeatureLock lock1 = FeatureLockFactory.generate( 18*60*60 ); // expire in 18 min
FeatureLock lock3 = FeatureLockFactory.generate( "MyLock", 30*60*60 ); // expire in 30 min
|
Although it is tempting to have these FeatureLock objects stored in a static
repository in the manner of GeoServer's TypeRepository.InternalLock -
that decision should be left to the individual DataSources.
An AbstractLockingDataSource with appropriate overrideable callbacks
may be an elegent way to acomplish this.
See Also: Database_Research.pdf See Also: Transactional_WFS_Design.pdf See Also: Design_Implications.pdf author: jgarnett, Refractions Research, Inc. author: |