linux版本中间件

AgentDetail.h 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <atomic>
  3. #include <string>
  4. class AgentDetailStatis
  5. {
  6. public:
  7. AgentDetailStatis();
  8. ~AgentDetailStatis();
  9. AgentDetailStatis& operator = (const AgentDetailStatis&a);
  10. bool operator ==(const AgentDetailStatis&a) const;
  11. void setAgentOnlineCount(const std::int32_t& nCount) ; // 参数 1 或-1
  12. void setAgentFreeCount(const std::int32_t& nCount);
  13. void setAgentSpeakCount(const std::int32_t& nCount);
  14. void setAgentReposeCount(const std::int32_t& nCount);
  15. void setTrunkCallInCount(const std::int32_t& nCount);
  16. void resetAgent();
  17. void resetAgentOnlineCount();
  18. void resetAgentFreeCount() ;
  19. void resetAgentSpeakCount() ;
  20. void resetAgentReposeCount() ;
  21. void resetTrunkCallInCount() ;
  22. std::string to_string();
  23. private:
  24. std::atomic_int32_t m_AgentOnlineCount; // 坐席登录数量
  25. std::atomic_int32_t m_AgentFreeCount; // 空闲数量
  26. std::atomic_int32_t m_AgentSpeakCount; // 通话中数量
  27. std::atomic_int32_t m_AgentReposeCount; // 置忙数量
  28. std::atomic_int32_t m_TrunkCallInCount; // 中继呼入数量
  29. };