public final class RestClientConfiguration extends Object
RestClient
s.Modifier and Type | Method and Description |
---|---|
static RestClientConfiguration |
fromConfiguration(org.apache.flink.configuration.Configuration config)
Creates and returns a new
RestClientConfiguration from the given Configuration . |
long |
getConnectionTimeout() |
int |
getMaxContentLength()
Returns the max content length that the REST client endpoint could handle.
|
SSLEngineFactory |
getSslEngineFactory()
Returns the
SSLEngine that the REST client endpoint should use. |
@Nullable public SSLEngineFactory getSslEngineFactory()
SSLEngine
that the REST client endpoint should use.public long getConnectionTimeout()
RestOptions.CONNECTION_TIMEOUT
public int getMaxContentLength()
public static RestClientConfiguration fromConfiguration(org.apache.flink.configuration.Configuration config) throws org.apache.flink.util.ConfigurationException
RestClientConfiguration
from the given Configuration
.config
- configuration from which the REST client endpoint configuration should be created fromorg.apache.flink.util.ConfigurationException
- if SSL was configured incorrectlyCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.