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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c842c3825c85ddd417ae7b44992f0dd116e04952
|
4
|
+
data.tar.gz: 52903e7be84dc6295e68446fdb80e1d6cf898421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =>
|
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,
|
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.
|
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-
|
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
|