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 booleanisValidChannelCountPow2Value(int channelCount)static booleanisValidChannelCountRange(int channelCount)static intmaximumChannelCount()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 intminimumChannelCount()This is NOT necessarily the default channel count.static voidvalidateParameters(int channelCount)
-
-
-
Method Detail
-
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
static void validateParameters(int channelCount) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-