Class ConcurrencySettings

    • Method Detail

      • withCount

        public static ConcurrencySettings withCount​(int count)
        Creates a new concurrency settings object.
        Parameters:
        count - The number of times to run blocks of code.
        Returns:
        The created concurrency settings object.
        Throws:
        IllegalArgumentException - If the given count is not positive.
      • count

        public int count()
        Returns the number of times to run blocks of code.
        Returns:
        The number of times to run blocks of code.
      • threadCount

        public int threadCount()
        Returns the number of threads to use.
        Returns:
        The number of threads to use.