Created
February 22, 2012 23:18
-
-
Save dfilppi/1888297 to your computer and use it in GitHub Desktop.
WAN Timestamp object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpaceClass | |
public class WanTimeStamp implements Serializable{ | |
private Long time; | |
private String location; | |
public TimeStamp(){ | |
} | |
public TimeStamp(String loc){ | |
this.location=loc; | |
} | |
// Always want these in same partition | |
@SpaceRouting | |
public int getRoutingId(){ | |
return 1; | |
} | |
public void setRoutingId(int id){} | |
public Long getTime() { | |
return time; | |
} | |
public void setTime(Long time) { | |
this.time = time; | |
} | |
public String getLocation() { | |
return location; | |
} | |
public void setLocation(String location) { | |
this.location = location; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment