Skip to content

Commit

Permalink
Added a new abstract method to support new routing key template of Se…
Browse files Browse the repository at this point in the history
…pia (#41)

* Added a new abstract method to support new routing key template of Sepia

* Updated version to reflect sepia version functionality.
  • Loading branch information
jainadc9 authored Aug 21, 2023
1 parent 21d5cfb commit 90a532a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.2.0
- Added a new abstract method to support new routing key template of Sepia.

## 2.1.3
- Uplifted eiffel-remrem-parent version from 2.0.5 to 2.0.8 to resolve security vulnerability issue.

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>2.0.8</version>
</parent>
<artifactId>eiffel-remrem-protocol-interface</artifactId>
<version>2.1.3</version>
<version>2.2.0</version>
<repositories>
<repository>
<id>jitpack.io</id>
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/ericsson/eiffel/remrem/protocol/MsgService.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,22 @@ public interface MsgService {
* @return Routing key in String format.
*/
String generateRoutingKey(JsonObject eiffelMessage, String tag, String domain, String userDomainSuffix);

/**
* Returns Routing key from the messaging library based on the eiffel message eventType.<br>
* In general, Routing key of eiffel message is in the format<br>
<b>&lt;protocol&gt;.&lt;family&gt;.&lt;type&gt;.&lt;tag&gt;.&lt;domain&gt;</b><br>
* &lt;protocol&gt; is used if provided by the protocol library used.<br>
* &lt;family&gt; and &lt;type&gt; are provided by the protocol library.<br>
* &lt;type&gt; is configured. If not then, protocol library will provide.<br>
* &lt;tag&gt; which needs to be put in the Routing key<br>
* &lt;domain&gt; is configured and can be suffixed by a user domain.<br>
* @param eiffelMessage eiffel message in json format
* @param tag
* @param domain from which the message is sent
* @param userDomainSuffix
* @param type
* @return Routing key in String format.
*/
String generateRoutingKey(JsonObject eiffelMessage, String tag, String domain, String userDomainSuffix, String type);
}

0 comments on commit 90a532a

Please sign in to comment.