1 5 package com.opensymphony.oscache.base.events; 6 7 import com.opensymphony.oscache.base.Cache; 8 import com.opensymphony.oscache.base.CacheEntry; 9 10 18 public final class CacheEntryEvent extends CacheEvent { 19 22 private Cache map = null; 23 24 27 private CacheEntry entry = null; 28 29 35 public CacheEntryEvent(Cache map, CacheEntry entry) { 36 this(map, entry, null); 37 } 38 39 46 public CacheEntryEvent(Cache map, CacheEntry entry, String origin) { 47 super(origin); 48 this.map = map; 49 this.entry = entry; 50 } 51 52 55 public CacheEntry getEntry() { 56 return entry; 57 } 58 59 62 public String getKey() { 63 return entry.getKey(); 64 } 65 66 69 public Cache getMap() { 70 return map; 71 } 72 73 public String toString() { 74 return "key=" + entry.getKey(); 75 } 76 } 77 | Popular Tags |