public class CachedSolrClient
extends SolrClient
SolrClient instance. This is a wrapper around the real SolrClient.| Constructor and Description |
|---|
CachedSolrClient(SolrClient delegate) |
CachedSolrClient(SolrClient delegate,
java.util.function.Consumer<SolrClient> closeMethod,
Credentials credentials) |
CachedSolrClient(SolrClient delegate,
Credentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer()
Notifies this client that there is a new consumer.
|
void |
close()
Notifies this client to remove one consumer.
|
java.util.function.Consumer<SolrClient> |
getCloseMethod()
Returns the method used to release resources associated with the delegate Solr client.
|
protected Credentials |
getCredentials()
Returns the credentials that will be used for authentication.
|
SolrClient |
getDelegate()
Returns the delegate Solr client.
|
<any> |
request(SolrRequest solrRequest,
java.lang.String collection) |
public CachedSolrClient(SolrClient delegate)
public CachedSolrClient(SolrClient delegate,
Credentials credentials)
public CachedSolrClient(SolrClient delegate,
java.util.function.Consumer<SolrClient> closeMethod,
Credentials credentials)
public <any> request(SolrRequest solrRequest,
java.lang.String collection)
throws SolrServerException,
java.io.IOException
SolrServerExceptionjava.io.IOExceptionpublic void close()
SolrClient#close() is called on the delegate client.public void addConsumer()
public SolrClient getDelegate()
public java.util.function.Consumer<SolrClient> getCloseMethod()
protected Credentials getCredentials()
Copyright © 2018 SAP SE. All Rights Reserved.