Package one.microstream.storage.types
Interface StorageChannelCountProvider.Validation
- Enclosing interface:
- StorageChannelCountProvider
public static interface StorageChannelCountProvider.Validation
-
Method Summary
Static Methods Modifier and Type Method Description static boolean
isValidChannelCountPow2Value(int channelCount)
static boolean
isValidChannelCountRange(int channelCount)
static int
maximumChannelCount()
This check has no actual technical background, it is just a safety net against oversight mistakes to prevent creation of thousands of threads and files.
Can be altered or removed anytime.static int
minimumChannelCount()
This is NOT necessarily the default channel count.static void
validateParameters(int channelCount)
-
Method Details
-
maximumChannelCount
static int maximumChannelCount()This check has no actual technical background, it is just a safety net against oversight mistakes to prevent creation of thousands of threads and files.
Can be altered or removed anytime.- Returns:
- the maximum channel count value of 1024.
-
minimumChannelCount
static int minimumChannelCount()This is NOT necessarily the default channel count. If the default changes to 2, the lowest valid count will still be 1!- Returns:
- the minimum channel count value of 1.
-
isValidChannelCountRange
static boolean isValidChannelCountRange(int channelCount) -
isValidChannelCountPow2Value
static boolean isValidChannelCountPow2Value(int channelCount) -
validateParameters
- Throws:
IllegalArgumentException
-