use of org.apache.ignite.internal.processors.cache.index.IndexingTestUtils.StopBuildIndexConsumer in project ignite by apache.
the class AbstractRebuildIndexTest method addStopRebuildIndexConsumer.
/**
* Registering a {@link StopBuildIndexConsumer} to {@link IndexesRebuildTaskEx#addCacheRowConsumer}.
*
* @param n Node.
* @param cacheName Cache name.
* @return New instance of {@link StopBuildIndexConsumer}.
*/
protected StopBuildIndexConsumer addStopRebuildIndexConsumer(IgniteEx n, String cacheName) {
StopBuildIndexConsumer consumer = new StopBuildIndexConsumer(getTestTimeout());
addCacheRowConsumer(nodeName(n), cacheName, consumer);
return consumer;
}
Aggregations