Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » events » [javadoc | source]
com.opensymphony.oscache.base.events
public final class: CacheMapAccessEvent [javadoc | source]
java.lang.Object
   com.opensymphony.oscache.base.events.CacheEvent
      com.opensymphony.oscache.base.events.CacheMapAccessEvent
Cache map access event. This is the object created when an event occurs on a cache map (cache Hit, cache miss). It contains the entry that was referenced by the event and the event type.
Fields inherited from com.opensymphony.oscache.base.events.CacheEvent:
origin
Constructor:
 public CacheMapAccessEvent(CacheMapAccessEventType eventType,
    CacheEntry entry) 
    Constructor.

    Parameters:
    eventType - Type of the event.
    entry - The cache entry that the event applies to.
 public CacheMapAccessEvent(CacheMapAccessEventType eventType,
    CacheEntry entry,
    String origin) 
    Constructor.

    Parameters:
    eventType - Type of the event.
    entry - The cache entry that the event applies to.
    origin - The origin of the event
Method from com.opensymphony.oscache.base.events.CacheMapAccessEvent Summary:
getCacheEntry,   getCacheEntryKey,   getEventType
Methods from com.opensymphony.oscache.base.events.CacheEvent:
getOrigin
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.oscache.base.events.CacheMapAccessEvent Detail:
 public CacheEntry getCacheEntry() 
    Retrieve the cache entry that the event applies to.
 public String getCacheEntryKey() 
    Retrieve the cache entry key that the event applies to.
 public CacheMapAccessEventType getEventType() 
    Retrieve the type of the event.