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

org.beifengtz.jvmm.server.entity.conf.SentinelConf Maven / Gradle / Ivy

Go to download

Provides access to operating system, process, thread and other information during Java runtime.

There is a newer version: 2.4.3
Show newest version
package org.beifengtz.jvmm.server.entity.conf;

import java.util.ArrayList;
import java.util.List;

/**
 * 

* Description: TODO *

*

* Created in 11:32 2022/9/7 * * @author beifengtz */ public class SentinelConf { private List subscribers = new ArrayList<>(); private int interval; private int sendStaticInfoTimes; private CollectOptions options; public List getSubscribers() { return subscribers; } public SentinelConf setSubscribers(List subscribers) { this.subscribers = subscribers; return this; } public SentinelConf addSubscribers(SubscriberConf subscriber) { this.subscribers.add(subscriber); return this; } public int getInterval() { return interval; } public SentinelConf setInterval(int interval) { this.interval = interval; return this; } public int getSendStaticInfoTimes() { return sendStaticInfoTimes; } public SentinelConf setSendStaticInfoTimes(int sendStaticInfoTimes) { this.sendStaticInfoTimes = sendStaticInfoTimes; return this; } public CollectOptions getOptions() { return options; } public SentinelConf setOptions(CollectOptions options) { this.options = options; return this; } public boolean isValid() { return subscribers != null && subscribers.size() > 0; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy