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.DefaultNested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelThreadProvider
StorageChannelThreadProvider.DefaultNested classes/interfaces inherited from interface one.microstream.storage.types.StorageLockFileManagerThreadProvider
StorageLockFileManagerThreadProvider.DefaultNested 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 ThreadprovideBackupThread(StorageBackupHandler backupHandler)Provides a newly created, yet unstartedThreadinstance wrapping the passedStorageBackupHandlerinstance.ThreadprovideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)ThreadprovideChannelThread(StorageChannel storageChannel)Provides a newly created, yet unstartedThreadinstance wrapping the passedStorageChannelinstance.ThreadprovideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)ThreadprovideLockFileManagerThread(StorageLockFileManager lockFileManager)Provides a newly created, yet unstartedThreadinstance wrapping the passedStorageLockFileManagerinstance.ThreadprovideLockFileManagerThread(StorageLockFileManager lockFileManager, StorageThreadNameProvider threadNameProvider)
-
Constructor Details
-
Wrapper
public Wrapper()
-
-
Method Details
-
provideChannelThread
Description copied from interface:StorageChannelThreadProviderProvides a newly created, yet unstartedThreadinstance wrapping the passedStorageChannelinstance. 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:
provideChannelThreadin interfaceStorageChannelThreadProvider- Returns:
- a
Threadinstance to be used as a storage channel worker thread.
-
provideBackupThread
Description copied from interface:StorageBackupThreadProviderProvides 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.- Specified by:
provideBackupThreadin interfaceStorageBackupThreadProvider- Returns:
- a
Threadinstance to be used as a storage backup worker thread.
-
provideLockFileManagerThread
Description copied from interface:StorageLockFileManagerThreadProviderProvides a newly created, yet unstartedThreadinstance wrapping the passedStorageLockFileManagerinstance. 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:
provideLockFileManagerThreadin interfaceStorageLockFileManagerThreadProvider- Returns:
- a
Threadinstance to be used as a storage lock file managing worker thread.
-
provideChannelThread
public final Thread provideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)- Specified by:
provideChannelThreadin interfaceStorageChannelThreadProvider
-
provideBackupThread
public final Thread provideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)- Specified by:
provideBackupThreadin interfaceStorageBackupThreadProvider
-
provideLockFileManagerThread
public final Thread provideLockFileManagerThread(StorageLockFileManager lockFileManager, StorageThreadNameProvider threadNameProvider)- Specified by:
provideLockFileManagerThreadin interfaceStorageLockFileManagerThreadProvider
-