|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject freemarker.template.CacheEvent
public final class CacheEvent
An event fired by self-updating caches.
CacheListener
,
FileTemplateCache
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
CacheEvent(java.lang.Object source)
Constructor that takes the object where the event originated. |
|
CacheEvent(java.lang.Object source,
java.lang.String elementName,
java.lang.Exception exception)
Constructor that takes an element name, and the exception that caused the event. |
|
CacheEvent(java.lang.Object source,
java.lang.String elementName,
long lastModified)
Constructor that takes an element name, and the exception that caused the event. |
Method Summary | |
---|---|
java.lang.String |
getElementName()
Retrieves the name of the element that caused the event. |
java.lang.Exception |
getException()
Retrieves the exception that caused the event. |
long |
getLastModified()
Retrieves the last modification date of the named element. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheEvent(java.lang.Object source)
source
- the source of this eventpublic CacheEvent(java.lang.Object source, java.lang.String elementName, long lastModified)
source
- the source of this eventelementName
- the name of the cache elementlastModified
- the time that the element was last modifiedpublic CacheEvent(java.lang.Object source, java.lang.String elementName, java.lang.Exception exception)
source
- the source of this eventelementName
- the name of the cache elementexception
- the exception that caused the eventMethod Detail |
---|
public java.lang.Exception getException()
Exception
, if any, associated with this
event.public java.lang.String getElementName()
public long getLastModified()
long
representing the time in milliseconds that
the element was last modified, or 0
if no time is specified
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |