# Uses of Interface
org.apache.zookeeper.client.HostProvider

Packages that use HostProvider
Package
Description
org.apache.zookeeper
org.apache.zookeeper.client

## Uses of HostProvider in org.apache.zookeeper

Fields in org.apache.zookeeper declared as HostProvider
Modifier and Type
Field
Description
`protected final HostProvider`
ZooKeeper.`hostProvider`
Constructors in org.apache.zookeeper with parameters of type HostProvider
Modifier
Constructor
Description
``
`ClientCnxn(String chrootPath, HostProvider hostProvider, int sessionTimeout, ZKClientConfig clientConfig, Watcher defaultWatcher, org.apache.zookeeper.ClientCnxnSocket clientCnxnSocket, boolean canBeReadOnly)`
Creates a connection object.
``
`ClientCnxn(String chrootPath, HostProvider hostProvider, int sessionTimeout, ZKClientConfig clientConfig, Watcher defaultWatcher, org.apache.zookeeper.ClientCnxnSocket clientCnxnSocket, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly)`
Creates a connection object.
``
`ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly, HostProvider aHostProvider)`
To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.
``
`ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly, HostProvider hostProvider, ZKClientConfig clientConfig)`
To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.
``
`ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly, HostProvider aHostProvider)`
To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.
``
`ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly, HostProvider hostProvider, ZKClientConfig clientConfig)`
To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.

## Uses of HostProvider in org.apache.zookeeper.client

Classes in org.apache.zookeeper.client that implement HostProvider
Modifier and Type
Class
Description
`final class`
`StaticHostProvider`
Most simple HostProvider, resolves on every next() call.