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

com.yomahub.liteflow.solon.config.LiteflowMonitorProperty Maven / Gradle / Ivy

package com.yomahub.liteflow.solon.config;

import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

/**
 * 监控器的基础参数类
 *
 * @author Bryan.Zhang
 * @author noear
 * @since 2.9
 */
@Inject("${liteflow.monitor}")
@Configuration
public class LiteflowMonitorProperty {

	// 是否打印监控日志
	private boolean enableLog;

	// 监控队列存储的最大数量
	private int queueLimit;

	// 延迟多少毫秒打印
	private long delay;

	// 每隔多少毫秒打印
	private long period;

	public boolean isEnableLog() {
		return enableLog;
	}

	public void setEnableLog(boolean enableLog) {
		this.enableLog = enableLog;
	}

	public int getQueueLimit() {
		return queueLimit;
	}

	public void setQueueLimit(int queueLimit) {
		this.queueLimit = queueLimit;
	}

	public long getDelay() {
		return delay;
	}

	public void setDelay(long delay) {
		this.delay = delay;
	}

	public long getPeriod() {
		return period;
	}

	public void setPeriod(long period) {
		this.period = period;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy