All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qase.commons.config.BatchConfig Maven / Gradle / Ivy

The newest version!
package io.qase.commons.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class BatchConfig {
    private static final Logger logger = LoggerFactory.getLogger(BatchConfig.class);

    public int size = 200;

    public void setSize(int size) {
        if (size > 2000) {
            logger.warn("Batch size must be less than 2000. Using default value 200");
            return;
        }

        this.size = size;
    }

    public int getSize() {
        return size;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy