Module: Mongo::Event

Defined in:
lib/mongo/event.rb,
lib/mongo/event/listeners.rb,
lib/mongo/event/publisher.rb,
lib/mongo/event/subscriber.rb,
lib/mongo/event/primary_elected.rb,
lib/mongo/event/member_discovered.rb,
lib/mongo/event/description_changed.rb,
lib/mongo/event/standalone_discovered.rb

Defined Under Namespace

Modules: Publisher, Subscriber Classes: DescriptionChanged, Listeners, MemberDiscovered, PrimaryElected, StandaloneDiscovered

Constant Summary

STANDALONE_DISCOVERED =

When a standalone is discovered.

Since:

  • 2.0.6

'standalone_discovered'.freeze
PRIMARY_ELECTED =

When a server is elected primary.

Since:

  • 2.0.0

'primary_elected'.freeze
MEMBER_DISCOVERED =

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

Since:

  • 2.4.0

'member_discovered'.freeze
DESCRIPTION_CHANGED =

When a server is to be removed from a cluster.

Since:

  • 2.0.6

'description_changed'.freeze