public interface SolrClientPool
SolrClient instances. All communications with Solr should use clients returned from methods in this
class.| Modifier and Type | Method and Description |
|---|---|
CachedSolrClient |
getOrCreate(Index index,
SolrClientType solrClientType,
java.util.function.Function<SolrConfig,SolrClient> createMethod)
Returns a
SolrClient from the pool or creates it if it does not exist. |
CachedSolrClient |
getOrCreate(Index index,
SolrClientType solrClientType,
java.util.function.Function<SolrConfig,SolrClient> createMethod,
java.util.function.Consumer<SolrClient> closeMethod)
Returns a
SolrClient from the pool or creates it if it does not exist. |
void |
invalidateAll()
Invalidates the clients pool.
|
CachedSolrClient getOrCreate(Index index, SolrClientType solrClientType, java.util.function.Function<SolrConfig,SolrClient> createMethod) throws SolrServiceException
SolrClient from the pool or creates it if it does not exist.index - - IndexsolrClientType - - SolrClientTypecreateMethod - - method used to create a new instance of SolrClientSolrClientSolrServiceException - if an error occursCachedSolrClient getOrCreate(Index index, SolrClientType solrClientType, java.util.function.Function<SolrConfig,SolrClient> createMethod, java.util.function.Consumer<SolrClient> closeMethod) throws SolrServiceException
SolrClient from the pool or creates it if it does not exist.index - - IndexsolrClientType - - SolrClientTypecreateMethod - - method used to create a new instance of SolrClientcloseMethod - - method used to release resources associated with the created instance of SolrClientSolrClientSolrServiceException - if an error occursvoid invalidateAll()
Copyright © 2018 SAP SE. All Rights Reserved.