public final class RestClientConfiguration extends Object
RestClients.| 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()
RestOptions.CONNECTION_TIMEOUT. |
long |
getIdlenessTimeout()
RestOptions.IDLENESS_TIMEOUT. |
int |
getMaxContentLength()
Returns the max content length that the REST client endpoint could handle.
|
SSLHandlerFactory |
getSslHandlerFactory()
Returns the
SSLEngine that the REST client endpoint should use. |
@Nullable public SSLHandlerFactory getSslHandlerFactory()
SSLEngine that the REST client endpoint should use.public long getConnectionTimeout()
RestOptions.CONNECTION_TIMEOUT.public long getIdlenessTimeout()
RestOptions.IDLENESS_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–2020 The Apache Software Foundation. All rights reserved.