java.lang.Object
org.apache.arrow.flight.grpc.NettyClientBuilder
A wrapper around gRPC's Netty builder.
It is recommended to use the Netty channel builder directly with FlightGrpcUtils.createFlightClient(BufferAllocator, ManagedChannel).
However, this class provides an adapter that implements the existing Flight-specific builder
interface but allows usage of the Netty builder as well.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BufferAllocatorprotected InputStreamprotected InputStreamprotected booleanprotected Locationprotected intprotected List<FlightClientMiddleware.Factory>protected Stringprotected InputStreamprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocator(BufferAllocator allocator) io.grpc.netty.NettyChannelBuilderbuild()Create the client from this builder.clientCertificate(InputStream clientCertificate, InputStream clientKey) Set the trusted TLS certificates.intercept(FlightClientMiddleware.Factory factory) maxInboundMessageSize(int maxSize) Set the maximum inbound message size.overrideHostname(String hostname) Override the hostname checked for TLS.trustedCertificates(InputStream stream) Set the trusted TLS certificates.useTls()Force the client to connect over TLS.verifyServer(boolean verifyServer)
-
Field Details
-
allocator
-
location
-
forceTls
protected boolean forceTls -
maxInboundMessageSize
protected int maxInboundMessageSize -
trustedCertificates
-
clientCertificate
-
clientKey
-
overrideHostname
-
middleware
-
verifyServer
protected boolean verifyServer
-
-
Constructor Details
-
NettyClientBuilder
public NettyClientBuilder() -
NettyClientBuilder
-
-
Method Details
-
useTls
Force the client to connect over TLS. -
overrideHostname
Override the hostname checked for TLS. Use with caution in production. -
maxInboundMessageSize
Set the maximum inbound message size. -
trustedCertificates
Set the trusted TLS certificates. -
clientCertificate
Set the trusted TLS certificates. -
allocator
-
allocator
-
location
-
middleware
-
intercept
-
verifyServer
-
build
public io.grpc.netty.NettyChannelBuilder build()Create the client from this builder.
-