Class ConcurrentUpdateSolrClient
- java.lang.Object
- 
- org.apache.solr.client.solrj.SolrClient
- 
- org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient
 
 
- 
- All Implemented Interfaces:
- Closeable,- Serializable,- AutoCloseable
 
 @Deprecated(since="9.0") public class ConcurrentUpdateSolrClient extends SolrClient Deprecated.Please useConcurrentUpdateHttp2SolrClientConcurrentUpdateSolrClient buffers all added documents and writes them into open HTTP connections. This class is thread safe.Params from UpdateRequestare converted to http request parameters. When params change between UpdateRequests a new HTTP request is started.Although any SolrClient request can be made with this implementation, it is only recommended to use ConcurrentUpdateSolrClient with /update requests. The class HttpSolrClientis better suited for the query interface.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConcurrentUpdateSolrClient.BuilderDeprecated.ConstructsConcurrentUpdateSolrClientinstances from provided configuration.
 - 
Field Summary- 
Fields inherited from class org.apache.solr.client.solrj.SolrClientdefaultCollection
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedConcurrentUpdateSolrClient(ConcurrentUpdateSolrClient.Builder builder)Deprecated.Use builder to construct this class.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidblockUntilFinished()Deprecated.voidclose()Deprecated.Set<String>getQueryParams()Deprecated.Set<String>getUrlParamNames()Deprecated.voidhandleError(Throwable ex)Deprecated.voidonSuccess(org.apache.http.HttpResponse resp)Deprecated.Intended to be used as an extension point for doing post-processing after a request completes.NamedList<Object>request(SolrRequest<?> request, String collection)Deprecated.Execute a request against a Solr server for a given collectionvoidsetParser(ResponseParser responseParser)Deprecated.voidsetPollQueueTime(int pollQueueTime)Deprecated.voidsetRequestWriter(RequestWriter requestWriter)Deprecated.voidshutdownNow()Deprecated.- 
Methods inherited from class org.apache.solr.client.solrj.SolrClientadd, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, getContext, getDefaultCollection, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
 
- 
 
- 
- 
- 
Constructor Detail- 
ConcurrentUpdateSolrClientprotected ConcurrentUpdateSolrClient(ConcurrentUpdateSolrClient.Builder builder) Deprecated.Use builder to construct this class. Uses the supplied HttpClient to send documents to the Solr server.
 
- 
 - 
Method Detail- 
getQueryParams@Deprecated public Set<String> getQueryParams() Deprecated.
 - 
requestpublic NamedList<Object> request(SolrRequest<?> request, String collection) throws SolrServerException, IOException Deprecated.Description copied from class:SolrClientExecute a request against a Solr server for a given collection- Specified by:
- requestin class- SolrClient
- Parameters:
- request- the request to execute
- collection- the collection to execute the request against
- Returns:
- a NamedListcontaining the response from the server
- Throws:
- SolrServerException- if there is an error on the server
- IOException- If there is a low-level I/O error.
 
 - 
blockUntilFinishedpublic void blockUntilFinished() throws IOExceptionDeprecated.- Throws:
- IOException
 
 - 
handleErrorpublic void handleError(Throwable ex) Deprecated.
 - 
onSuccesspublic void onSuccess(org.apache.http.HttpResponse resp) Deprecated.Intended to be used as an extension point for doing post-processing after a request completes.
 - 
closepublic void close() Deprecated.
 - 
shutdownNowpublic void shutdownNow() Deprecated.
 - 
setParser@Deprecated public void setParser(ResponseParser responseParser) Deprecated.
 - 
setPollQueueTime@Deprecated public void setPollQueueTime(int pollQueueTime) Deprecated.- Parameters:
- pollQueueTime- time for an open connection to wait for updates when the queue is empty.
 
 - 
setRequestWriter@Deprecated public void setRequestWriter(RequestWriter requestWriter) Deprecated.
 
- 
 
-