public class CacheEvent extends Object
CacheManager
to let it know
of cache purge events.Modifier and Type | Class and Description |
---|---|
static class |
CacheEvent.CacheEventType |
Modifier and Type | Field and Description |
---|---|
static CacheEvent |
ALL |
Constructor and Description |
---|
CacheEvent(String source)
Creates a new event type of
CacheEvent.CacheEventType.ALL |
CacheEvent(String group,
String source)
Creates a new event type of
CacheEvent.CacheEventType.GROUP . |
Modifier and Type | Method and Description |
---|---|
String |
getGroup() |
String |
getSource() |
CacheEvent.CacheEventType |
getType() |
String |
toString() |
public static final CacheEvent ALL
public CacheEvent(String group, String source)
CacheEvent.CacheEventType.GROUP
.
Usually an application creates an instance of this event to clear a group of caches for a table.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.public CacheEvent(String source)
CacheEvent.CacheEventType.ALL
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.Copyright © 2019 JavaLite. All rights reserved.