Sha256: 75cdb456d0890fd6591fd693036cf2c01ca2522aefdd332c1e1b4d6dc0dca0e8
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
# frozen_string_literal: true module Phobos module BatchHandler # @!visibility private def self.included(base) base.extend(ClassMethods) end # @param _payloads [Array] # @param _metadata [Hash<String, Object>] # @return [void] def consume_batch(_payloads, _metadata) raise NotImplementedError end # @param payloads [Array] # @param metadata [Hash<String, Object>] # @yield [Array, Hash<String, Object>] # @return [void] def around_consume_batch(payloads, metadata) yield payloads, metadata end module ClassMethods # @param kafka_client # @return [void] def start(kafka_client); end # @return [void] def stop; end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phobos-2.1.6 | lib/phobos/batch_handler.rb |
phobos-2.1.5 | lib/phobos/batch_handler.rb |