123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Monitoring::Event::TopologyClosed

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Mongo::Event::Base
Defined in: lib/mongo/monitoring/event/topology_closed.rb

Overview

::Mongo::Monitoring::Event fired when the topology closes.

Since:

  • 2.4.0

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::Mongo::Event::Base - Inherited

#summary

Returns a concise yet useful summary of the event.

#short_class_name

Constructor Details

.new(topology) ⇒ TopologyClosed

Create the event.

Examples:

Create the event.

TopologyClosed.new(topology)

Parameters:

  • topology (Integer)

    The topology.

Since:

  • 2.4.0

[ GitHub ]

  
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 38

def initialize(topology)
  @topology = topology
end

Instance Attribute Details

#topologyTopology (readonly)

Returns:

  • (Topology)

    topology The topology.

Since:

  • 2.4.0

[ GitHub ]

  
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 28

attr_reader :topology

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.7.0

[ GitHub ]

  
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 50

def summary
  "#<#{short_class_name}" +
  " topology=#{topology.summary}>"
end