Package one.microstream.storage.types
Class StorageChannelThreadProvider.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageChannelThreadProvider.Default
-
- All Implemented Interfaces:
StorageChannelThreadProvider
- Enclosing interface:
- StorageChannelThreadProvider
public static final class StorageChannelThreadProvider.Default extends Object implements StorageChannelThreadProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelThreadProvider
StorageChannelThreadProvider.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description Thread
provideChannelThread(StorageChannel storageChannel)
Provides a newly created, yet unstartedThread
instance wrapping the passedStorageChannel
instance.
-
-
-
Method Detail
-
provideChannelThread
public 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.
-
-