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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jruby-kafka/consumer.rb +3 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf43c54e8357eb8f3f0444bf298045b09bae0a10
4
- data.tar.gz: f724211974b5ddaddfc2ad72a6ca31b6dc41132a
3
+ metadata.gz: 757dfa77ab64d37ae0f8f29fa76fbc96d2f7c884
4
+ data.tar.gz: 6c5c2c0165dd8953a130209e56749de4abd3e628
5
5
  SHA512:
6
- metadata.gz: 2066d6cc34c56b16187e967e59e2bc99b65031e497aabcc9adeef07bf6ccb0f0ea8744ad1870d4f8269f795d27707c71a96c890b5470faa9c71c754880b3a400
7
- data.tar.gz: b74682f99df995e7355bdfe526eaa17a978e0e73f06097aa65d02e48e10c1e8ee6c42004b5a3db9b1810d62648de8dba79b547f03b1fed7ddc66955be14f34f3
6
+ metadata.gz: 8bf3deeaf7977da88e0bec066beb759be538ec37cf5f3e00bda5ddb4b642905e46f4e938b98d3ca041b96686f5b24f9ab457cbee6b029a64254cd8db37c1fad6
7
+ data.tar.gz: e93dac339e897f42cf82fa78042d134a57cd546174a5fd80856fadfa834673ab7690cadd1cf8d2bd88c781edeb16b4e0b8ac5813170fa7a7011eb17e747edab0
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Lawson