1 5 package com.opensymphony.oscache.base.events; 6 7 import com.opensymphony.oscache.base.CacheEntry; 8 9 17 public final class CacheMapAccessEvent extends CacheEvent { 18 21 private CacheEntry entry = null; 22 23 26 private CacheMapAccessEventType eventType = null; 27 28 34 public CacheMapAccessEvent(CacheMapAccessEventType eventType, CacheEntry entry) { 35 this(eventType, entry, null); 36 } 37 38 45 public CacheMapAccessEvent(CacheMapAccessEventType eventType, CacheEntry entry, String origin) { 46 super(origin); 47 this.eventType = eventType; 48 this.entry = entry; 49 } 50 51 54 public CacheEntry getCacheEntry() { 55 return entry; 56 } 57 58 61 public String getCacheEntryKey() { 62 return entry.getKey(); 63 } 64 65 68 public CacheMapAccessEventType getEventType() { 69 return eventType; 70 } 71 } 72 | Popular Tags |