jack_rabbit 0.2.1-java → 0.2.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ Thread.abort_on_exception = true
11
11
 
12
12
  subscriptions = [
13
13
  # exchange key queue
14
- [ 'jackrabbitdev', 'consumer.test', 'consumer.test', {} ]
14
+ [ 'jackrabbitdev', 'consumer.test', 'consumer.test', {prefetch: 10} ]
15
15
  ]
16
16
 
17
17
  consumer = JackRabbit::Consumer.new(Logger.new($stdout))
@@ -50,7 +50,7 @@ module JackRabbit
50
50
  def open_channel(connection, options)
51
51
  debug('opening channel...')
52
52
  channel = connection.create_channel
53
- channel.prefetch(options[:prefetch]) if options[:prefetch]
53
+ channel.prefetch=(options[:prefetch]) if options[:prefetch]
54
54
  channel.add_shutdown_listener { |_reason| connection.reconnect }
55
55
  @channel = channel
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module JackRabbit
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: jack_rabbit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: java
7
7
  authors:
8
8
  - Sebastian Ohm
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-13 00:00:00.000000000 Z
12
+ date: 2013-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hot_bunnies