march_hare 2.0.0.rc5-java → 2.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/march_hare/channel.rb +16 -0
- data/lib/march_hare/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 232bb0574ab204c555ec5796175f89c781a0bb42
|
4
|
+
data.tar.gz: b7a3f0bba1844a25b1ddaa52f90b8a209f462d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 703d44fcd794f31ba173842984804ec45cd1ec1ef958e51608e3d7e5d7d8ca4d63dcb6de3ed6542d7d01d343543b5162fa10f084abac689a0e293cdf7500ed92
|
7
|
+
data.tar.gz: b0bceb666187ffb2843a0386f3060ce0ac47d8d48ef07eddfbb0beaaffecc4f51b3daae8f401774be47735e248aec4f8d3aed4c05df272270fe67c45724a6451
|
data/lib/march_hare/channel.rb
CHANGED
@@ -187,6 +187,8 @@ module MarchHare
|
|
187
187
|
self.recover_shutdown_hooks
|
188
188
|
|
189
189
|
self.recover_prefetch_setting
|
190
|
+
self.recover_confirm_mode
|
191
|
+
self.recover_tx_mode
|
190
192
|
self.recover_exchanges
|
191
193
|
# # this includes bindings recovery
|
192
194
|
self.recover_queues
|
@@ -213,6 +215,18 @@ module MarchHare
|
|
213
215
|
basic_qos(@prefetch_count) if @prefetch_count
|
214
216
|
end
|
215
217
|
|
218
|
+
# Recovers publisher confirms mode. Used by the Automatic Network Failure
|
219
|
+
# Recovery feature.
|
220
|
+
def recover_confirm_mode
|
221
|
+
confirm_select if @confirm_mode
|
222
|
+
end
|
223
|
+
|
224
|
+
# Recovers transaction mode. Used by the Automatic Network Failure
|
225
|
+
# Recovery feature.
|
226
|
+
def recover_tx_mode
|
227
|
+
tx_select if @tx_mode
|
228
|
+
end
|
229
|
+
|
216
230
|
# Recovers exchanges. Used by the Automatic Network Failure
|
217
231
|
# Recovery feature.
|
218
232
|
#
|
@@ -759,6 +773,7 @@ module MarchHare
|
|
759
773
|
# @see http://rubymarchhare.info/articles/extensions.html RabbitMQ Extensions guide
|
760
774
|
def confirm_select
|
761
775
|
converting_rjc_exceptions_to_ruby do
|
776
|
+
@confirm_mode = true
|
762
777
|
@delegate.confirm_select
|
763
778
|
end
|
764
779
|
end
|
@@ -788,6 +803,7 @@ module MarchHare
|
|
788
803
|
# Enables transactions on the channel
|
789
804
|
def tx_select
|
790
805
|
converting_rjc_exceptions_to_ruby do
|
806
|
+
@tx_mode = true
|
791
807
|
@delegate.tx_select
|
792
808
|
end
|
793
809
|
end
|
data/lib/march_hare/version.rb
CHANGED
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.
|
4
|
+
version: 2.1.0
|
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:
|
12
|
+
date: 2014-01-07 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:
|
@@ -51,9 +51,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - '
|
54
|
+
- - '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project: march_hare
|
59
59
|
rubygems_version: 2.1.9
|