Class CacheInvalidationListener
java.lang.Object
org.alfresco.elasticsearch.batchindexing.listeners.CacheInvalidationListener
- All Implemented Interfaces:
org.springframework.batch.core.listener.JobExecutionListener
public class CacheInvalidationListener
extends Object
implements org.springframework.batch.core.listener.JobExecutionListener
Invalidates the tag and child-association caches in the Alfresco metadata repository before every batch indexing job run.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheInvalidationListener(org.alfresco.database.connector.AlfrescoMetadataRepository metadataRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeJob(org.springframework.batch.core.job.JobExecution jobExecution) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.batch.core.listener.JobExecutionListener
afterJob
-
Constructor Details
-
CacheInvalidationListener
public CacheInvalidationListener(org.alfresco.database.connector.AlfrescoMetadataRepository metadataRepository)
-
-
Method Details
-
beforeJob
public void beforeJob(org.springframework.batch.core.job.JobExecution jobExecution) - Specified by:
beforeJobin interfaceorg.springframework.batch.core.listener.JobExecutionListener
-