using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IpcLibrary.Core {
    /// <summary>
    /// 心跳管理器接口
    /// </summary>
    public interface IHeartbeatManager {
        event EventHandler<string> ProcessTimeout;

        void StartMonitoring(string processId);
        void StopMonitoring(string processId);
        void UpdateHeartbeat(string processId);
        void SetHeartbeatInterval(TimeSpan interval);
        void SetTimeoutThreshold(TimeSpan timeout);
    }
}
