Sha256: 551e7617a4945fd968b4ceaf3343e2f2f311fc10048ac04e1e10a70b41f49830

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Phobos
  module Handler
    # @!visibility private
    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

2 entries across 2 versions & 1 rubygems

Version Path
phobos-2.1.6 lib/phobos/handler.rb
phobos-2.1.5 lib/phobos/handler.rb