Package one.microstream.storage.types
Interface StorageLockFileManagerThreadProvider
-
- All Known Subinterfaces:
StorageThreadProvider
- All Known Implementing Classes:
StorageLockFileManagerThreadProvider.Default
,StorageThreadProvider.Wrapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StorageLockFileManagerThreadProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageLockFileManagerThreadProvider.Default
-
Method Summary
Modifier and Type Method Description static StorageLockFileManagerThreadProvider
New()
Thread
provideLockFileManagerThread(StorageLockFileManager lockFileManager)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageLockFileManager
instance.
-
-
-
Method Detail
-
provideLockFileManagerThread
Thread provideLockFileManagerThread(StorageLockFileManager lockFileManager)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageLockFileManager
instance. The thread will be used as an exclusive, permanent lock file validator and updater worker thread until the storage is shut down. Interfering with the thread from outside the storage compound has undefined and potentially unpredictable and erronous behavior.- Returns:
- a
Thread
instance to be used as a storage lock file managing worker thread.
-
New
static StorageLockFileManagerThreadProvider New()
-
-