Module: Mongo::Event

Defined in:
lib/mongo/event.rb,
lib/mongo/event/base.rb,
lib/mongo/event/listeners.rb,
lib/mongo/event/publisher.rb,
lib/mongo/event/subscriber.rb

Defined Under Namespace

Modules: Publisher, Subscriber Classes: Base, Listeners

Constant Summary collapse

STANDALONE_DISCOVERED =
Deprecated.

Will be removed in 3.0

When a standalone is discovered.

Since:

  • 2.0.6

'standalone_discovered'.freeze
PRIMARY_ELECTED =
Deprecated.

Will be removed in 3.0

When a server is elected primary.

Since:

  • 2.0.0

'primary_elected'.freeze
MEMBER_DISCOVERED =
Deprecated.

Will be removed in 3.0

When a server is discovered to be a member of a topology.

Since:

  • 2.4.0

'member_discovered'.freeze
DESCRIPTION_CHANGED =
Deprecated.

Will be removed in 3.0

When a server is to be removed from a cluster.

Since:

  • 2.0.6

'description_changed'.freeze