class Mongo::Monitoring::Event::Cmap::PoolCreated
Event
published when a connection pool is created.
@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 Options
specified for pool creation.
@since 2.9.0
pool[R]
@return [ Mongo::Server::ConnectionPool
] pool The pool that was just created.
@since 2.11.0 @api experimental
Public Class Methods
new(address, options, pool)
click to toggle source
Create the event.
@example Create the event.
PoolCreated.new(address, options, pool)
@since 2.9.0 @api private
# File lib/mongo/monitoring/event/cmap/pool_created.rb, line 50 def initialize(address, options, pool) @address = address @options = options.dup.freeze @pool = pool 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_created.rb, line 64 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} " + "address=#{address} options=#{options} pool=0x#{pool.object_id}>" end