01: package org.claros.commons.cache;
02:
03: /**
04: * @author Umut Gokbayrak
05: */
06: public class Cache {
07: private String key;
08: private Object value;
09: private long timeOut;
10: private boolean expired;
11:
12: public Cache() {
13: super ();
14: }
15:
16: public Cache(String key, String value, long timeOut, boolean expired) {
17: this .key = key;
18: this .value = value;
19: this .timeOut = timeOut;
20: this .expired = expired;
21: }
22:
23: public String getKey() {
24: return key;
25: }
26:
27: public long getTimeOut() {
28: return timeOut;
29: }
30:
31: public Object getValue() {
32: return value;
33: }
34:
35: public void setKey(String string) {
36: key = string;
37: }
38:
39: public void setTimeOut(long l) {
40: timeOut = l;
41: }
42:
43: public void setValue(Object object) {
44: value = object;
45: }
46:
47: public boolean isExpired() {
48: return expired;
49: }
50:
51: public void setExpired(boolean b) {
52: expired = b;
53: }
54: }
|