You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gearpump.apache.org by "Manu Zhang (JIRA)" <ji...@apache.org> on 2017/05/18 06:09:04 UTC

[jira] [Resolved] (GEARPUMP-312) Allow Message to be extensible

     [ https://issues.apache.org/jira/browse/GEARPUMP-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manu Zhang resolved GEARPUMP-312.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.8.4

Issue resolved by pull request 183
[https://github.com/apache/incubator-gearpump/pull/183]

> Allow Message to be extensible
> ------------------------------
>
>                 Key: GEARPUMP-312
>                 URL: https://issues.apache.org/jira/browse/GEARPUMP-312
>             Project: Apache Gearpump
>          Issue Type: Improvement
>    Affects Versions: 0.8.3
>            Reporter: Manu Zhang
>            Assignee: Manu Zhang
>             Fix For: 0.8.4
>
>
> The current {{case class Message(msg: Any, timeInMillis: TimeStamp)}} is not extensible with an additional timestamp field while users' message may already carry that information.  I don't think we care about what is stored in the message but what we can get from it. 
> I propose to add a new interface {{Message}} with {{value}} and {{timestamp}} fields/methods and rename the current {{Message}} to {{DefaultMessage}} as a default implementation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)