class ParallelUtil {

    public static int adjustedBatchSize(
        final int nodeCount,
        int concurrency,
        final int minBatchSize
    ) {
        if (concurrency <= 0) {
            concurrency = nodeCount;
        }
        int targetBatchSize = threadCount(concurrency, nodeCount);
        return Math.max(minBatchSize, targetBatchSize);
    }

    private  ParallelUtil();

}