Sha256: 734bbad5cde4490498451d34bd32e9529c58c1d6905e5887f180f9ec9a94f5e8

Contents?: true

Size: 947 Bytes

Versions: 5

Compression:

Stored size: 947 Bytes

Contents

# frozen_string_literal: true

# This Karafka component is a Pro component under a commercial license.
# This Karafka component is NOT licensed under LGPL.
#
# All of the commercial components are present in the lib/karafka/pro directory of this
# repository and their usage requires commercial license agreement.
#
# Karafka has also commercial-friendly license, commercial support and commercial components.
#
# By sending a pull request to the pro components, you are agreeing to transfer the copyright of
# your code to Maciej Mensfeld.

module Karafka
  module Web
    module Pro
      module Commanding
        # Namespace for commands the process can react to
        module Commands
          # Sends a signal to quiet the consumer
          class Quiet < Base
            # Performs the command
            def call
              ::Process.kill('TSTP', ::Process.pid)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
karafka-web-0.9.1 lib/karafka/web/pro/commanding/commands/quiet.rb
karafka-web-0.9.0 lib/karafka/web/pro/commanding/commands/quiet.rb
karafka-web-0.9.0.rc3 lib/karafka/web/pro/commanding/commands/quiet.rb
karafka-web-0.9.0.rc2 lib/karafka/web/pro/commanding/commands/quiet.rb
karafka-web-0.9.0.rc1 lib/karafka/web/pro/commanding/commands/quiet.rb