Sha256: e50867c7bca0ca4973b6b46afcb12c2010dfc4d7b674d21a9ecd7155704dfed6

Contents?: true

Size: 716 Bytes

Versions: 18

Compression:

Stored size: 716 Bytes

Contents

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

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

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

      def raise_error
        raise RdkafkaError.new(
            self[:response],
            broker_message: CreateTopicReport.new(self[:error_string], self[:result_name]).error_string
        )
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
rdkafka-0.12.1 lib/rdkafka/admin/create_topic_handle.rb
karafka-rdkafka-0.12.4 lib/rdkafka/admin/create_topic_handle.rb
karafka-rdkafka-0.12.3 lib/rdkafka/admin/create_topic_handle.rb
karafka-rdkafka-0.12.2 lib/rdkafka/admin/create_topic_handle.rb
karafka-rdkafka-0.12.1 lib/rdkafka/admin/create_topic_handle.rb
karafka-rdkafka-0.12.1.beta1 lib/rdkafka/admin/create_topic_handle.rb
karafka-rdkafka-0.12.0 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.12.0 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.12.0.beta.4 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.12.0.beta.3 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.12.0.beta.2 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.12.0.beta.1 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.12.0.beta.0 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.11.1 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.11.0 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.10.0 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.9.0 lib/rdkafka/admin/create_topic_handle.rb
rdkafka-0.8.1 lib/rdkafka/admin/create_topic_handle.rb