public static final class FlightClient.Builder extends Object
Modifier and Type | Method and Description |
---|---|
FlightClient.Builder |
allocator(BufferAllocator allocator) |
FlightClient |
build()
Create the client from this builder.
|
FlightClient.Builder |
clientCertificate(InputStream clientCertificate,
InputStream clientKey)
Set the trusted TLS certificates.
|
FlightClient.Builder |
intercept(FlightClientMiddleware.Factory factory) |
FlightClient.Builder |
location(Location location) |
FlightClient.Builder |
maxInboundMessageSize(int maxSize)
Set the maximum inbound message size.
|
FlightClient.Builder |
overrideHostname(String hostname)
Override the hostname checked for TLS.
|
FlightClient.Builder |
trustedCertificates(InputStream stream)
Set the trusted TLS certificates.
|
FlightClient.Builder |
useTls()
Force the client to connect over TLS.
|
FlightClient.Builder |
verifyServer(boolean verifyServer) |
public FlightClient.Builder useTls()
public FlightClient.Builder overrideHostname(String hostname)
public FlightClient.Builder maxInboundMessageSize(int maxSize)
public FlightClient.Builder trustedCertificates(InputStream stream)
public FlightClient.Builder clientCertificate(InputStream clientCertificate, InputStream clientKey)
public FlightClient.Builder allocator(BufferAllocator allocator)
public FlightClient.Builder location(Location location)
public FlightClient.Builder intercept(FlightClientMiddleware.Factory factory)
public FlightClient.Builder verifyServer(boolean verifyServer)
public FlightClient build()
Copyright © 2023 The Apache Software Foundation. All rights reserved.