Skip to content

Commit 90a532a

Browse files
authored
Added a new abstract method to support new routing key template of Sepia (#41)
* Added a new abstract method to support new routing key template of Sepia * Updated version to reflect sepia version functionality.
1 parent 21d5cfb commit 90a532a

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.2.0
2+
- Added a new abstract method to support new routing key template of Sepia.
3+
14
## 2.1.3
25
- Uplifted eiffel-remrem-parent version from 2.0.5 to 2.0.8 to resolve security vulnerability issue.
36

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<version>2.0.8</version>
1010
</parent>
1111
<artifactId>eiffel-remrem-protocol-interface</artifactId>
12-
<version>2.1.3</version>
12+
<version>2.2.0</version>
1313
<repositories>
1414
<repository>
1515
<id>jitpack.io</id>

src/main/java/com/ericsson/eiffel/remrem/protocol/MsgService.java

+18
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,22 @@ public interface MsgService {
120120
* @return Routing key in String format.
121121
*/
122122
String generateRoutingKey(JsonObject eiffelMessage, String tag, String domain, String userDomainSuffix);
123+
124+
/**
125+
* Returns Routing key from the messaging library based on the eiffel message eventType.<br>
126+
* In general, Routing key of eiffel message is in the format<br>
127+
<b>&lt;protocol&gt;.&lt;family&gt;.&lt;type&gt;.&lt;tag&gt;.&lt;domain&gt;</b><br>
128+
* &lt;protocol&gt; is used if provided by the protocol library used.<br>
129+
* &lt;family&gt; and &lt;type&gt; are provided by the protocol library.<br>
130+
* &lt;type&gt; is configured. If not then, protocol library will provide.<br>
131+
* &lt;tag&gt; which needs to be put in the Routing key<br>
132+
* &lt;domain&gt; is configured and can be suffixed by a user domain.<br>
133+
* @param eiffelMessage eiffel message in json format
134+
* @param tag
135+
* @param domain from which the message is sent
136+
* @param userDomainSuffix
137+
* @param type
138+
* @return Routing key in String format.
139+
*/
140+
String generateRoutingKey(JsonObject eiffelMessage, String tag, String domain, String userDomainSuffix, String type);
123141
}

0 commit comments

Comments
 (0)