@FunctionalInterface public interface StorageBackupThreadProvider extends StorageThreadProviding
| Modifier and Type | Interface and Description |
|---|---|
static class |
StorageBackupThreadProvider.Default |
| Modifier and Type | Method and Description |
|---|---|
static StorageBackupThreadProvider |
New() |
default Thread |
provideBackupThread(StorageBackupHandler backupHandler)
Provides a newly created, yet unstarted
Thread instance wrapping the passed
StorageBackupHandler instance. |
Thread |
provideBackupThread(StorageBackupHandler backupHandler,
StorageThreadNameProvider threadNameProvider) |
default Thread provideBackupThread(StorageBackupHandler backupHandler)
Thread instance wrapping the passed
StorageBackupHandler 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.backupHandler - the handler to wrapThread instance to be used as a storage backup worker thread.Thread provideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)
static StorageBackupThreadProvider New()
Copyright © 2022 MicroStream Software. All rights reserved.