Class ClientConfig

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

@Immutable public abstract class ClientConfig extends Object
The client configuration encapsulates the configuration to created a ManagedChannel.
  • Field Details

    • DEFAULT_MAX_INBOUND_MESSAGE_SIZE

      public static final int DEFAULT_MAX_INBOUND_MESSAGE_SIZE
      See Also:
  • Constructor Details

    • ClientConfig

      public ClientConfig()
  • Method Details

    • builder

      public static ClientConfig.Builder builder()
    • target

      public abstract DeephavenTarget target()
      The target.
    • ssl

      public abstract Optional<SSLConfig> ssl()
      The SSL configuration. Only relevant if target() is secure.
    • userAgent

      public abstract Optional<String> userAgent()
      The user-agent.
      See Also:
    • overrideAuthority

      public abstract Optional<String> overrideAuthority()
      The overridden authority.
    • extraHeaders

      public abstract Map<String,String> extraHeaders()
      The extra headers.
    • maxInboundMessageSize

      @Default public int maxInboundMessageSize()
      The maximum inbound message size. Defaults to 100MiB.
    • acceptCompression

      @Default public Set<String> acceptCompression()
      The compression types this client accepts, which it lists in its grpc-accept-encoding header, and so allows the server to compress responses with. Any of the supported types; defaults to all of them. The server only compresses tables that allow it, and picks the type from the table's own list. An empty set requests uncompressed responses.
    • requestCompression

      public abstract Optional<String> requestCompression()
      The compression type this client compresses its DoPut uploads with, including the rows it adds to input tables: any of the supported types. Unset by default, so uploads are sent uncompressed. The server must be able to decode the type, or it fails the upload with UNIMPLEMENTED; every Deephaven server can decode gzip. Other requests are small, and are never compressed.
    • withSsl

      public abstract ClientConfig withSsl(SSLConfig ssl)
      Returns or creates a client config with ssl() as ssl.
    • withUserAgent

      public abstract ClientConfig withUserAgent(String userAgent)
      Returns or creates a client config with userAgent() as userAgent.