Class IndexerEventPublisher
java.lang.Object
com.atlassian.confluence.impl.search.IndexerEventPublisher
A utility for class for publishing events to
IndexerEventListener
via an EventPublisher
.- Since:
- 7.5
-
Constructor Summary
ConstructorsConstructorDescriptionIndexerEventPublisher
(com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
publishCallbackEvent
(BiConsumer<ConfluenceIndexer, ChangeIndexer> indexersTask) Publishes an event which will received byIndexerEventListener
, which in turn will invoke the supplied callback with theConfluenceIndexer
and theChangeIndexer
.void
publishCallbackEvent
(Consumer<ConfluenceIndexer> indexerTask) Publishes an event which will received byIndexerEventListener
, which in turn will invoke the supplied callback with theConfluenceIndexer
.
-
Constructor Details
-
IndexerEventPublisher
public IndexerEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
publishCallbackEvent
Publishes an event which will received byIndexerEventListener
, which in turn will invoke the supplied callback with theConfluenceIndexer
. -
publishCallbackEvent
Publishes an event which will received byIndexerEventListener
, which in turn will invoke the supplied callback with theConfluenceIndexer
and theChangeIndexer
.
-