lib/mongo/monitoring/event/cmap/pool_cleared.rb in mongo-2.15.1 vs lib/mongo/monitoring/event/cmap/pool_cleared.rb in mongo-2.16.0.alpha1

- old
+ new

@@ -29,18 +29,21 @@ # connect to. # # @since 2.9.0 attr_reader :address + # @return [ nil | Object ] The service id, if any. + attr_reader :service_id + # Create the event. # - # @example Create the event. - # PoolCleared.new(address) + # @param [ Address ] address + # @param [ Object ] service_id The service id, if any. # - # @since 2.9.0 # @api private - def initialize(address) + def initialize(address, service_id: nil) @address = address + @service_id = service_id end # Returns a concise yet useful summary of the event. # # @return [ String ] String summary of the event.