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
options[R]
@return [ Hash ] options The options
service_id[R]
@return [ nil | Object ] The service id, if any.
Public Class Methods
new(address, service_id: nil, interrupt_in_use_connections: nil)
click to toggle source
Create the event.
@param [ Address
] address @param [ Object ] service_id
The service id, if any. @param [ true | false | nil ] interrupt_in_use_connections The
interrupt_in_use_connections flag, if given.
@api private
# File lib/mongo/monitoring/event/cmap/pool_cleared.rb, line 48 def initialize(address, service_id: nil, interrupt_in_use_connections: nil) @address = address @service_id = service_id @options = {} @options[:interrupt_in_use_connections] = interrupt_in_use_connections 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 63 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address}>" end