public class DocumentIndexRebuildService extends java.lang.Object implements DocumentIndexService, IndexRebuildScheduler
executor, scheduledFutureRef| Constructor and Description |
|---|
DocumentIndexRebuildService(java.lang.String pathToSolr,
java.util.function.BiFunction<java.lang.String,java.lang.Boolean,org.apache.solr.client.solrj.SolrClient> solrClientFactory,
long periodInMinutes,
DocumentIndexServiceFactory documentIndexServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUpdateDone() |
org.apache.solr.client.solrj.response.QueryResponse |
query(org.apache.solr.client.solrj.SolrQuery solrQuery) |
java.util.concurrent.Future |
rebuild()
Attempts to run a new index rebuild task if one is not already running.
|
void |
shutdown() |
void |
update(IndexUpdateOp request)
Updates index asynchronously.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrebuildIfEmptysetRebuildIntervalInMinutespublic DocumentIndexRebuildService(java.lang.String pathToSolr,
java.util.function.BiFunction<java.lang.String,java.lang.Boolean,org.apache.solr.client.solrj.SolrClient> solrClientFactory,
long periodInMinutes,
DocumentIndexServiceFactory documentIndexServiceFactory)
public org.apache.solr.client.solrj.response.QueryResponse query(org.apache.solr.client.solrj.SolrQuery solrQuery)
query in interface DocumentIndexServicepublic void update(IndexUpdateOp request)
DocumentIndexServiceupdate in interface DocumentIndexServicerequest - index update request.public java.util.concurrent.Future rebuild()
DocumentIndexServicerebuild in interface DocumentIndexServicerebuild in interface IndexRebuildSchedulerpublic void shutdown()
shutdown in interface DocumentIndexServicepublic boolean isUpdateDone()
isUpdateDone in interface DocumentIndexService