Sha256: 55601063c5ed07185a34404b706187b6bff22d724281b48c827457ddff498e7a

Contents?: true

Size: 388 Bytes

Versions: 15

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Phobos
  module Handler
    def self.included(base)
      base.extend(ClassMethods)
    end

    def consume(_payload, _metadata)
      raise NotImplementedError
    end

    def around_consume(payload, metadata)
      yield payload, metadata
    end

    module ClassMethods
      def start(kafka_client); end

      def stop; end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
phobos-2.1.4 lib/phobos/handler.rb
phobos-2.1.3 lib/phobos/handler.rb
phobos-2.1.2 lib/phobos/handler.rb
phobos-2.1.1 lib/phobos/handler.rb
phobos_temp_fork-0.0.4 lib/phobos/handler.rb
phobos_temp_fork-0.0.3 lib/phobos/handler.rb
phobos_temp_fork-0.0.2 lib/phobos/handler.rb
phobos_temp_fork-0.0.1 lib/phobos/handler.rb
phobos-2.1.0 lib/phobos/handler.rb
phobos-2.0.2 lib/phobos/handler.rb
phobos-2.0.1 lib/phobos/handler.rb
phobos-2.0.0.pre.beta1 lib/phobos/handler.rb
phobos-1.9.0 lib/phobos/handler.rb
phobos-1.9.0.pre.beta3 lib/phobos/handler.rb
phobos-1.9.0.pre.beta2 lib/phobos/handler.rb