public class SolrContentValidatedObserver extends AbstractSolrObserver implements AsyncObserver
Observer
observers content validation
in order to synchronize the solr index of referencing pages_resolver, _siteIndexer, _solrIndexer, _solrPageIndexer
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SolrContentValidatedObserver() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
boolean |
supports(Event event)
Checks if the event is supported.
|
_updateIndexReferencingPages, service
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parallelizable
public SolrContentValidatedObserver()
public int getPriority(Event event)
Observer
getPriority
in interface Observer
getPriority
in class AbstractSolrObserver
event
- the event.public boolean supports(Event event)
Observer
public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observer
observe
in interface Observer
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.Exception
- if an error occurs.
All exceptions will be logged but not propagated, as the observation mechanism should never fail.