Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

[GEARPUMP-268] Accept java.time.Instant in Message #142

Closed
wants to merge 3 commits into from

Conversation

manuzhang
Copy link
Contributor

@manuzhang manuzhang commented Feb 9, 2017

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the commit message is formatted like:
    [GEARPUMP-<Jira issue #>] Meaningful description of pull request
  • Make sure tests pass via sbt clean test.
  • Make sure old documentation affected by the pull request has been updated and new documentation added for new functionality.

@manuzhang
Copy link
Contributor Author

R: @huafengw

@@ -37,7 +37,7 @@ class CountProcessor(taskContext: TaskContext, conf: UserConfig)
}

override def processMessage(state: PersistentState[Int], message: Message): Unit = {
state.update(message.timestamp, 1)
state.update(message.timestamp.toEpochMilli, 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

message.timestamp.toEpochMilli == message.timeInMillis

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but I propose to hide timeInMillis from users in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only used internally in Subscription and can be replaced in the future as well.

@codecov-io
Copy link

Codecov Report

Merging #142 into master will decrease coverage by -0.03%.

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
- Coverage   69.69%   69.66%   -0.03%     
==========================================
  Files         191      191              
  Lines        6061     6069       +8     
  Branches      513      516       +3     
==========================================
+ Hits         4224     4228       +4     
- Misses       1837     1841       +4

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c27cd80...3221abe. Read the comment docs.

@manuzhang
Copy link
Contributor Author

travis has passed but not synced here somehow. Please check https://travis-ci.org/apache/incubator-gearpump/builds/199856894. Also, code coverage only runs when travis has passed.

@huafengw
Copy link
Contributor

huafengw commented Feb 9, 2017

+1

@asfgit asfgit closed this in ce3b822 Feb 9, 2017
@manuzhang manuzhang deleted the instant branch March 27, 2017 01:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants