Package one.microstream.storage.types
Interface StorageBackupThreadProvider
- All Superinterfaces:
- StorageThreadProviding
- 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 extends StorageThreadProviding
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classStorageBackupThreadProvider.Default
- 
Method SummaryModifier and Type Method Description static StorageBackupThreadProviderNew()default ThreadprovideBackupThread(StorageBackupHandler backupHandler)Provides a newly created, yet unstartedThreadinstance wrapping the passedStorageBackupHandlerinstance.ThreadprovideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)
- 
Method Details- 
provideBackupThreadProvides a newly created, yet unstartedThreadinstance wrapping the passedStorageBackupHandlerinstance. 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 Threadinstance to be used as a storage backup worker thread.
 
- 
provideBackupThreadThread provideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)
- 
New
 
-