public class ConcurrentUpdateHttp2SolrClient extends SolrClient
Modifier and Type | Class and Description |
---|---|
static class |
ConcurrentUpdateHttp2SolrClient.Builder
Constructs
ConcurrentUpdateHttp2SolrClient instances from provided configuration. |
Modifier | Constructor and Description |
---|---|
protected |
ConcurrentUpdateHttp2SolrClient(ConcurrentUpdateHttp2SolrClient.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
blockUntilFinished() |
void |
close() |
void |
handleError(Throwable ex) |
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.
|
NamedList<Object> |
request(SolrRequest request,
String collection)
Execute a request against a Solr server for a given collection
|
void |
setPollQueueTime(int pollQueueTime) |
void |
shutdownNow() |
add, 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, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
protected ConcurrentUpdateHttp2SolrClient(ConcurrentUpdateHttp2SolrClient.Builder builder)
public NamedList<Object> request(SolrRequest request, String collection) throws SolrServerException, IOException
SolrClient
request
in class SolrClient
request
- the request to executecollection
- the collection to execute the request againstNamedList
containing the response from the serverSolrServerException
- if there is an error on the serverIOException
- If there is a low-level I/O error.public void blockUntilFinished() throws IOException
IOException
public void handleError(Throwable ex)
public void onSuccess(org.eclipse.jetty.client.api.Response resp, InputStream respBody)
respBody
- the body of the response, subclasses must not close this stream.public void close()
public void shutdownNow()
public void setPollQueueTime(int pollQueueTime)
pollQueueTime
- time for an open connection to wait for updates when
the queue is empty.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.