jruby-kafka 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jruby-kafka/consumer.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 757dfa77ab64d37ae0f8f29fa76fbc96d2f7c884
|
4
|
+
data.tar.gz: 6c5c2c0165dd8953a130209e56749de4abd3e628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf3deeaf7977da88e0bec066beb759be538ec37cf5f3e00bda5ddb4b642905e46f4e938b98d3ca041b96686f5b24f9ab457cbee6b029a64254cd8db37c1fad6
|
7
|
+
data.tar.gz: e93dac339e897f42cf82fa78042d134a57cd546174a5fd80856fadfa834673ab7690cadd1cf8d2bd88c781edeb16b4e0b8ac5813170fa7a7011eb17e747edab0
|
data/lib/jruby-kafka/consumer.rb
CHANGED
@@ -4,6 +4,7 @@ require "jruby-kafka/namespace"
|
|
4
4
|
java_import 'kafka.consumer.ConsumerIterator'
|
5
5
|
java_import 'kafka.consumer.KafkaStream'
|
6
6
|
java_import 'kafka.common.ConsumerRebalanceFailedException'
|
7
|
+
java_import 'kafka.consumer.ConsumerTimeoutException'
|
7
8
|
|
8
9
|
class Kafka::Consumer
|
9
10
|
include Java::JavaLang::Runnable
|
@@ -27,6 +28,8 @@ class Kafka::Consumer
|
|
27
28
|
@m_queue << it.next().message()
|
28
29
|
rescue ConsumerRebalanceFailedException => e
|
29
30
|
raise KafkaError.new(e), "Got ConsumerRebalanceFailedException: #{e}"
|
31
|
+
rescue ConsumerTimeoutException => e
|
32
|
+
raise KafkaError.new(e), "Got ConsumerTimeoutException: #{e}"
|
30
33
|
end
|
31
34
|
end
|
32
35
|
end
|