IPerformanceMonitor.cs 719 B

123456789101112131415161718192021222324252627
  1. using SuperSocket.SocketBase;
  2. using System;
  3. namespace SuperSocket.SocketEngine
  4. {
  5. /// <summary>
  6. /// Interface of IPerformanceMonitor
  7. /// </summary>
  8. public interface IPerformanceMonitor : IDisposable
  9. {
  10. /// <summary>
  11. /// Start PerformanceMonitor.
  12. /// </summary>
  13. void Start();
  14. /// <summary>
  15. /// Stop PerformanceMonitor.
  16. /// </summary>
  17. void Stop();
  18. /// <summary>
  19. /// Invokes when status update.
  20. /// </summary>
  21. event Action<NodeStatus> OnStatusUpdate;
  22. /// <summary>
  23. /// Get or Set status update time in seconds.
  24. /// </summary>
  25. int StatusUpdateInterval { get; set; }
  26. }
  27. }