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

Public Class Methods

new(address) click to toggle source

Create the event.

@example Create the event.

PoolCleared.new(address)

@since 2.9.0 @api private

# File lib/mongo/monitoring/event/cmap/pool_cleared.rb, line 38
def initialize(address)
  @address = address
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 50
def summary
  "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address}>"
end