Package org.javalite.activejdbc.cache
Class CacheEvent
- java.lang.Object
-
- org.javalite.activejdbc.cache.CacheEvent
-
public class CacheEvent extends Object
Event object. Sent toCacheManagerto let it know of cache purge events.- Author:
- Igor Polevoy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCacheEvent.CacheEventType
-
Field Summary
Fields Modifier and Type Field Description static CacheEventALL
-
Constructor Summary
Constructors Constructor Description CacheEvent(String source)Creates a new event type ofCacheEvent.CacheEventType.ALLCacheEvent(String group, String source)Creates a new event type ofCacheEvent.CacheEventType.GROUP.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroup()StringgetSource()CacheEvent.CacheEventTypegetType()StringtoString()
-
-
-
Field Detail
-
ALL
public static final CacheEvent ALL
-
-
Constructor Detail
-
CacheEvent
public CacheEvent(String group, String source)
Creates a new event type ofCacheEvent.CacheEventType.GROUP. Usually an application creates an instance of this event to clear a group of caches for a table.- Parameters:
group- name of group (usually name of table), cannot be null.source- string representation of source of event, whatever that means for the application. This event will be broadcast to listeners, and they might use this piece of information. Can be null.
-
CacheEvent
public CacheEvent(String source)
Creates a new event type ofCacheEvent.CacheEventType.ALL- Parameters:
source- string representation of source of event, whatever that means for the application. This event will be broadcast to listeners, and they might use this piece of information. Can be null.
-
-