Class: Mongo::Monitoring::Event::Cmap::PoolCleared
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base ,
::Mongo::Event::Base
|
|
Instance Chain:
self,
Base ,
::Mongo::Event::Base
|
|
Inherits: |
Mongo::Monitoring::Event::Cmap::Base
|
Defined in: | lib/mongo/monitoring/event/cmap/pool_cleared.rb |
Overview
::Mongo::Monitoring::Event
published when a connection pool is cleared.
Class Method Summary
-
.new(address, service_id: nil, interrupt_in_use_connections: nil) ⇒ PoolCleared
constructor
Internal use only
Internal use only
Create the event.
Instance Attribute Summary
- #address ⇒ Mongo::Address readonly
- #options ⇒ Hash readonly
- #service_id ⇒ nil | Object readonly
Instance Method Summary
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
::Mongo::Event::Base
- Inherited
#summary | Returns a concise yet useful summary of the event. |
#short_class_name |
Instance Attribute Details
#address ⇒ Mongo::Address (readonly)
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 32
attr_reader :address
#options ⇒ Hash
(readonly)
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 38
attr_reader :
#service_id ⇒ nil
| Object
(readonly)
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 35
attr_reader :service_id
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.
# File 'lib/mongo/monitoring/event/cmap/pool_cleared.rb', line 63
def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address}>" end