Class ChannelHelper

java.lang.Object
io.deephaven.client.impl.ChannelHelper

public final class ChannelHelper extends Object
  • Field Details

  • Constructor Details

    • ChannelHelper

      public ChannelHelper()
  • Method Details

    • channel

      public static io.grpc.ManagedChannel channel(ClientConfig clientConfig)
      Creates a ManagedChannel according to the clientConfig.

      If the target is secure, the channel will be configured with SSL. By default, the SSL configuration inherits configuration logic from TrustJdk and GrpcSslContexts.configure(SslContextBuilder). As mentioned there: "precisely what is set is permitted to change, so if an application requires particular settings it should override the options set".

      Parameters:
      clientConfig - the Deephaven client configuration
      Returns:
      the channel
    • channelBuilder

      public static io.grpc.ManagedChannelBuilder<?> channelBuilder(ClientConfig clientConfig)
      Initializes a ManagedChannelBuilder in the same fashion as channel(ClientConfig), but does not ManagedChannelBuilder.build() it.
      Parameters:
      clientConfig - the Deephaven client configuration
      Returns:
      the channel builder