@FunctionalInterface public interface StorageChannelThreadProvider extends StorageThreadProviding
| Modifier and Type | Interface and Description |
|---|---|
static class |
StorageChannelThreadProvider.Default |
| Modifier and Type | Method and Description |
|---|---|
default Thread |
provideChannelThread(StorageChannel storageChannel)
Provides a newly created, yet unstarted
Thread instance wrapping the passed
StorageChannel instance. |
Thread |
provideChannelThread(StorageChannel storageChannel,
StorageThreadNameProvider threadNameProvider) |
default Thread provideChannelThread(StorageChannel storageChannel)
Thread instance wrapping the passed
StorageChannel 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.storageChannel - the channel to wrapThread instance to be used as a storage channel worker thread.Thread provideChannelThread(StorageChannel storageChannel, StorageThreadNameProvider threadNameProvider)
Copyright © 2022 MicroStream Software. All rights reserved.