Package one.microstream.storage.types
Interface StorageChannelThreadProvider
-
- All Superinterfaces:
StorageThreadProviding
- All Known Subinterfaces:
StorageThreadProvider
- All Known Implementing Classes:
StorageChannelThreadProvider.Default,StorageThreadProvider.Wrapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StorageChannelThreadProvider extends StorageThreadProviding
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageChannelThreadProvider.Default
-
Method Summary
Modifier and Type Method Description default ThreadprovideChannelThread(StorageChannel storageChannel)Provides a newly created, yet unstartedThreadinstance wrapping the passedStorageChannelinstance.ThreadprovideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)
-
-
-
Method Detail
-
provideChannelThread
default Thread provideChannelThread(StorageChannel storageChannel)
Provides 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.- Returns:
- a
Threadinstance to be used as a storage channel worker thread.
-
provideChannelThread
Thread provideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)
-
-