|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.base.events.CacheEvent
com.opensymphony.oscache.base.events.CachePatternEvent
public final class CachePatternEvent
A CachePatternEvent is fired when a pattern has been applied to a cache.
Field Summary | |
---|---|
private Cache |
map
The cache the pattern is being applied to. |
private String |
pattern
The pattern that is being applied. |
Fields inherited from class com.opensymphony.oscache.base.events.CacheEvent |
---|
origin |
Constructor Summary | |
---|---|
CachePatternEvent(Cache map,
String pattern)
Constructs a cache pattern event with no origin |
|
CachePatternEvent(Cache map,
String pattern,
String origin)
Constructs a cache pattern event |
Method Summary | |
---|---|
Cache |
getMap()
Retrieve the cache map that had the pattern applied. |
String |
getPattern()
Retrieve the pattern that was applied to the cache. |
String |
toString()
|
Methods inherited from class com.opensymphony.oscache.base.events.CacheEvent |
---|
getOrigin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Cache map
private String pattern
Constructor Detail |
---|
public CachePatternEvent(Cache map, String pattern)
map
- The cache map that the pattern was applied topattern
- The pattern that was appliedpublic CachePatternEvent(Cache map, String pattern, String origin)
map
- The cache map that the pattern was applied topattern
- The cache pattern that the event applies to.origin
- An optional tag that can be attached to the event to
specify the event's origin. This is useful to prevent events from being
fired recursively in some situations, such as when an event handler
causes another event to be fired, or for logging purposes.Method Detail |
---|
public Cache getMap()
public String getPattern()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |