Class RestClientConfiguration

java.lang.Object
org.apache.flink.runtime.rest.RestClientConfiguration

public final class RestClientConfiguration extends Object
A configuration object for RestClients.
  • Method Details

    • getSslHandlerFactory

      @Nullable public SSLHandlerFactory getSslHandlerFactory()
      Returns the SSLEngine that the REST client endpoint should use.
      Returns:
      SSLEngine that the REST client endpoint should use, or null if SSL was disabled
    • getConnectionTimeout

      public long getConnectionTimeout()
      .
    • getIdlenessTimeout

      public long getIdlenessTimeout()
      .
    • getMaxContentLength

      public int getMaxContentLength()
      Returns the max content length that the REST client endpoint could handle.
      Returns:
      max content length that the REST client endpoint could handle
    • fromConfiguration

      public static RestClientConfiguration fromConfiguration(org.apache.flink.configuration.Configuration config) throws org.apache.flink.util.ConfigurationException
      Creates and returns a new RestClientConfiguration from the given Configuration.
      Parameters:
      config - configuration from which the REST client endpoint configuration should be created from
      Returns:
      REST client endpoint configuration
      Throws:
      org.apache.flink.util.ConfigurationException - if SSL was configured incorrectly