Class ConcurrentUpdateHttp2SolrClient
- java.lang.Object
- 
- org.apache.solr.client.solrj.SolrClient
- 
- org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient
 
 
- 
- All Implemented Interfaces:
- Closeable,- Serializable,- AutoCloseable
 
 public class ConcurrentUpdateHttp2SolrClient extends SolrClient A Solr client usingHttp2SolrClientto send concurrent updates to Solr.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConcurrentUpdateHttp2SolrClient.BuilderConstructsConcurrentUpdateHttp2SolrClientinstances from provided configuration.
 - 
Field Summary- 
Fields inherited from class org.apache.solr.client.solrj.SolrClientdefaultCollection
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedConcurrentUpdateHttp2SolrClient(ConcurrentUpdateHttp2SolrClient.Builder builder)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidblockUntilFinished()voidclose()voidhandleError(Throwable ex)voidonSuccess(org.eclipse.jetty.client.api.Response resp, InputStream respBody)Intended to be used as an extension point for doing post-processing after a request completes.NamedList<Object>request(SolrRequest<?> request, String collection)Execute a request against a Solr server for a given collectionvoidsetPollQueueTime(int pollQueueTimeMillis)Deprecated.voidshutdownNow()- 
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- 
ConcurrentUpdateHttp2SolrClientprotected ConcurrentUpdateHttp2SolrClient(ConcurrentUpdateHttp2SolrClient.Builder builder) 
 
- 
 - 
Method Detail- 
requestpublic NamedList<Object> request(SolrRequest<?> request, String collection) throws SolrServerException, IOException 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 IOException- Throws:
- IOException
 
 - 
handleErrorpublic void handleError(Throwable ex) 
 - 
onSuccesspublic void onSuccess(org.eclipse.jetty.client.api.Response resp, InputStream respBody)Intended to be used as an extension point for doing post-processing after a request completes.- Parameters:
- respBody- the body of the response, subclasses must not close this stream.
 
 - 
closepublic void close() 
 - 
shutdownNowpublic void shutdownNow() 
 - 
setPollQueueTime@Deprecated public void setPollQueueTime(int pollQueueTimeMillis) Deprecated.- Parameters:
- pollQueueTimeMillis- time for an open connection to wait for updates when the queue is empty.
 
 
- 
 
-