Class ObserverHelper
java.lang.Object
org.ametys.cms.content.indexing.solr.observation.ObserverHelper
This helper centralize a few common helper methods
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Is events observation suspended for indexation?static void
Expert method
Listen to events again after a call tosuspendObservationForIndexation()
You have to callrestartObservationForIndexation()
the same number of times you called beforesuspendObservationForIndexation()
static void
Expert method
This should only be used when there is only one thread working at that time (i.e.
-
Method Details
-
suspendObservationForIndexation
Expert method
This should only be used when there is only one thread working at that time (i.e. during the initialization of the application) and that you manually do the global indexing after your long process.
All threads will not index anymore after observed events
CallrestartObservationForIndexation()
to listen to events again.
You have to callrestartObservationForIndexation()
the same number of times you called beforesuspendObservationForIndexation()
-
isNotSuspendedObservationForIndexation
Is events observation suspended for indexation?- Returns:
- true if events are not suspended, false otherwise.
-
restartObservationForIndexation
Expert method
Listen to events again after a call tosuspendObservationForIndexation()
You have to callrestartObservationForIndexation()
the same number of times you called beforesuspendObservationForIndexation()
-