Package one.microstream.storage.types
Class StorageThreadProvider.Wrapper
- java.lang.Object
-
- one.microstream.storage.types.StorageThreadProvider.Wrapper
-
- All Implemented Interfaces:
StorageBackupThreadProvider
,StorageChannelThreadProvider
,StorageLockFileManagerThreadProvider
,StorageThreadProvider
- 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
provideChannelThread(StorageChannel storageChannel)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageChannel
instance.Thread
provideLockFileManagerThread(StorageLockFileManager lockFileManager)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageLockFileManager
instance.
-
-
-
Method Detail
-
provideChannelThread
public final Thread provideChannelThread(StorageChannel storageChannel)
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
public final 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.
-
provideLockFileManagerThread
public final Thread provideLockFileManagerThread(StorageLockFileManager lockFileManager)
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.
-
-