public class ClientFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Client |
createClient(ConnectionStringBuilder csb)
Creates a new Client instance with the given connection string.
|
static Client |
createClient(ConnectionStringBuilder csb,
org.apache.http.impl.client.CloseableHttpClient client)
Creates a new Client instance with the given connection string.
|
static Client |
createClient(ConnectionStringBuilder csb,
HttpClientProperties properties)
Creates a new Client instance with the given connection string.
|
static StreamingClient |
createStreamingClient(ConnectionStringBuilder csb)
Creates a new StreamingClient instance with the given connection string.
|
static StreamingClient |
createStreamingClient(ConnectionStringBuilder csb,
org.apache.http.impl.client.CloseableHttpClient httpClient)
Creates a new StreamingClient instance with the given connection string.
|
static StreamingClient |
createStreamingClient(ConnectionStringBuilder csb,
HttpClientProperties properties)
Creates a new StreamingClient instance with the given connection string.
|
public static Client createClient(ConnectionStringBuilder csb) throws URISyntaxException
csb - the connection string builderURISyntaxException - if the cluster URL is invalidpublic static Client createClient(ConnectionStringBuilder csb, HttpClientProperties properties) throws URISyntaxException
csb - the connection string builderproperties - HTTP client propertiesURISyntaxException - if the cluster URL is invalidpublic static Client createClient(ConnectionStringBuilder csb, org.apache.http.impl.client.CloseableHttpClient client) throws URISyntaxException
csb - the connection string builderclient - CloseableHttpClient client. It will not be closed when Closeable.close() is called.URISyntaxException - if the cluster URL is invalidpublic static StreamingClient createStreamingClient(ConnectionStringBuilder csb) throws URISyntaxException
csb - the connection string builderURISyntaxException - if the cluster URL is invalidpublic static StreamingClient createStreamingClient(ConnectionStringBuilder csb, HttpClientProperties properties) throws URISyntaxException
csb - the connection string builderproperties - HTTP client propertiesURISyntaxException - if the cluster URL is invalidpublic static StreamingClient createStreamingClient(ConnectionStringBuilder csb, org.apache.http.impl.client.CloseableHttpClient httpClient) throws URISyntaxException
csb - the connection string builderhttpClient - HTTP clientURISyntaxException - if the cluster URL is invalidCopyright © 2023. All rights reserved.