Sha256: 08b05df91d6df8ddf6158cb23de305262bb96bfce1df7b45ef833df31c0e8d20

Contents?: true

Size: 768 Bytes

Versions: 39

Compression:

Stored size: 768 Bytes

Contents

module Rdkafka
  class Admin
    class CreatePartitionsHandle < AbstractHandle
      layout :pending, :bool,
             :response, :int,
             :error_string, :pointer,
             :result_name, :pointer

      # @return [String] the name of the operation
      def operation_name
        "create partitions"
      end

      # @return [Boolean] whether the create topic was successful
      def create_result
        CreatePartitionsReport.new(self[:error_string], self[:result_name])
      end

      def raise_error
        RdkafkaError.validate!(
          self[:response],
          broker_message: CreatePartitionsReport.new(
            self[:error_string],
            self[:result_name]
          ).error_string
        )
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
karafka-rdkafka-0.17.6 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.5 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.4 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.3 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.2 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.2.rc1 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.1 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.1.beta1 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.17.0 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.13.10 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.14.11 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.15.2 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.16.1 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.16.0 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.16.0.rc1 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.15.0 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.15.0.rc2 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.15.0.rc1 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.15.0.beta3 lib/rdkafka/admin/create_partitions_handle.rb
karafka-rdkafka-0.15.0.beta2 lib/rdkafka/admin/create_partitions_handle.rb