amq-client 0.7.0.alpha8 → 0.7.0.alpha9
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,13 +6,6 @@ require File.join(__dir, "example_helper")
|
|
6
6
|
|
7
7
|
|
8
8
|
EM.run do
|
9
|
-
reconnector = Proc.new { |client, settings|
|
10
|
-
puts "Asked to reconnect to #{settings[:host]}:#{settings[:port]}"
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
9
|
AMQ::Client::EventMachineClient.connect(:port => 5672,
|
17
10
|
:vhost => "/amq_client_testbed",
|
18
11
|
:user => "amq_client_gem",
|
@@ -22,7 +15,7 @@ EM.run do
|
|
22
15
|
|
23
16
|
client.on_tcp_connection_loss do |cl, settings|
|
24
17
|
puts "tcp_connection_loss handler kicks in"
|
25
|
-
cl.reconnect(
|
18
|
+
cl.reconnect(false, 2)
|
26
19
|
end
|
27
20
|
|
28
21
|
show_stopper = Proc.new {
|
@@ -38,10 +38,10 @@ module AMQ
|
|
38
38
|
# @param [Fixnum] period Period of time, in seconds, to wait before reconnection attempt.
|
39
39
|
# @param [Boolean] force If true, enforces immediate reconnection.
|
40
40
|
# @api public
|
41
|
-
def reconnect(
|
41
|
+
def reconnect(force = false, period = 5)
|
42
42
|
if @reconnecting and not force
|
43
43
|
EventMachine::Timer.new(period) {
|
44
|
-
reconnect(
|
44
|
+
reconnect(true, period)
|
45
45
|
}
|
46
46
|
return
|
47
47
|
end
|
data/lib/amq/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: amq-client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 7
|
9
|
-
- 0
|
10
|
-
- alpha8
|
11
|
-
version: 0.7.0.alpha8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.7.0.alpha9
|
5
|
+
prerelease: 6
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Jakub Stastny
|
15
9
|
- Michael S. Klishin
|
16
10
|
- Theo Hultberg
|
@@ -18,46 +12,41 @@ authors:
|
|
18
12
|
autorequire:
|
19
13
|
bindir: bin
|
20
14
|
cert_chain:
|
21
|
-
date: 2011-04-22 00:00:00 +04:00
|
15
|
+
date: 2011-04-22 00:00:00.000000000 +04:00
|
22
16
|
default_executable:
|
23
|
-
dependencies:
|
24
|
-
- !ruby/object:Gem::Dependency
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
25
19
|
name: eventmachine
|
26
|
-
|
27
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
requirement: &2152222340 !ruby/object:Gem::Requirement
|
28
21
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
segments:
|
34
|
-
- 0
|
35
|
-
version: "0"
|
22
|
+
requirements:
|
23
|
+
- - ! '>='
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
36
26
|
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: amq-protocol
|
40
27
|
prerelease: false
|
41
|
-
|
28
|
+
version_requirements: *2152222340
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: amq-protocol
|
31
|
+
requirement: &2152457200 !ruby/object:Gem::Requirement
|
42
32
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
version: "0"
|
33
|
+
requirements:
|
34
|
+
- - ! '>='
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
50
37
|
type: :runtime
|
51
|
-
|
52
|
-
|
53
|
-
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: *2152457200
|
40
|
+
description: amq-client supports multiple networking adapters (EventMachine, TCP sockets,
|
41
|
+
cool.io) and supposed to back more opinionated AMQP clients (such as amqp gem, bunny,
|
42
|
+
et cetera) or be used directly in cases when access to more advanced AMQP 0.9.1
|
43
|
+
features is more important that convenient APIs
|
44
|
+
email:
|
54
45
|
- stastny@101ideas.cz
|
55
46
|
- michael@novemberain.com
|
56
47
|
executables: []
|
57
|
-
|
58
48
|
extensions: []
|
59
|
-
|
60
|
-
extra_rdoc_files:
|
49
|
+
extra_rdoc_files:
|
61
50
|
- README.textile
|
62
51
|
- doc/_index.html
|
63
52
|
- doc/AMQ.html
|
@@ -68,7 +57,7 @@ extra_rdoc_files:
|
|
68
57
|
- doc/index.html
|
69
58
|
- doc/method_list.html
|
70
59
|
- doc/top-level-namespace.html
|
71
|
-
files:
|
60
|
+
files:
|
72
61
|
- .gitignore
|
73
62
|
- .gitmodules
|
74
63
|
- .rspec
|
@@ -212,38 +201,26 @@ files:
|
|
212
201
|
has_rdoc: true
|
213
202
|
homepage: http://github.com/ruby-amqp/amq-client
|
214
203
|
licenses: []
|
215
|
-
|
216
204
|
post_install_message:
|
217
205
|
rdoc_options: []
|
218
|
-
|
219
|
-
require_paths:
|
206
|
+
require_paths:
|
220
207
|
- lib
|
221
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
222
209
|
none: false
|
223
|
-
requirements:
|
224
|
-
- -
|
225
|
-
- !ruby/object:Gem::Version
|
226
|
-
|
227
|
-
|
228
|
-
- 0
|
229
|
-
version: "0"
|
230
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
215
|
none: false
|
232
|
-
requirements:
|
233
|
-
- -
|
234
|
-
- !ruby/object:Gem::Version
|
235
|
-
hash: 25
|
236
|
-
segments:
|
237
|
-
- 1
|
238
|
-
- 3
|
239
|
-
- 1
|
216
|
+
requirements:
|
217
|
+
- - ! '>'
|
218
|
+
- !ruby/object:Gem::Version
|
240
219
|
version: 1.3.1
|
241
220
|
requirements: []
|
242
|
-
|
243
221
|
rubyforge_project: amq-client
|
244
|
-
rubygems_version: 1.
|
222
|
+
rubygems_version: 1.6.2
|
245
223
|
signing_key:
|
246
224
|
specification_version: 3
|
247
225
|
summary: amq-client is a fully-featured, low-level AMQP 0.9.1 client
|
248
226
|
test_files: []
|
249
|
-
|