march_hare 2.1.0-java → 2.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 232bb0574ab204c555ec5796175f89c781a0bb42
4
- data.tar.gz: b7a3f0bba1844a25b1ddaa52f90b8a209f462d79
3
+ metadata.gz: 76a2144c66b2cea99bfa99d1cc6afac89687fc15
4
+ data.tar.gz: 18b91f31822ba762d3bb6d61d8ac0fedfd91f8c7
5
5
  SHA512:
6
- metadata.gz: 703d44fcd794f31ba173842984804ec45cd1ec1ef958e51608e3d7e5d7d8ca4d63dcb6de3ed6542d7d01d343543b5162fa10f084abac689a0e293cdf7500ed92
7
- data.tar.gz: b0bceb666187ffb2843a0386f3060ce0ac47d8d48ef07eddfbb0beaaffecc4f51b3daae8f401774be47735e248aec4f8d3aed4c05df272270fe67c45724a6451
6
+ metadata.gz: 9446f20aa6f7a98a3554feceb53e04d6e52eb138bf3e270fe432b5e1cbb9b23d4cf9f728948620800ec4d7a0061e0c5f6e54eb658156e1a6102e3769e1f8e13c
7
+ data.tar.gz: 1ab98f4acb979876a8033c956b17e4ecb1150df82c465fc30e26ce68c7e0b46aebd651d306cbad335128010b961e0a7cab3c0ebcafad716ac65ffd7da6685b04
@@ -79,7 +79,7 @@ module MarchHare
79
79
  # executors cannot be restarted after shutdown,
80
80
  # so we really need a factory here. MK.
81
81
  @executor_factory = opts[:executor_factory] || build_executor_factory_from(opts)
82
- @connection = self.new_connection
82
+ @connection = self.new_connection_impl
83
83
  @channels = JavaConcurrent::ConcurrentHashMap.new
84
84
 
85
85
  # should automatic recovery from network failures be used?
@@ -127,6 +127,7 @@ module MarchHare
127
127
  ch.close
128
128
  end
129
129
 
130
+ maybe_shut_down_executor
130
131
  @connection.close
131
132
  end
132
133
 
@@ -194,7 +195,7 @@ module MarchHare
194
195
 
195
196
  @connection = converting_rjc_exceptions_to_ruby do
196
197
  reconnecting_on_network_failures(ms) do
197
- self.new_connection
198
+ self.new_connection_impl
198
199
  end
199
200
  end
200
201
  @thread_pool = ThreadPools.dynamically_growing
@@ -377,16 +378,22 @@ module MarchHare
377
378
  end
378
379
 
379
380
  # @private
380
- def new_connection
381
+ def new_connection_impl
381
382
  converting_rjc_exceptions_to_ruby do
382
383
  if @executor_factory
383
- @cf.new_connection(@executor_factory.call)
384
+ @executor = @executor_factory.call
385
+ @cf.new_connection(@executor)
384
386
  else
385
387
  @cf.new_connection
386
388
  end
387
389
  end
388
390
  end
389
391
 
392
+ # @private
393
+ def maybe_shut_down_executor
394
+ @executor.shutdown if @executor
395
+ end
396
+
390
397
  # Makes it easier to construct executor factories.
391
398
  # @private
392
399
  def build_executor_factory_from(opts)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module MarchHare
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: march_hare
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Theo Hultberg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-07 00:00:00.000000000 Z
12
+ date: 2014-01-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: RabbitMQ client for JRuby built around the official RabbitMQ Java client
15
15
  email:
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project: march_hare
59
- rubygems_version: 2.1.9
59
+ rubygems_version: 2.2.1
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: RabbitMQ client for JRuby built around the official RabbitMQ Java client