| java.lang.Object com.opensymphony.oscache.base.events.CacheEvent com.opensymphony.oscache.base.events.CachePatternEvent
CachePatternEvent | final public class CachePatternEvent extends CacheEvent (Code) | | A CachePatternEvent is fired when a pattern has been applied to a cache.
version: $Revision: 254 $ author: Chris Miller |
Constructor Summary | |
public | CachePatternEvent(Cache map, String pattern) | public | CachePatternEvent(Cache map, String pattern, String origin) Constructs a cache pattern event
Parameters: map - The cache map that the pattern was applied to Parameters: pattern - The cache pattern that the event applies to. Parameters: origin - An optional tag that can be attached to the event tospecify the event's origin. |
CachePatternEvent | public CachePatternEvent(Cache map, String pattern)(Code) | | Constructs a cache pattern event with no origin
Parameters: map - The cache map that the pattern was applied to Parameters: pattern - The pattern that was applied |
CachePatternEvent | public CachePatternEvent(Cache map, String pattern, String origin)(Code) | | Constructs a cache pattern event
Parameters: map - The cache map that the pattern was applied to Parameters: pattern - The cache pattern that the event applies to. Parameters: origin - An optional tag that can be attached to the event tospecify the event's origin. This is useful to prevent events from beingfired recursively in some situations, such as when an event handlercauses another event to be fired, or for logging purposes. |
getMap | public Cache getMap()(Code) | | Retrieve the cache map that had the pattern applied.
|
getPattern | public String getPattern()(Code) | | Retrieve the pattern that was applied to the cache.
|
Methods inherited from com.opensymphony.oscache.base.events.CacheEvent | public String getOrigin()(Code)(Java Doc)
|
|
|