public class SolrPageChangePart1Observer extends AbstractSolrObserver
Observer for observing page creation or modification in order to
synchronize Solr index associated._resolver, _siteIndexer, _solrIndexer, _solrPageIndexerMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
SolrPageChangePart1Observer() |
| 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, servicegetLogger, setLoggerpublic SolrPageChangePart1Observer()
public boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.public int getPriority(Event event)
ObservergetPriority in interface ObservergetPriority in class AbstractSolrObserverevent - the event.public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observerevent - 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.