Module: Mongo::Monitoring::Global

Extended by:
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

Method Summary

Methods included from Subscribable

subscribe, subscribers, subscribers?, unsubscribe