public class FlushCacheEventListener
extends net.sf.ehcache.event.CacheEventListenerAdapter
implements org.apache.jackrabbit.core.journal.RecordConsumer
| Constructor and Description |
|---|
FlushCacheEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(org.apache.jackrabbit.core.journal.Record record)
Consume a record.
|
String |
getId()
Return the unique identifier of the records this consumer
will be able to handle.
|
long |
getRevision()
Return the revision this consumer has last seen.
|
void |
notifyElementPut(net.sf.ehcache.Ehcache ehcache,
net.sf.ehcache.Element element) |
void |
notifyElementUpdated(net.sf.ehcache.Ehcache ehcache,
net.sf.ehcache.Element element) |
void |
setRevision(long revision)
Set the revision this consumer has last seen.
|
public void notifyElementPut(net.sf.ehcache.Ehcache ehcache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementPut in interface net.sf.ehcache.event.CacheEventListenernotifyElementPut in class net.sf.ehcache.event.CacheEventListenerAdapternet.sf.ehcache.CacheExceptionpublic void notifyElementUpdated(net.sf.ehcache.Ehcache ehcache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementUpdated in interface net.sf.ehcache.event.CacheEventListenernotifyElementUpdated in class net.sf.ehcache.event.CacheEventListenerAdapternet.sf.ehcache.CacheExceptionpublic String getId()
getId in interface org.apache.jackrabbit.core.journal.RecordConsumerpublic long getRevision()
getRevision in interface org.apache.jackrabbit.core.journal.RecordConsumerpublic void consume(org.apache.jackrabbit.core.journal.Record record)
consume in interface org.apache.jackrabbit.core.journal.RecordConsumerrecord - record to consumepublic void setRevision(long revision)
setRevision in interface org.apache.jackrabbit.core.journal.RecordConsumerrevision - revisionCopyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.