carnivore-rabbitmq 0.2.8-java → 0.2.10-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f5fc692f14f0a0c7cfdbc5b2e52fb0d10bfa3b6
4
- data.tar.gz: 6c8f159c84d001fd8f98e61d36838bdcab77f4f5
3
+ metadata.gz: 175dc4f71a1b3c628ee619dab99cde3d628e99c0
4
+ data.tar.gz: fcda1eeba9f4c4974d152427bfe7d37fab43acd8
5
5
  SHA512:
6
- metadata.gz: 8ff6f5f569b0701ec4456781f50eb1917569a8a1e069dd7e5ad6b7f97e5290adbf64a966a6a92473efefbb037b6268dd4dd329b49acfe7fb5ae49f7388257cc7
7
- data.tar.gz: c1133b8bf9f5e9097326830cf674d602e1d2278b595fdfa9bf42d00db4044064450d872ce1084cd4fd35ee6cdcca08ce866133ffe671e1071fbd8c8d669d761b
6
+ metadata.gz: 9f74291c4110e8b2fb7426873dcee4772258f84550307410781759afc88231edfbfd699912eff1e9b4fdfc3159f5f59a5e340a72d540203b17a4622762eebc11
7
+ data.tar.gz: 2cb9d6743a9db23288150e07f8b5637558e3399f30ded5d5efeb504eee41e6282cc89feb978403bb94013dd32c31dd508448ba1ec1943f08f990c9fc8f0a8f16
@@ -1,3 +1,6 @@
1
+ # v0.2.10
2
+ * On demand message fetching to prevent local queue blowout
3
+
1
4
  # v0.2.8
2
5
  * Ensure custom connection is always killed
3
6
  * Close remote connection on termination
@@ -51,7 +51,9 @@ module Carnivore
51
51
 
52
52
  # Close down the connection if available
53
53
  def terminate
54
- connection.close
54
+ if(connection)
55
+ connection.close
56
+ end
55
57
  end
56
58
 
57
59
  # Establish connection to remote server and setup
@@ -120,6 +122,7 @@ module Carnivore
120
122
  )
121
123
  debug "<#{source}> New message: #{new_message}"
122
124
  source.signal(:new_message, new_message)
125
+ wait(:ready)
123
126
  end
124
127
  true
125
128
  end
@@ -41,8 +41,8 @@ module Carnivore
41
41
  #
42
42
  # @return [TrueClass]
43
43
  def terminate
44
+ connection.terminate if connection
44
45
  super
45
- connection.terminate
46
46
  end
47
47
 
48
48
  # Receive payload from connection
@@ -53,6 +53,7 @@ module Carnivore
53
53
  @collect_messages = true
54
54
  connection.async.receive_messages
55
55
  end
56
+ connection.signal(:ready)
56
57
  wait(:new_message)
57
58
  end
58
59
 
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module Rabbitmq
3
3
  # Current version of library
4
- VERSION = Gem::Version.new('0.2.8')
4
+ VERSION = Gem::Version.new('0.2.10')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore-rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.10
5
5
  platform: java
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-24 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: march_hare