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

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo/monitoring/event/topology_closed.rb

Overview

Event fired when the topology closes.

Since:

  • 2.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topology) ⇒ TopologyClosed

Create the event.

Examples:

Create the event.

TopologyClosed.new(topology)

Parameters:

  • topology (Integer)

    The topology.

Since:

  • 2.4.0



35
36
37
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 35

def initialize(topology)
  @topology = topology
end

Instance Attribute Details

#topologyTopology (readonly)

Returns topology The topology.

Returns:

  • (Topology)

    topology The topology.

Since:

  • 2.4.0



25
26
27
# File 'lib/mongo/monitoring/event/topology_closed.rb', line 25

def topology
  @topology
end