active_publisher 1.0.2-java → 1.0.3-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: 29daf51dd83541cf6f5910ee716a393723a74a9b
4
- data.tar.gz: e7c1ce016280bec2013be802b15fa1288fe301b8
3
+ metadata.gz: c842c3825c85ddd417ae7b44992f0dd116e04952
4
+ data.tar.gz: 52903e7be84dc6295e68446fdb80e1d6cf898421
5
5
  SHA512:
6
- metadata.gz: b3c29103626d31e301a476c553142aa3833cb3a84883c722b11b087986f5b5e07a0884eb36316d0d603c0d5586e93e7ce950812697eaef1cfaab7cc24e88abdc
7
- data.tar.gz: 1aa0d3cfacfaba517fb8e296adf2d1f5dcb87f0b0eafa6d8a123a8529170d413c2ca7b08b1ed1ec056a503edda65739c9b9ae16622f223939337223eadd932f5
6
+ metadata.gz: 7a5e4ec82f01a97f3c904ebaf1f3501a45857a072eb245f24a1a717479483cd4a452d8338beddb9d05bf786164d076a185270daa47a803c2ee36e4efe4598cd6
7
+ data.tar.gz: 64521da6574d628d62a26fa98bcbfedf87ac54ddeca47fd9a791b3eaed545fcc867d4861ff6f0f509cfcc9e6f8dd327ac20854bc7321bfbced039ce7dbbbebb8
@@ -6,6 +6,7 @@ module ActivePublisher
6
6
  :heartbeat,
7
7
  :host,
8
8
  :hosts,
9
+ :network_recovery_interval,
9
10
  :password,
10
11
  :port,
11
12
  :publisher_confirms,
@@ -21,6 +22,7 @@ module ActivePublisher
21
22
  :virtual_host
22
23
 
23
24
  CONFIGURATION_MUTEX = ::Mutex.new
25
+ NETWORK_RECOVERY_INTERVAL = 1.freeze
24
26
 
25
27
  DEFAULTS = {
26
28
  :error_handler => lambda { |error, env_hash|
@@ -32,6 +34,7 @@ module ActivePublisher
32
34
  :host => "localhost",
33
35
  :hosts => [],
34
36
  :password => "guest",
37
+ :network_recovery_interval => NETWORK_RECOVERY_INTERVAL,
35
38
  :port => 5672,
36
39
  :publisher_confirms => false,
37
40
  :publisher_confirms_timeout => 5_000, #specified as a number of milliseconds
@@ -3,7 +3,6 @@ require 'thread'
3
3
  module ActivePublisher
4
4
  module Connection
5
5
  CONNECTION_MUTEX = ::Mutex.new
6
- NETWORK_RECOVERY_INTERVAL = 1.freeze
7
6
 
8
7
  def self.connected?
9
8
  connection.try(:connected?)
@@ -46,7 +45,7 @@ module ActivePublisher
46
45
  :continuation_timeout => ::ActivePublisher.configuration.timeout * 1_000.0, #convert sec to ms
47
46
  :heartbeat => ::ActivePublisher.configuration.heartbeat,
48
47
  :hosts => ::ActivePublisher.configuration.hosts,
49
- :network_recovery_interval => NETWORK_RECOVERY_INTERVAL,
48
+ :network_recovery_interval => ::ActivePublisher.configuration.network_recovery_interval,
50
49
  :pass => ::ActivePublisher.configuration.password,
51
50
  :port => ::ActivePublisher.configuration.port,
52
51
  :recover_from_connection_close => true,
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: java
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2017-10-16 00:00:00.000000000 Z
15
+ date: 2017-12-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement