Interface SimpleFeatureLocking

All Superinterfaces:
FeatureLocking<SimpleFeatureType,SimpleFeature>, FeatureSource<SimpleFeatureType,SimpleFeature>, FeatureStore<SimpleFeatureType,SimpleFeature>, SimpleFeatureSource, SimpleFeatureStore
All Known Implementing Classes:
ContentFeatureStore, CSVFeatureStore, DirectoryFeatureLocking, GeoJSONFeatureStore, JDBCFeatureStore, MemoryFeatureStore, MongoFeatureStore, PropertyFeatureStore, TransformFeatureLocking

public interface SimpleFeatureLocking extends SimpleFeatureStore, FeatureLocking<SimpleFeatureType,SimpleFeature>
Used to lock feature content to protect against other threads (or depending on the source of data other applications) making modifications when you are not looking.

The locks operate more as a lease for a specific period of time. In effect you are only locking for a set time period; so even if your application or machine crashes the lock will eventually be released allowing others to play.