evt-consumer 0.7.0.2 → 0.8.0.0
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 +4 -4
- data/lib/consumer/controls/cycle.rb +2 -2
- data/lib/consumer/subscription.rb +3 -3
- data/lib/consumer/subscription/defaults.rb +1 -1
- 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: c4d4be2ff1d29dd830d043007c6112369f41dff3ab6966d22445224719c868be
|
4
|
+
data.tar.gz: 4a16a984d0e2192cda71a4839206761d99e3ebb7af1d61e0ca5e94ca1fea2181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01497154272cdfd2bca6818d3f028e627ba7f60fdb74193d25870bc58c8f7cd45bce82712b76a7cd090bcc2bdf6b363165f2b52fa140afa18920a4d5d10e20f
|
7
|
+
data.tar.gz: c7a00242127366d1bb2f8048d7fd81cbccc7b243815204ff6442c7aa2b30776cf05dcbb71775fc62330d445db18bb5e59e1664a7a847cf4f409061d36fce68ff
|
data/lib/consumer/consumer.rb
CHANGED
@@ -18,7 +18,7 @@ module Consumer
|
|
18
18
|
@position_update_interval ||= Defaults.position_update_interval
|
19
19
|
end
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :cycle_interval_milliseconds
|
22
22
|
attr_accessor :cycle_timeout_milliseconds
|
23
23
|
|
24
24
|
dependency :dispatch, Dispatch
|
@@ -105,7 +105,7 @@ module Consumer
|
|
105
105
|
stream_name,
|
106
106
|
get,
|
107
107
|
position: starting_position,
|
108
|
-
|
108
|
+
cycle_interval_milliseconds: cycle_interval_milliseconds,
|
109
109
|
cycle_timeout_milliseconds: cycle_timeout_milliseconds
|
110
110
|
)
|
111
111
|
|
@@ -118,11 +118,11 @@ module Consumer
|
|
118
118
|
end
|
119
119
|
|
120
120
|
module Build
|
121
|
-
def build(stream_name, batch_size: nil, position_store: nil, position_update_interval: nil, session: nil, cycle_timeout_milliseconds: nil,
|
121
|
+
def build(stream_name, batch_size: nil, position_store: nil, position_update_interval: nil, session: nil, cycle_timeout_milliseconds: nil, cycle_interval_milliseconds: nil, **arguments)
|
122
122
|
instance = new stream_name
|
123
123
|
|
124
124
|
instance.position_update_interval = position_update_interval
|
125
|
-
instance.
|
125
|
+
instance.cycle_interval_milliseconds = cycle_interval_milliseconds
|
126
126
|
instance.cycle_timeout_milliseconds = cycle_timeout_milliseconds
|
127
127
|
|
128
128
|
instance.configure(batch_size: batch_size, position_store: position_store, session: session, **arguments)
|
@@ -3,12 +3,12 @@ module Consumer
|
|
3
3
|
module Cycle
|
4
4
|
def self.example
|
5
5
|
::Cycle.build(
|
6
|
-
|
6
|
+
interval_milliseconds: interval_milliseconds,
|
7
7
|
timeout_milliseconds: timeout_milliseconds
|
8
8
|
)
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.
|
11
|
+
def self.interval_milliseconds
|
12
12
|
1
|
13
13
|
end
|
14
14
|
|
@@ -16,8 +16,8 @@ module Consumer
|
|
16
16
|
|
17
17
|
dependency :cycle, Cycle
|
18
18
|
|
19
|
-
def self.build(stream_name, get, position: nil,
|
20
|
-
|
19
|
+
def self.build(stream_name, get, position: nil, cycle_interval_milliseconds: nil, cycle_timeout_milliseconds: nil)
|
20
|
+
cycle_interval_milliseconds ||= Defaults.cycle_interval_milliseconds
|
21
21
|
cycle_timeout_milliseconds ||= Defaults.cycle_timeout_milliseconds
|
22
22
|
|
23
23
|
instance = new(stream_name, get)
|
@@ -26,7 +26,7 @@ module Consumer
|
|
26
26
|
|
27
27
|
Cycle.configure(
|
28
28
|
instance,
|
29
|
-
|
29
|
+
interval_milliseconds: cycle_interval_milliseconds,
|
30
30
|
timeout_milliseconds: cycle_timeout_milliseconds
|
31
31
|
)
|
32
32
|
|
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.
|
4
|
+
version: 0.8.0.0
|
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-07-
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ntl-actor
|