public static final class ArrowFlightSqlClientHandler.Builder extends Object
ArrowFlightSqlClientHandler
.Constructor and Description |
---|
Builder() |
public ArrowFlightSqlClientHandler.Builder withHost(String host)
host
- the host.public ArrowFlightSqlClientHandler.Builder withPort(int port)
port
- the port.public ArrowFlightSqlClientHandler.Builder withUsername(String username)
username
- the username.public ArrowFlightSqlClientHandler.Builder withPassword(String password)
password
- the password.public ArrowFlightSqlClientHandler.Builder withTrustStorePath(String trustStorePath)
trustStorePath
- the KeyStore path.public ArrowFlightSqlClientHandler.Builder withTrustStorePassword(String trustStorePassword)
trustStorePassword
- the KeyStore password.public ArrowFlightSqlClientHandler.Builder withEncryption(boolean useEncryption)
useEncryption
- whether to use TLS encryption.public ArrowFlightSqlClientHandler.Builder withDisableCertificateVerification(boolean disableCertificateVerification)
disableCertificateVerification
- whether to disable certificate verification.public ArrowFlightSqlClientHandler.Builder withSystemTrustStore(boolean useSystemTrustStore)
useSystemTrustStore
- whether to use the system operating certificates.public ArrowFlightSqlClientHandler.Builder withToken(String token)
token
- the token value.public ArrowFlightSqlClientHandler.Builder withBufferAllocator(BufferAllocator allocator)
BufferAllocator
to use in this handler.allocator
- the allocator.public ArrowFlightSqlClientHandler.Builder withMiddlewareFactories(FlightClientMiddleware.Factory... factories)
factories
to the list of middlewareFactories
of this handler.factories
- the factories to add.public ArrowFlightSqlClientHandler.Builder withMiddlewareFactories(Collection<FlightClientMiddleware.Factory> factories)
factories
to the list of middlewareFactories
of this handler.factories
- the factories to add.public ArrowFlightSqlClientHandler.Builder withCallOptions(CallOption... options)
CallOption
s to this handler.options
- the optionspublic ArrowFlightSqlClientHandler.Builder withCallOptions(Collection<CallOption> options)
CallOption
s to this handler.options
- the optionspublic ArrowFlightSqlClientHandler build() throws SQLException
ArrowFlightSqlClientHandler
from the provided fields.SQLException
- on error.Copyright © 2023 The Apache Software Foundation. All rights reserved.