Java Code Examples for org.apache.solr.common.cloud.SolrZkClient#wrapWatcher()
The following examples show how to use
org.apache.solr.common.cloud.SolrZkClient#wrapWatcher() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CdcrLeaderStateManager.java From lucene-solr with Apache License 2.0 | 4 votes |
/** * SolrZkClient does not guarantee that a watch object will only be triggered once for a given notification * if we does not wrap the watcher - see SOLR-6621. */ private Watcher initWatcher(SolrZkClient zkClient) { wrappedWatcher = new LeaderStateWatcher(); return zkClient.wrapWatcher(wrappedWatcher); }
Example 2
Source File: CdcrProcessStateManager.java From lucene-solr with Apache License 2.0 | 4 votes |
/** * SolrZkClient does not guarantee that a watch object will only be triggered once for a given notification * if we does not wrap the watcher - see SOLR-6621. */ private Watcher initWatcher(SolrZkClient zkClient) { wrappedWatcher = new ProcessStateWatcher(); return zkClient.wrapWatcher(wrappedWatcher); }
Example 3
Source File: CdcrBufferStateManager.java From lucene-solr with Apache License 2.0 | 4 votes |
/** * SolrZkClient does not guarantee that a watch object will only be triggered once for a given notification * if we does not wrap the watcher - see SOLR-6621. */ private Watcher initWatcher(SolrZkClient zkClient) { wrappedWatcher = new BufferStateWatcher(); return zkClient.wrapWatcher(wrappedWatcher); }