Class: Mongo::Monitoring::Event::Cmap::ConnectionCheckOutStarted

Inherits:
Base
  • Object
show all
Defined in:
lib/mongo/monitoring/event/cmap/connection_check_out_started.rb

Overview

Event published when a thread begins attempting to check a connection out of a pool.

Since:

  • 2.9.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address) ⇒ ConnectionCheckOutStarted

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the event.

Parameters:

Since:

  • 2.9.0



40
41
42
# File 'lib/mongo/monitoring/event/cmap/connection_check_out_started.rb', line 40

def initialize(address)
  @address = address
end

Instance Attribute Details

#addressMongo::Address (readonly)

Returns address The address of the server that the connection will connect to.

Returns:

  • (Mongo::Address)

    address The address of the server that the connection will connect to.

Since:

  • 2.9.0



32
33
34
# File 'lib/mongo/monitoring/event/cmap/connection_check_out_started.rb', line 32

def address
  @address
end

Instance Method Details

#summaryString

Note:

This method is experimental and subject to change.

Returns a concise yet useful summary of the event.

Returns:

  • (String)

    String summary of the event.

Since:

  • 2.9.0



52
53
54
# File 'lib/mongo/monitoring/event/cmap/connection_check_out_started.rb', line 52

def summary
  "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} address=#{address}>"
end