Package org.hibernate.search.store
Interface LockFactoryFactory
public interface LockFactoryFactory
To use a custom implementation of org.apache.lucene.store.LockFactory
you need to implement this interface and define the fully qualified
classname of the factory implementation as a DirectoryProvider parameter
for the locking_strategy key.
The implementation must have a no-arg constructor.
-
Method Summary
Modifier and TypeMethodDescriptioncreateLockFactory(File indexDir, Properties dirConfiguration) Creates a LockFactory implementation.
-
Method Details
-
createLockFactory
Creates a LockFactory implementation. A different LockFactory is created for each DirectoryProvider.- Parameters:
indexDir- path to the indexBase setting, or null for DirectoryProviders which don't rely on filesystemdirConfiguration- the properties set on the current DirectoryProvider- Returns:
- the created LockFactory
-