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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadprovideBackupThread(StorageBackupHandler backupHandler)Provides a newly created, yet un-startedThreadinstance wrapping the passedStorageBackupHandlerinstance.ThreadprovideBackupThread(StorageBackupHandler backupHandler, StorageThreadNameProvider threadNameProvider)ThreadprovideChannelThread(StorageChannel storageChannel)Provides a newly created, yet un-startedThreadinstance wrapping the passedStorageChannelinstance.ThreadprovideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)ThreadprovideLockFileManagerThread(StorageLockFileManager lockFileManager)Provides a newly created, yet un-startedThreadinstance wrapping the passedStorageLockFileManagerinstance.ThreadprovideLockFileManagerThread(StorageLockFileManager lockFileManager, StorageThreadNameProvider threadNameProvider)
-
-
-
Method Detail
-
provideChannelThread
public final Thread provideChannelThread(StorageChannel storageChannel)
Description copied from interface:StorageChannelThreadProviderProvides a newly created, yet un-startedThreadinstance 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 erroneous behavior.- Specified by:
provideChannelThreadin interfaceStorageChannelThreadProvider- Parameters:
storageChannel- the channel to wrap- Returns:
- a
Threadinstance to be used as a storage channel worker thread.
-
provideBackupThread
public final Thread provideBackupThread(StorageBackupHandler backupHandler)
Description copied from interface:StorageBackupThreadProviderProvides a newly created, yet un-startedThreadinstance 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- Parameters:
backupHandler- the handler to wrap- Returns:
- a
Threadinstance to be used as a storage backup worker thread.
-
provideLockFileManagerThread
public final Thread provideLockFileManagerThread(StorageLockFileManager lockFileManager)
Description copied from interface:StorageLockFileManagerThreadProviderProvides a newly created, yet un-startedThreadinstance 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 erroneous behavior.- Specified by:
provideLockFileManagerThreadin interfaceStorageLockFileManagerThreadProvider- Parameters:
lockFileManager- the lock file manager to wrap- 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
-
-