Skip to content

Instantly share code, notes, and snippets.

@dfilppi
Created February 22, 2012 23:18
Show Gist options
  • Save dfilppi/1888297 to your computer and use it in GitHub Desktop.
Save dfilppi/1888297 to your computer and use it in GitHub Desktop.
WAN Timestamp object
@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