Package com.atlassian.jira.cluster.dbr
Class AsyncDBRSender
java.lang.Object
com.atlassian.jira.cluster.dbr.AsyncDBRSender
- All Implemented Interfaces:
DBRSender
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncDBRSender(DBRMessageFactory documentMessageFactory, FeatureManager featureManager, com.atlassian.event.api.EventPublisher eventPublisher, DBRTransportManager dbrTransportManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidonPluginFrameworkShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) voidsendUpdate(IndexDirectoryFactory.Name index, org.apache.lucene.document.Document document, long cost) send a dbr update message to other nodesvoidsendUpdateWithRelated(DefaultIssueIndexer.Documents documents, long cost) send a dbr update with related message to other nodesreturn total stats
-
Constructor Details
-
AsyncDBRSender
public AsyncDBRSender(DBRMessageFactory documentMessageFactory, FeatureManager featureManager, com.atlassian.event.api.EventPublisher eventPublisher, DBRTransportManager dbrTransportManager)
-
-
Method Details
-
onPluginFrameworkShutdown
@EventListener public void onPluginFrameworkShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event) -
sendUpdateWithRelated
Description copied from interface:DBRSendersend a dbr update with related message to other nodes- Specified by:
sendUpdateWithRelatedin interfaceDBRSender
-
sendUpdate
public void sendUpdate(IndexDirectoryFactory.Name index, org.apache.lucene.document.Document document, long cost) Description copied from interface:DBRSendersend a dbr update message to other nodes- Specified by:
sendUpdatein interfaceDBRSender
-
totalStats
Description copied from interface:DBRSenderreturn total stats- Specified by:
totalStatsin interfaceDBRSender
-