Package one.microstream.storage.types
Class StorageBackupThreadProvider.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageBackupThreadProvider.Default
-
- All Implemented Interfaces:
StorageBackupThreadProvider
- Enclosing interface:
- StorageBackupThreadProvider
public static final class StorageBackupThreadProvider.Default extends Object implements StorageBackupThreadProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageBackupThreadProvider
StorageBackupThreadProvider.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description Thread
provideBackupThread(StorageBackupHandler backupHandler)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageBackupHandler
instance.
-
-
-
Method Detail
-
provideBackupThread
public Thread provideBackupThread(StorageBackupHandler backupHandler)
Description copied from interface:StorageBackupThreadProvider
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.- Specified by:
provideBackupThread
in interfaceStorageBackupThreadProvider
- Returns:
- a
Thread
instance to be used as a storage backup worker thread.
-
-