evt-consumer 0.7.0.1 → 0.7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/consumer/consumer.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a2cd864e791d6afccb9fe4561862322802b1827ef48c39c791750e032dd5a2e
|
4
|
+
data.tar.gz: 3f295d68ea0c92cd25bdd577e78766c32c339426564c4567cf1a6232f7d33dcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 684467ec33e7b20d9586afc53b985803e157099f5894379697db51e5aa2ea8f8047847a4fb901b5d080aa36d8e30ae13569d33714a272cbeaaf565aa2be8b769
|
7
|
+
data.tar.gz: 5ea4792094e46353496441c1d36dd7c5a2ea8ccd466315afb23a71430fbe54207aa9b0c42f5b293a9de7ae484238c68237992c6463447d3fbb82cd830d3869d8
|
data/lib/consumer/consumer.rb
CHANGED
@@ -29,13 +29,13 @@ module Consumer
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def call(message_data)
|
32
|
-
logger.trace { "Dispatching
|
32
|
+
logger.trace { "Dispatching message (#{LogText.message_data(message_data)})" }
|
33
33
|
|
34
34
|
dispatch.(message_data)
|
35
35
|
|
36
36
|
update_position(message_data.global_position)
|
37
37
|
|
38
|
-
logger.info { "
|
38
|
+
logger.info { "Message dispatched (#{LogText.message_data(message_data)})" }
|
39
39
|
|
40
40
|
rescue => error
|
41
41
|
logger.error { "Error raised (Error Class: #{error.class}, Error Message: #{error.message}, #{LogText.message_data(message_data)})" }
|
@@ -88,7 +88,7 @@ module Consumer
|
|
88
88
|
|
89
89
|
module LogText
|
90
90
|
def self.message_data(message_data)
|
91
|
-
"
|
91
|
+
"Type: #{message_data.type}, Stream: #{message_data.stream_name}, Position: #{message_data.position}, GlobalPosition: #{message_data.global_position}"
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
@@ -120,10 +120,13 @@ module Consumer
|
|
120
120
|
module Build
|
121
121
|
def build(stream_name, batch_size: nil, position_store: nil, position_update_interval: nil, session: nil, cycle_timeout_milliseconds: nil, cycle_maximum_milliseconds: nil, **arguments)
|
122
122
|
instance = new stream_name
|
123
|
+
|
123
124
|
instance.position_update_interval = position_update_interval
|
124
125
|
instance.cycle_maximum_milliseconds = cycle_maximum_milliseconds
|
125
126
|
instance.cycle_timeout_milliseconds = cycle_timeout_milliseconds
|
127
|
+
|
126
128
|
instance.configure(batch_size: batch_size, position_store: position_store, session: session, **arguments)
|
129
|
+
|
127
130
|
instance
|
128
131
|
end
|
129
132
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.
|
4
|
+
version: 0.7.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ntl-actor
|