Package org.apache.flink.runtime.rest
Class RestClientConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.rest.RestClientConfiguration
-
public final class RestClientConfiguration extends Object
A configuration object forRestClients.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestClientConfigurationfromConfiguration(org.apache.flink.configuration.Configuration config)Creates and returns a newRestClientConfigurationfrom the givenConfiguration.longgetConnectionTimeout(){@see RestOptions#CONNECTION_TIMEOUT}.longgetIdlenessTimeout(){@see RestOptions#IDLENESS_TIMEOUT}.intgetMaxContentLength()Returns the max content length that the REST client endpoint could handle.SSLHandlerFactorygetSslHandlerFactory()Returns theSSLEnginethat the REST client endpoint should use.
-
-
-
Method Detail
-
getSslHandlerFactory
@Nullable public SSLHandlerFactory 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()
{@see RestOptions#CONNECTION_TIMEOUT}.
-
getIdlenessTimeout
public long getIdlenessTimeout()
{@see RestOptions#IDLENESS_TIMEOUT}.
-
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
-
-