# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
Interface and Description
org.apache.solr.common.cloud.ClosableThread because this class is no longer used internally and will be removed

Deprecated Classes
Class and Description
org.apache.solr.client.solrj.impl.CloudSolrServer Use `CloudSolrClient`
org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer Use `ConcurrentUpdateSolrClient`
org.apache.solr.client.solrj.impl.HttpSolrServer Use `HttpSolrClient`
org.apache.solr.common.util.IteratorChain This class is no longer used by Solr, and may be removed in future versions
org.apache.solr.client.solrj.impl.LBHttpSolrServer Use `LBHttpSolrClient`
org.apache.solr.client.solrj.SolrServer Use `SolrClient`

Deprecated Methods
Method and Description
org.apache.solr.client.solrj.request.CollectionAdminRequest.CreateAlias.setCollectionName(String) use `CollectionAdminRequest.CreateAlias.setAliasName(String)` instead
org.apache.solr.client.solrj.impl.HttpSolrClient.setMaxRetries(int) retries should be implemented in client code, and should be considered carefully per-request
org.apache.solr.client.solrj.SolrClient.shutdown() Use close() instead.
org.apache.solr.client.solrj.impl.LBHttpSolrClient.shutdown()
org.apache.solr.client.solrj.impl.HttpSolrClient.shutdown()
org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient.shutdown()
org.apache.solr.client.solrj.impl.CloudSolrClient.shutdown()

Deprecated Constructors
Constructor and Description
org.apache.solr.common.util.NamedList(List Use `NamedList.NamedList(java.util.Map.Entry[])` for the NamedList instantiation
org.apache.solr.client.solrj.response.PivotField(String, Object, int, List<PivotField>) Use `PivotField.PivotField(String,Object,int,List,Map,Map,List)` with null `statsInfo`, queryCounts and ranges
org.apache.solr.common.util.SimpleOrderedMap(List