public class ReloadSolrCacheForAclUpdatedObserver extends AbstractLogEnabled implements AsyncObserver, Serviceable
context object can be an uninfluential one
on the Solr Acl cache, and avoiding this reloading is possible by marking it with the SolrAclCacheUninfluentialObject interface.| Modifier and Type | Field and Description |
|---|---|
protected SolrIndexer |
_solrIndexer
The solr indexer
|
MAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
ReloadSolrCacheForAclUpdatedObserver() |
| 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.
|
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
getLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparallelizableprotected SolrIndexer _solrIndexer
public ReloadSolrCacheForAclUpdatedObserver()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic boolean supports(Event event)
Observerpublic int getPriority(Event event)
ObservergetPriority in interface Observerevent - the event.public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observerobserve in interface 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.