class Mongo::Monitoring::Event::Cmap::ConnectionCheckOutFailed
Event
published when a connection is unable to be checked out of a pool.
@since 2.9.0
Constants
- CONNECTION_ERROR
@return [
Symbol
]CONNECTION_ERROR
Indicates that the connectioncheck out failed due to an error encountered while setting up a new connection.
@since 2.10.0
- POOL_CLOSED
@return [
Symbol
]POOL_CLOSED
Indicates that the connection checkout failed due to the pool already being closed.
@since 2.9.0
- TIMEOUT
@return [
Symbol
]TIMEOUT
Indicates that the connection check outfailed due to the timeout being reached before a connection became available.
@since 2.9.0
Attributes
address[R]
@return [ Mongo::Address
] address The address of the server the
connection would have connected to.
@since 2.9.0
reason[R]
Public Class Methods
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/connection_check_out_failed.rb, line 77 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address} " + "reason=#{reason}>" end