Package one.microstream.storage.types
Class StorageThreadProvider.Wrapper
java.lang.Object
one.microstream.storage.types.StorageThreadProvider.Wrapper
- All Implemented Interfaces:
StorageBackupThreadProvider
,StorageChannelThreadProvider
,StorageLockFileManagerThreadProvider
,StorageThreadProvider
,StorageThreadProviding
- Enclosing interface:
- StorageThreadProvider
public static final class StorageThreadProvider.Wrapper extends Object implements StorageThreadProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageBackupThreadProvider
StorageBackupThreadProvider.Default
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelThreadProvider
StorageChannelThreadProvider.Default
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageLockFileManagerThreadProvider
StorageLockFileManagerThreadProvider.Default
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageThreadProvider
StorageThreadProvider.Wrapper
-
Constructor Summary
Constructors Constructor Description Wrapper()
-
Method Summary
Modifier and Type Method Description Thread
provideBackupThread(StorageBackupHandler backupHandler)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageBackupHandler
instance.Thread
provideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)
Thread
provideChannelThread(StorageChannel storageChannel)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageChannel
instance.Thread
provideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)
Thread
provideLockFileManagerThread(StorageLockFileManager lockFileManager)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageLockFileManager
instance.Thread
provideLockFileManagerThread(StorageLockFileManager lockFileManager, StorageThreadNameProvider threadNameProvider)
-
Constructor Details
-
Wrapper
public Wrapper()
-
-
Method Details
-
provideChannelThread
Description copied from interface:StorageChannelThreadProvider
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageChannel
instance. The thread will be used as an exclusive, permanent storage channel 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:
provideChannelThread
in interfaceStorageChannelThreadProvider
- Returns:
- a
Thread
instance to be used as a storage channel worker thread.
-
provideBackupThread
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.
-
provideLockFileManagerThread
Description copied from interface:StorageLockFileManagerThreadProvider
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.- Specified by:
provideLockFileManagerThread
in interfaceStorageLockFileManagerThreadProvider
- Returns:
- a
Thread
instance to be used as a storage lock file managing worker thread.
-
provideChannelThread
public final Thread provideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)- Specified by:
provideChannelThread
in interfaceStorageChannelThreadProvider
-
provideBackupThread
public final Thread provideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)- Specified by:
provideBackupThread
in interfaceStorageBackupThreadProvider
-
provideLockFileManagerThread
public final Thread provideLockFileManagerThread(StorageLockFileManager lockFileManager, StorageThreadNameProvider threadNameProvider)- Specified by:
provideLockFileManagerThread
in interfaceStorageLockFileManagerThreadProvider
-