Class: Rdkafka::Callbacks::DescribeConfigsResult
- Inherits:
-
Object
- Object
- Rdkafka::Callbacks::DescribeConfigsResult
- Defined in:
- lib/rdkafka/callbacks.rb
Instance Attribute Summary collapse
-
#error_string ⇒ Object
readonly
Returns the value of attribute error_string.
-
#result_error ⇒ Object
readonly
Returns the value of attribute result_error.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#results_count ⇒ Object
readonly
Returns the value of attribute results_count.
Instance Method Summary collapse
-
#initialize(event_ptr) ⇒ DescribeConfigsResult
constructor
A new instance of DescribeConfigsResult.
Constructor Details
#initialize(event_ptr) ⇒ DescribeConfigsResult
Returns a new instance of DescribeConfigsResult.
118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/rdkafka/callbacks.rb', line 118 def initialize(event_ptr) @results=[] @result_error = Rdkafka::Bindings.rd_kafka_event_error(event_ptr) @error_string = Rdkafka::Bindings.rd_kafka_event_error_string(event_ptr) if @result_error == 0 configs_describe_result = Rdkafka::Bindings.rd_kafka_event_DescribeConfigs_result(event_ptr) # Get the number of matching acls pointer_to_size_t = FFI::MemoryPointer.new(:int32) @results = Rdkafka::Bindings.rd_kafka_DescribeConfigs_result_resources(configs_describe_result, pointer_to_size_t) @results_count = pointer_to_size_t.read_int end end |
Instance Attribute Details
#error_string ⇒ Object (readonly)
Returns the value of attribute error_string.
116 117 118 |
# File 'lib/rdkafka/callbacks.rb', line 116 def error_string @error_string end |
#result_error ⇒ Object (readonly)
Returns the value of attribute result_error.
116 117 118 |
# File 'lib/rdkafka/callbacks.rb', line 116 def result_error @result_error end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
116 117 118 |
# File 'lib/rdkafka/callbacks.rb', line 116 def results @results end |
#results_count ⇒ Object (readonly)
Returns the value of attribute results_count.
116 117 118 |
# File 'lib/rdkafka/callbacks.rb', line 116 def results_count @results_count end |