Package org.apache.solr.common.cloud
Class SolrZkClient.Builder
- java.lang.Object
-
- org.apache.solr.common.cloud.SolrZkClient.Builder
-
- Enclosing class:
- SolrZkClient
public static class SolrZkClient.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description BeforeReconnect
beforeReconnect
org.apache.solr.common.util.Compressor
compressor
ZkClientConnectionStrategy
connectionStrategy
ConnectionManager.IsClosed
higherLevelIsClosed
OnReconnect
onReconnect
ZkACLProvider
zkACLProvider
int
zkClientConnectTimeout
int
zkClientTimeout
String
zkServerAddress
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrZkClient
build()
SolrZkClient.Builder
withAclProvider(ZkACLProvider zkACLProvider)
SolrZkClient.Builder
withBeforeConnect(BeforeReconnect beforeReconnect)
SolrZkClient.Builder
withClosedCheck(ConnectionManager.IsClosed higherLevelIsClosed)
SolrZkClient.Builder
withCompressor(org.apache.solr.common.util.Compressor c)
SolrZkClient.Builder
withConnStrategy(ZkClientConnectionStrategy strat)
SolrZkClient.Builder
withConnTimeOut(int i, TimeUnit unit)
SolrZkClient.Builder
withReconnectListener(OnReconnect onReconnect)
SolrZkClient.Builder
withTimeout(int i, TimeUnit unit)
SolrZkClient.Builder
withUrl(String server)
-
-
-
Field Detail
-
zkServerAddress
public String zkServerAddress
-
zkClientTimeout
public int zkClientTimeout
-
zkClientConnectTimeout
public int zkClientConnectTimeout
-
onReconnect
public OnReconnect onReconnect
-
beforeReconnect
public BeforeReconnect beforeReconnect
-
connectionStrategy
public ZkClientConnectionStrategy connectionStrategy
-
zkACLProvider
public ZkACLProvider zkACLProvider
-
higherLevelIsClosed
public ConnectionManager.IsClosed higherLevelIsClosed
-
compressor
public org.apache.solr.common.util.Compressor compressor
-
-
Method Detail
-
withUrl
public SolrZkClient.Builder withUrl(String server)
-
withTimeout
public SolrZkClient.Builder withTimeout(int i, TimeUnit unit)
-
withConnTimeOut
public SolrZkClient.Builder withConnTimeOut(int i, TimeUnit unit)
-
withReconnectListener
public SolrZkClient.Builder withReconnectListener(OnReconnect onReconnect)
-
withConnStrategy
public SolrZkClient.Builder withConnStrategy(ZkClientConnectionStrategy strat)
-
withBeforeConnect
public SolrZkClient.Builder withBeforeConnect(BeforeReconnect beforeReconnect)
-
withAclProvider
public SolrZkClient.Builder withAclProvider(ZkACLProvider zkACLProvider)
-
withClosedCheck
public SolrZkClient.Builder withClosedCheck(ConnectionManager.IsClosed higherLevelIsClosed)
-
withCompressor
public SolrZkClient.Builder withCompressor(org.apache.solr.common.util.Compressor c)
-
build
public SolrZkClient build()
-
-