Package io.confluent.ksql.api.client
Interface ClientOptions
-
public interface ClientOptionsOptions for the ksqlDBClient.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_EXECUTE_QUERY_MAX_RESULT_ROWSstatic StringDEFAULT_HOSTstatic intDEFAULT_HOST_PORTstatic intDEFAULT_HTTP2_MULTIPLEXING_LIMIT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientOptionscopy()Creates a copy of theseClientOptions.static ClientOptionscreate()StringgetBasicAuthPassword()Returns the password to be used for HTTP basic authentication, if applicable.StringgetBasicAuthUsername()Returns the username to be used for HTTP basic authentication, if applicable.intgetExecuteQueryMaxResultRows()Returns the maximum number of rows that may be returned in aBatchedQueryResult.StringgetHost()Returns the host name of the ksqlDB server to connect to.intgetHttp2MultiplexingLimit()Returns the maximum number of requests per HTTP/2 connection.StringgetKeyAlias()Returns the key alias.StringgetKeyPassword()Returns the key password.StringgetKeyStore()Returns the key store path.StringgetKeyStorePassword()Returns the key store password.intgetPort()Returns the host port of the ksqlDB server to connect to.StringgetTrustStore()Returns the trust store path.StringgetTrustStorePassword()Returns the trust store password.booleanisUseAlpn()Returns whether ALPN should be used.booleanisUseBasicAuth()Returns whether HTTP basic authentication will be used when connecting to the ksqlDB server.booleanisUseTls()Returns whether TLS should be used when connecting to the ksqlDB server.booleanisVerifyHost()Returns whether hostname verification (for TLS) is enabled.ClientOptionssetBasicAuthCredentials(String username, String password)Sets the username and password to be used for HTTP basic authentication when connecting to the ksqlDB server.ClientOptionssetExecuteQueryMaxResultRows(int maxRows)Sets the maximum number of rows that may be returned in aBatchedQueryResult.ClientOptionssetHost(String host)Sets the host name of the ksqlDB server to connect to.ClientOptionssetHttp2MultiplexingLimit(int http2MultiplexingLimit)Sets the maximum number of requests per HTTP/2 connection.ClientOptionssetKeyAlias(String keyAlias)Sets the key alias.ClientOptionssetKeyPassword(String keyPassword)Sets the key password.ClientOptionssetKeyStore(String keyStorePath)Sets the key store path.ClientOptionssetKeyStorePassword(String keyStorePassword)Sets the key store password.ClientOptionssetPort(int port)Sets the host port of the ksqlDB server to connect to.ClientOptionssetTrustStore(String trustStorePath)Sets the trust store path.ClientOptionssetTrustStorePassword(String trustStorePassword)Sets the trust store password.ClientOptionssetUseAlpn(boolean useAlpn)Sets whether ALPN should be used.ClientOptionssetUseTls(boolean useTls)Sets whether TLS should be used when connecting to the ksqlDB server.ClientOptionssetVerifyHost(boolean verifyHost)Sets whether hostname verification (for TLS) is enabled.
-
-
-
Field Detail
-
DEFAULT_HOST
static final String DEFAULT_HOST
- See Also:
- Constant Field Values
-
DEFAULT_HOST_PORT
static final int DEFAULT_HOST_PORT
- See Also:
- Constant Field Values
-
DEFAULT_EXECUTE_QUERY_MAX_RESULT_ROWS
static final int DEFAULT_EXECUTE_QUERY_MAX_RESULT_ROWS
- See Also:
- Constant Field Values
-
DEFAULT_HTTP2_MULTIPLEXING_LIMIT
static final int DEFAULT_HTTP2_MULTIPLEXING_LIMIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHost
ClientOptions setHost(String host)
Sets the host name of the ksqlDB server to connect to. Defaults to "localhost".- Parameters:
host- host name- Returns:
- a reference to this
-
setPort
ClientOptions setPort(int port)
Sets the host port of the ksqlDB server to connect to. Defaults to 8088.- Parameters:
port- host port- Returns:
- a reference to this
-
setUseTls
ClientOptions setUseTls(boolean useTls)
Sets whether TLS should be used when connecting to the ksqlDB server. Defaults to false.- Parameters:
useTls- whether TLS should be used- Returns:
- a reference to this
-
setVerifyHost
ClientOptions setVerifyHost(boolean verifyHost)
Sets whether hostname verification (for TLS) is enabled. Defaults to true.- Parameters:
verifyHost- whether hostname verification should be enabled- Returns:
- a reference to this
-
setUseAlpn
ClientOptions setUseAlpn(boolean useAlpn)
Sets whether ALPN should be used. Defaults to false.- Parameters:
useAlpn- whether ALPN should be used- Returns:
- a reference to this
-
setTrustStore
ClientOptions setTrustStore(String trustStorePath)
Sets the trust store path.- Parameters:
trustStorePath- trust store path- Returns:
- a reference to this
-
setTrustStorePassword
ClientOptions setTrustStorePassword(String trustStorePassword)
Sets the trust store password.- Parameters:
trustStorePassword- trust store password- Returns:
- a reference to this
-
setKeyStore
ClientOptions setKeyStore(String keyStorePath)
Sets the key store path.- Parameters:
keyStorePath- key store path- Returns:
- a reference to this
-
setKeyStorePassword
ClientOptions setKeyStorePassword(String keyStorePassword)
Sets the key store password.- Parameters:
keyStorePassword- key store password- Returns:
- a reference to this
-
setKeyPassword
ClientOptions setKeyPassword(String keyPassword)
Sets the key password.- Parameters:
keyPassword- key password- Returns:
- a reference to this
-
setKeyAlias
ClientOptions setKeyAlias(String keyAlias)
Sets the key alias.- Parameters:
keyAlias- key alias- Returns:
- a reference to this
-
setBasicAuthCredentials
ClientOptions setBasicAuthCredentials(String username, String password)
Sets the username and password to be used for HTTP basic authentication when connecting to the ksqlDB server. Basic authentication will be used unless both username and password are null (the default).- Parameters:
username- username for basic authenticationpassword- password for basic authentication- Returns:
- a reference to this
-
setExecuteQueryMaxResultRows
ClientOptions setExecuteQueryMaxResultRows(int maxRows)
Sets the maximum number of rows that may be returned in aBatchedQueryResult. Defaults to 10000.- Parameters:
maxRows- number of rows- Returns:
- a reference to this
-
setHttp2MultiplexingLimit
ClientOptions setHttp2MultiplexingLimit(int http2MultiplexingLimit)
Sets the maximum number of requests per HTTP/2 connection. Defaults to -1.- Parameters:
http2MultiplexingLimit- number of requests- Returns:
- a reference to this
-
getHost
String getHost()
Returns the host name of the ksqlDB server to connect to.- Returns:
- host name
-
getPort
int getPort()
Returns the host port of the ksqlDB server to connect to.- Returns:
- host port
-
isUseTls
boolean isUseTls()
Returns whether TLS should be used when connecting to the ksqlDB server.- Returns:
- whether TLS should be used
-
isVerifyHost
boolean isVerifyHost()
Returns whether hostname verification (for TLS) is enabled.- Returns:
- whether hostname verification is enabled
-
isUseAlpn
boolean isUseAlpn()
Returns whether ALPN should be used.- Returns:
- whether ALPN should be used
-
isUseBasicAuth
boolean isUseBasicAuth()
Returns whether HTTP basic authentication will be used when connecting to the ksqlDB server.- Returns:
- whether basic authentication will be used
-
getTrustStore
String getTrustStore()
Returns the trust store path.- Returns:
- trust store path
-
getTrustStorePassword
String getTrustStorePassword()
Returns the trust store password.- Returns:
- trust store password
-
getKeyStore
String getKeyStore()
Returns the key store path.- Returns:
- key store path
-
getKeyStorePassword
String getKeyStorePassword()
Returns the key store password.- Returns:
- key store password
-
getKeyPassword
String getKeyPassword()
Returns the key password.- Returns:
- key password
-
getKeyAlias
String getKeyAlias()
Returns the key alias.- Returns:
- key alias
-
getBasicAuthUsername
String getBasicAuthUsername()
Returns the username to be used for HTTP basic authentication, if applicable.- Returns:
- username
-
getBasicAuthPassword
String getBasicAuthPassword()
Returns the password to be used for HTTP basic authentication, if applicable.- Returns:
- password
-
getExecuteQueryMaxResultRows
int getExecuteQueryMaxResultRows()
Returns the maximum number of rows that may be returned in aBatchedQueryResult.- Returns:
- number of rows
-
getHttp2MultiplexingLimit
int getHttp2MultiplexingLimit()
Returns the maximum number of requests per HTTP/2 connection.- Returns:
- number of requests
-
copy
ClientOptions copy()
Creates a copy of theseClientOptions.- Returns:
- the copy
-
create
static ClientOptions create()
-
-