01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.terracotta.session.util;
05:
06: import java.util.Date;
07:
08: public class Timestamp {
09:
10: private long millis = 0;
11:
12: public Timestamp(long millis) {
13: this .millis = millis;
14: }
15:
16: public synchronized long getMillis() {
17: return millis;
18: }
19:
20: public synchronized void setMillis(long millis) {
21: this .millis = millis;
22: }
23:
24: public String toString() {
25: return new Date(getMillis()).toString();
26: }
27: }
|