Package one.microstream.storage.types
Interface StorageBackupThreadProvider
-
- All Known Subinterfaces:
StorageThreadProvider
- All Known Implementing Classes:
StorageBackupThreadProvider.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 StorageBackupThreadProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageBackupThreadProvider.Default
-
Method Summary
Modifier and Type Method Description static StorageBackupThreadProvider
New()
Thread
provideBackupThread(StorageBackupHandler backupHandler)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageBackupHandler
instance.
-
-
-
Method Detail
-
provideBackupThread
Thread provideBackupThread(StorageBackupHandler backupHandler)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageBackupHandler
instance. The thread will be used as an exclusive, permanent backup 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 backup worker thread.
-
New
static StorageBackupThreadProvider New()
-
-