public class FlushAllListeningPolicy extends AbstractListeningFlushPolicy
AbstractListeningFlushPolicy.CacheCleaner
Constructor and Description |
---|
FlushAllListeningPolicy(CacheModule cacheModule,
info.magnolia.repository.RepositoryManager repositoryManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleSingleEvent(Cache cache,
String repository,
javax.jcr.observation.Event event)
Implement this method to react on each and every event on a given cache and repository,
even if multiple where buffered.
|
protected void |
postHandleEvents(Cache cache,
String repository)
Implement this method to wrap up flushing process after all single events have been processed.
|
protected boolean |
preHandleEvents(Cache cache,
String repository)
Implement this method to react on buffered events on a given cache and repository.
|
flushByUUID, getExcludedWorkspaces, getPaths, getWorkspaces, setExcludedWorkspaces, setWorkspaces, start, stop
@Inject public FlushAllListeningPolicy(CacheModule cacheModule, info.magnolia.repository.RepositoryManager repositoryManager)
protected boolean preHandleEvents(Cache cache, String repository)
AbstractListeningFlushPolicy
preHandleEvents
in class AbstractListeningFlushPolicy
protected void handleSingleEvent(Cache cache, String repository, javax.jcr.observation.Event event)
AbstractListeningFlushPolicy
AbstractListeningFlushPolicy.preHandleEvents(Cache, String)
returns true;handleSingleEvent
in class AbstractListeningFlushPolicy
protected void postHandleEvents(Cache cache, String repository)
AbstractListeningFlushPolicy
AbstractListeningFlushPolicy.preHandleEvents(Cache, String)
returns true;postHandleEvents
in class AbstractListeningFlushPolicy
Copyright © 2019 Magnolia International Ltd.. All rights reserved.