@FunctionalInterface public interface StorageChannelCountProvider extends BinaryChannelCountProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
StorageChannelCountProvider.Default |
static interface |
StorageChannelCountProvider.Defaults |
static interface |
StorageChannelCountProvider.Validation |
| Modifier and Type | Method and Description |
|---|---|
int |
getChannelCount() |
static StorageChannelCountProvider |
New()
Pseudo-constructor method to create a new
StorageChannelCountProvider instance
using default values defined by StorageChannelCountProvider.Defaults. |
static StorageChannelCountProvider |
New(int channelCount)
Pseudo-constructor method to create a new
StorageChannelCountProvider instance
using the passed value. |
static int |
validateChannelCount(int channelCount) |
int getChannelCount()
getChannelCount in interface BinaryChannelCountProviderstatic int validateChannelCount(int channelCount)
throws IllegalArgumentException
IllegalArgumentExceptionstatic StorageChannelCountProvider New()
StorageChannelCountProvider instance
using default values defined by StorageChannelCountProvider.Defaults.
For explanations and customizing values, see New(int).
StorageChannelCountProvider instance.New(int),
StorageChannelCountProvider.Defaultsstatic StorageChannelCountProvider New(int channelCount)
StorageChannelCountProvider instance
using the passed value.
A "channel" is the combination of exclusive storage Thread maintaining an entity registry, data cache,
and the like and a storage directory containing storage data files exclusively used by that thread.
The more channels there are, the more parallel loading and storing operations will be executed and the faster
the application will become, provided a hardware that can effectively execute that many threads.
Since channels use bitwise modulo hashing, the number of channels must always be
a 2^n number with n greater than or equal 0.
(Meaning 1, 2, 4, 8, 16, etc.)
channelCount - the number of channels. Must be a 2^n number with n greater than or equal 0.StorageChannelCountProvider instance.IllegalArgumentException - if the passed value is higher than the value returned by
StorageChannelCountProvider.Validation.maximumChannelCount()New(),
StorageChannelCountProvider.DefaultsCopyright © 2022 MicroStream Software. All rights reserved.