1 50 51 package org.openlaszlo.iv.flash.cache; 52 53 import org.openlaszlo.iv.flash.api.*; 54 import java.util.*; 55 56 public class CacheItem { 57 58 protected Object key; 59 protected Object object; 60 protected long cacheTime; 61 protected long expireAfter; 62 protected int size; 63 64 public CacheItem() { 65 } 66 67 public CacheItem( Object key, Object object, int size, long cacheTime, long expireAfter ) { 68 this.key = key; 69 this.object = object; 70 this.size = size; 71 this.cacheTime = cacheTime; 72 this.expireAfter = expireAfter; 73 } 74 75 public Object getObject() { 76 return object; 77 } 78 79 public Object getKey() { 80 return key; 81 } 82 83 public int getSize() { 84 return size; 85 } 86 87 public void setSize( int size ) { 88 this.size = size; 89 } 90 91 public long getCacheTime() { 92 return cacheTime; 93 } 94 95 public long getExpireAfter() { 96 return expireAfter; 97 } 98 99 public void setObject( Object o ) { 100 this.object = o; 101 } 102 103 public void setCacheTime( long time ) { 104 this.cacheTime = time; 105 } 106 } 107 | Popular Tags |