Class: WorkerKiller::Middleware::RequestsLimiter

Inherits:
WorkerKiller::Middleware show all
Defined in:
lib/worker_killer/middleware.rb

Instance Attribute Summary

Attributes inherited from WorkerKiller::Middleware

#inhibitions, #interval, #killer, #limiter, #reaction

Instance Method Summary collapse

Methods inherited from WorkerKiller::Middleware

#call, #call_with_inhibition, #default_kill, #inihibit, #logger, #react, #release, #wrap_rack_response_body

Constructor Details

#initialize(app, **opts) ⇒ RequestsLimiter

Returns a new instance of RequestsLimiter.



115
116
117
# File 'lib/worker_killer/middleware.rb', line 115

def initialize(app, **opts)
  super(app, klass: ::WorkerKiller::CountLimiter, **opts)
end