eventhub-processor 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eventhub/constant.rb +2 -0
- data/lib/eventhub/message.rb +8 -6
- data/lib/eventhub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44d5ed69e279c131ded4155a7c9a0826762da15c
|
4
|
+
data.tar.gz: 7556d0b5b5eff063fb0de917bd94117528ab24e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d37aa987c7421fb2b80a6f8fc91b2027f0b505021d7a9156597e9a2431ef4f7878e5219d964689b33b5e54038fbbabb4de5d39a5c93ebddf28ab0abd07019a43
|
7
|
+
data.tar.gz: b9b818b214bad270aebec1922ac719e1aa9241ba542f2978dd438c6cfc9fd8b75ee13ca74b9045eabb9ea95612f85fec24c9304d682a86db06ddaf6588786d1f
|
data/lib/eventhub/constant.rb
CHANGED
@@ -13,4 +13,6 @@ module EventHub
|
|
13
13
|
STATUS_DEADLETTER = 500 # To be set by dispatcher, processor or channel adapters to indicate
|
14
14
|
# that message needs to be dead-lettered. Rejected messages could miss the
|
15
15
|
# status.code = STATUS_DEADLETTER due to the RabbitMQ deadletter exchange mechanism.
|
16
|
+
STATUS_SCHEDULE = 600 # To be set to trigger scheduler based on schedule block
|
17
|
+
STATUS_SCHEDULE_PENDING = 601 # Set and used by the dispatcher only
|
16
18
|
end
|
data/lib/eventhub/message.rb
CHANGED
@@ -124,12 +124,14 @@ module EventHub
|
|
124
124
|
|
125
125
|
def self.translate_status_code(code)
|
126
126
|
case code
|
127
|
-
when EventHub::STATUS_INITIAL
|
128
|
-
when EventHub::STATUS_SUCCESS
|
129
|
-
when EventHub::STATUS_RETRY
|
130
|
-
when EventHub::STATUS_RETRY_PENDING
|
131
|
-
when EventHub::STATUS_INVALID
|
132
|
-
when EventHub::STATUS_DEADLETTER
|
127
|
+
when EventHub::STATUS_INITIAL then return 'STATUS_INITIAL'
|
128
|
+
when EventHub::STATUS_SUCCESS then return 'STATUS_SUCCESS'
|
129
|
+
when EventHub::STATUS_RETRY then return 'STATUS_RETRY'
|
130
|
+
when EventHub::STATUS_RETRY_PENDING then return 'STATUS_RETRY_PENDING'
|
131
|
+
when EventHub::STATUS_INVALID then return 'STATUS_INVALID'
|
132
|
+
when EventHub::STATUS_DEADLETTER then return 'STATUS_DEADLETTER'
|
133
|
+
when EventHub::STATUS_SCHEDULE then return 'STATUS_SCHEDULE'
|
134
|
+
when EventHub::STATUS_SCHEDULE_PENDING then return 'STATUS_SCHEDULE_PENDING'
|
133
135
|
end
|
134
136
|
end
|
135
137
|
|
data/lib/eventhub/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventhub-processor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Steiner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|