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

io.github.wooenrico.kafka.ExecutorConf Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package io.github.wooenrico.kafka;

public class ExecutorConf {
    private int corePoolSize = Runtime.getRuntime().availableProcessors();
    private int maximumPoolSize = Runtime.getRuntime().availableProcessors() * 2 + 1;
    private long keepAliveTimeMill = 60000;
    private int queueSize = 100;

    public int getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(int corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public int getMaximumPoolSize() {
        return maximumPoolSize;
    }

    public void setMaximumPoolSize(int maximumPoolSize) {
        this.maximumPoolSize = maximumPoolSize;
    }

    public long getKeepAliveTimeMill() {
        return keepAliveTimeMill;
    }

    public void setKeepAliveTimeMill(long keepAliveTimeMill) {
        this.keepAliveTimeMill = keepAliveTimeMill;
    }

    public int getQueueSize() {
        return queueSize;
    }

    public void setQueueSize(int queueSize) {
        this.queueSize = queueSize;
    }

    @Override
    public String toString() {
        return "ExecutorConf{" +
                "corePoolSize=" + corePoolSize +
                ", maximumPoolSize=" + maximumPoolSize +
                ", keepAliveTimeMill=" + keepAliveTimeMill +
                ", queueSize=" + queueSize +
                '}';
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy