类:Mongo::Monitoring::Event::Cmap::ConnectionCheckOutStarted
- 继承:
-
Base
- 对象
- Event::Base
- Base
- Mongo::Monitoring::Event::Cmap::ConnectionCheckOutStarted
- 定义于:
- lib/ Mongo/ 监控/ 事件/cmap/connection_check_out_started.rb
Overview
当线程开始尝试从池中检出连接时发布的事件。
实例属性摘要折叠
-
#地址⇒ Mongo::Address
只读
地址 此连接将连接到的服务器的解决。
实例方法摘要折叠
-
#initialize (解决) ⇒ ConnectionCheckOutStarted
构造函数
private
创建事件。
-
#摘要⇒ string
返回简洁而有用的事件摘要。
构造函数详情
#initialize (解决) ⇒ ConnectionCheckOutStarted
此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。
创建事件。
40 41 42 |
# File 'lib/ Mongo/ 监控/ 事件/cmap/connection_check_out_started.rb', line 40 def 初始化(地址) @address = 地址 end |
实例属性详细信息
#地址⇒ Mongo::Address (readonly)
返回解决该连接将连接到的服务器的解决。
32 33 34 |
# File 'lib/ Mongo/ 监控/ 事件/cmap/connection_check_out_started.rb', line 32 def 地址 @address end |
实例方法详细信息
#摘要⇒ string
注意:
此方法是实验性的,可能会发生变化。
返回简洁而有用的事件摘要。
52 53 54 |
# File 'lib/ Mongo/ 监控/ 事件/cmap/connection_check_out_started.rb', line 52 def 总结 " #< #{ { self . class . name . sub ( / ^Mongo::Monitoring::Event::Cmap:: / , ' ' ) } 解决= #{ 解决 } > " end |