| package org.apache.rocketmq.exporter.config; |
| |
| |
| import org.springframework.boot.context.properties.ConfigurationProperties; |
| import org.springframework.context.annotation.Configuration; |
| |
| @Configuration |
| @ConfigurationProperties(prefix = "threadpool.collect-client-metric-executor") |
| public class CollectClientMetricExecutorConfig { |
| private int corePoolSize = 20; |
| private int maximumPoolSize = 20; |
| private long keepAliveTime = 4000L; |
| private int queueSize = 1000; |
| |
| 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 getKeepAliveTime() { |
| return keepAliveTime; |
| } |
| |
| public void setKeepAliveTime(long keepAliveTime) { |
| this.keepAliveTime = keepAliveTime; |
| } |
| |
| public int getQueueSize() { |
| return queueSize; |
| } |
| |
| public void setQueueSize(int queueSize) { |
| this.queueSize = queueSize; |
| } |
| } |