Package org.apache.flink.runtime.rest
Class RestClientConfiguration
java.lang.Object
org.apache.flink.runtime.rest.RestClientConfiguration
A configuration object for
RestClients.-
Method Summary
Modifier and TypeMethodDescriptionstatic RestClientConfigurationfromConfiguration(org.apache.flink.configuration.Configuration config) Creates and returns a newRestClientConfigurationfrom the givenConfiguration.long.long.intReturns the max content length that the REST client endpoint could handle.Returns theSSLEnginethat the REST client endpoint should use.
-
Method Details
-
getSslHandlerFactory
Returns theSSLEnginethat 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 newRestClientConfigurationfrom the givenConfiguration.- 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
-