GITLAB

taov-erp / com-taover-heartbeat

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • com-taover-heartbeat
  • ..
  • bean
  • Instance.java
  • 7c217d06   first commit Browse Code »
    wangbin
    2020-11-01 10:22:50 +0800  
Instance.java 347 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package com.taover.heartbeat.bean;

public interface Instance {
	public static final int DEFAULT_MAX_WAIT_SEC = -1;
	public static final int DEFAULT_FIX_RATE_SEC = -1;
	
	/**
	 * 获取id字符串
	 * @return
	 */
	String getIdentity();
	
	/**
	 * 是否可用
	 * @return
	 */
	boolean needReform();
	
	/**
	 * 刷新状态
	 */
	void flush();
}