public class SolrPageDeletionObserver extends AbstractSolrObserver
Observer
for observing page deletion in order to synchronize
Solr index associated._resolver, _siteIndexer, _solrIndexer, _solrPageIndexer
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SolrPageDeletionObserver() |
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
public SolrPageDeletionObserver()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public int getPriority(Event event)
Observer
getPriority
in interface Observer
getPriority
in class AbstractSolrObserver
event
- the event.public void observe(Event event, Map<String,Object> transientVars) throws Exception
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.