class Mongo::Monitoring::Event::Cmap::PoolCleared
Event
published when a connection pool is cleared.
@since 2.9.0
Attributes
address[R]
@return [ Mongo::Address
] address The address of the server the pool's connections will
connect to.
@since 2.9.0
service_id[R]
@return [ nil | Object ] The service id, if any.
Public Class Methods
new(address, service_id: nil)
click to toggle source
Create the event.
@param [ Address
] address @param [ Object ] service_id
The service id, if any.
@api private
# File lib/mongo/monitoring/event/cmap/pool_cleared.rb, line 43 def initialize(address, service_id: nil) @address = address @service_id = service_id end
Public Instance Methods
summary()
click to toggle source
Returns a concise yet useful summary of the event.
@return [ String ] String summary of the event.
@note This method is experimental and subject to change.
@since 2.9.0 @api experimental
# File lib/mongo/monitoring/event/cmap/pool_cleared.rb, line 56 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address}>" end