123456789_123456789_123456789_123456789_123456789_

Module: Mongo::Monitoring::Global

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Subscribable
Defined in: lib/mongo/monitoring.rb

Overview

Note:

Global subscriptions must be established prior to creating clients. When a client is constructed it copies subscribers from the Global module; subsequent subscriptions or unsubscriptions on the Global module have no effect on already created clients.

Allows subscribing to events for all ::Mongo clients.

Since:

  • 2.1.0

Class Method Summary

Subscribable - Extended

subscribe

Subscribe a listener to an event topic.

subscribers

Get all the subscribers.

subscribers?

Determine if there are any subscribers for a particular event.

unsubscribe

Unsubscribe a listener from an event topic.

subscribers_for