Interface StorageChannelCountProvider.Validation

Enclosing interface:
StorageChannelCountProvider

public static interface StorageChannelCountProvider.Validation
  • Method Details

    • maximumChannelCount

      static int maximumChannelCount()
      What was that: '640 KB ought to be enough RAM for anybody'?
      Nevertheless, I'll stick with that bound for now.
      TM, 2013-06-20

      On a more serious note:
      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