usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [15/52] [abbrv] git commit: add uuid long method
Date Wed, 03 Sep 2014 22:11:10 GMT
add uuid long method


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/efdc08d7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/efdc08d7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/efdc08d7

Branch: refs/heads/two-dot-o-push-notifications
Commit: efdc08d7c177fcf4613a9135ee7d35ed8a2dfcfc
Parents: 78ce124
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Thu Aug 28 10:23:14 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Thu Aug 28 10:23:14 2014 -0600

----------------------------------------------------------------------
 .../core/src/main/java/org/apache/usergrid/mq/Message.java  | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/efdc08d7/stack/core/src/main/java/org/apache/usergrid/mq/Message.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/mq/Message.java b/stack/core/src/main/java/org/apache/usergrid/mq/Message.java
index b48fe74..73c8f7d 100644
--- a/stack/core/src/main/java/org/apache/usergrid/mq/Message.java
+++ b/stack/core/src/main/java/org/apache/usergrid/mq/Message.java
@@ -485,13 +485,8 @@ public class Message {
 
 
     public void setUuid( UUID uuid ) {
-        //if ( isTimeBased( uuid ) ) {
-            properties.put( MESSAGE_ID, uuid );
-            properties.put( MESSAGE_TIMESTAMP, MurmurHash.hash64(uuid));
-//        }
-//        else {
-//            throw new IllegalArgumentException( "Not a time-based UUID" );
-//        }
+        properties.put(MESSAGE_ID, uuid);
+        properties.put(MESSAGE_TIMESTAMP, UUIDUtils.getUUIDLong(uuid));
     }
 
 


Mime
View raw message