public static final class DefaultConnectionContext.Builder extends Object
DefaultConnectionContext.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
DefaultConnectionContext.Builder |
addAllProblemHandlers(Iterable<? extends com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> elements)
Adds elements to
problemHandlers list. |
DefaultConnectionContext.Builder |
apiHost(String apiHost)
Initializes the value for the
apiHost attribute. |
DefaultConnectionContext |
build()
Builds a new
DefaultConnectionContext. |
DefaultConnectionContext.Builder |
cacheDuration(Duration cacheDuration)
Initializes the optional value
cacheDuration to cacheDuration. |
DefaultConnectionContext.Builder |
cacheDuration(Optional<? extends Duration> cacheDuration)
Initializes the optional value
cacheDuration to cacheDuration. |
DefaultConnectionContext.Builder |
connectionPoolSize(Integer connectionPoolSize)
Initializes the value for the
connectionPoolSize attribute. |
DefaultConnectionContext.Builder |
connectTimeout(Duration connectTimeout)
Initializes the optional value
connectTimeout to connectTimeout. |
DefaultConnectionContext.Builder |
connectTimeout(Optional<? extends Duration> connectTimeout)
Initializes the optional value
connectTimeout to connectTimeout. |
DefaultConnectionContext.Builder |
from(org.cloudfoundry.reactor._DefaultConnectionContext instance)
Copy abstract value type
_DefaultConnectionContext instance into builder. |
DefaultConnectionContext.Builder |
from(ConnectionContext instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.reactor.ConnectionContext instance. |
DefaultConnectionContext.Builder |
from(DefaultConnectionContext instance)
Fill a builder with attribute values from the provided
DefaultConnectionContext instance. |
DefaultConnectionContext.Builder |
httpClient(reactor.netty.http.client.HttpClient httpClient)
Initializes the value for the
httpClient attribute. |
DefaultConnectionContext.Builder |
keepAlive(boolean keepAlive)
Initializes the optional value
keepAlive to keepAlive. |
DefaultConnectionContext.Builder |
keepAlive(Optional<Boolean> keepAlive)
Initializes the optional value
keepAlive to keepAlive. |
DefaultConnectionContext.Builder |
objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Initializes the value for the
objectMapper attribute. |
DefaultConnectionContext.Builder |
port(int port)
Initializes the optional value
port to port. |
DefaultConnectionContext.Builder |
port(Optional<Integer> port)
Initializes the optional value
port to port. |
DefaultConnectionContext.Builder |
problemHandler(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler element)
Adds one element to
problemHandlers list. |
DefaultConnectionContext.Builder |
problemHandlers(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler... elements)
Adds elements to
problemHandlers list. |
DefaultConnectionContext.Builder |
problemHandlers(Iterable<? extends com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> elements)
Sets or replaces all elements for
problemHandlers list. |
DefaultConnectionContext.Builder |
proxyConfiguration(Optional<? extends ProxyConfiguration> proxyConfiguration)
Initializes the optional value
proxyConfiguration to proxyConfiguration. |
DefaultConnectionContext.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Initializes the optional value
proxyConfiguration to proxyConfiguration. |
DefaultConnectionContext.Builder |
rootProvider(RootProvider rootProvider)
Initializes the value for the
rootProvider attribute. |
DefaultConnectionContext.Builder |
secure(boolean secure)
Initializes the optional value
secure to secure. |
DefaultConnectionContext.Builder |
secure(Optional<Boolean> secure)
Initializes the optional value
secure to secure. |
DefaultConnectionContext.Builder |
skipSslValidation(boolean skipSslValidation)
Initializes the optional value
skipSslValidation to skipSslValidation. |
DefaultConnectionContext.Builder |
skipSslValidation(Optional<Boolean> skipSslValidation)
Initializes the optional value
skipSslValidation to skipSslValidation. |
DefaultConnectionContext.Builder |
sslCloseNotifyFlushTimeout(Duration sslCloseNotifyFlushTimeout)
Initializes the optional value
sslCloseNotifyFlushTimeout to sslCloseNotifyFlushTimeout. |
DefaultConnectionContext.Builder |
sslCloseNotifyFlushTimeout(Optional<? extends Duration> sslCloseNotifyFlushTimeout)
Initializes the optional value
sslCloseNotifyFlushTimeout to sslCloseNotifyFlushTimeout. |
DefaultConnectionContext.Builder |
sslCloseNotifyReadTimeout(Duration sslCloseNotifyReadTimeout)
Initializes the optional value
sslCloseNotifyReadTimeout to sslCloseNotifyReadTimeout. |
DefaultConnectionContext.Builder |
sslCloseNotifyReadTimeout(Optional<? extends Duration> sslCloseNotifyReadTimeout)
Initializes the optional value
sslCloseNotifyReadTimeout to sslCloseNotifyReadTimeout. |
DefaultConnectionContext.Builder |
sslHandshakeTimeout(Duration sslHandshakeTimeout)
Initializes the optional value
sslHandshakeTimeout to sslHandshakeTimeout. |
DefaultConnectionContext.Builder |
sslHandshakeTimeout(Optional<? extends Duration> sslHandshakeTimeout)
Initializes the optional value
sslHandshakeTimeout to sslHandshakeTimeout. |
DefaultConnectionContext.Builder |
threadPoolSize(Integer threadPoolSize)
Initializes the value for the
threadPoolSize attribute. |
public final DefaultConnectionContext.Builder from(DefaultConnectionContext instance)
DefaultConnectionContext instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder from(org.cloudfoundry.reactor._DefaultConnectionContext instance)
_DefaultConnectionContext instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder from(ConnectionContext instance)
org.cloudfoundry.reactor.ConnectionContext instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder cacheDuration(Duration cacheDuration)
cacheDuration to cacheDuration.cacheDuration - The value for cacheDurationthis builder for chained invocationpublic final DefaultConnectionContext.Builder cacheDuration(Optional<? extends Duration> cacheDuration)
cacheDuration to cacheDuration.cacheDuration - The value for cacheDurationthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder connectionPoolSize(Integer connectionPoolSize)
connectionPoolSize attribute.
If not set, this attribute will have a default value as returned by the initializer of connectionPoolSize.
connectionPoolSize - The value for connectionPoolSize (can be null)this builder for use in a chained invocationpublic final DefaultConnectionContext.Builder httpClient(reactor.netty.http.client.HttpClient httpClient)
httpClient attribute.
If not set, this attribute will have a default value as returned by the initializer of httpClient.
httpClient - The value for httpClientthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper attribute.
If not set, this attribute will have a default value as returned by the initializer of objectMapper.
objectMapper - The value for objectMapperthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder rootProvider(RootProvider rootProvider)
rootProvider attribute.
If not set, this attribute will have a default value as returned by the initializer of rootProvider.
rootProvider - The value for rootProviderthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder threadPoolSize(Integer threadPoolSize)
threadPoolSize attribute.
If not set, this attribute will have a default value as returned by the initializer of threadPoolSize.
threadPoolSize - The value for threadPoolSizethis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder apiHost(String apiHost)
apiHost attribute.apiHost - The value for apiHostthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder connectTimeout(Duration connectTimeout)
connectTimeout to connectTimeout.connectTimeout - The value for connectTimeoutthis builder for chained invocationpublic final DefaultConnectionContext.Builder connectTimeout(Optional<? extends Duration> connectTimeout)
connectTimeout to connectTimeout.connectTimeout - The value for connectTimeoutthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder keepAlive(boolean keepAlive)
keepAlive to keepAlive.keepAlive - The value for keepAlivethis builder for chained invocationpublic final DefaultConnectionContext.Builder keepAlive(Optional<Boolean> keepAlive)
keepAlive to keepAlive.keepAlive - The value for keepAlivethis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder port(int port)
port to port.port - The value for portthis builder for chained invocationpublic final DefaultConnectionContext.Builder port(Optional<Integer> port)
port to port.port - The value for portthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder problemHandler(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler element)
problemHandlers list.element - A problemHandlers elementthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder problemHandlers(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler... elements)
problemHandlers list.elements - An array of problemHandlers elementsthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder problemHandlers(Iterable<? extends com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> elements)
problemHandlers list.elements - An iterable of problemHandlers elementsthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder addAllProblemHandlers(Iterable<? extends com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> elements)
problemHandlers list.elements - An iterable of problemHandlers elementsthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
proxyConfiguration to proxyConfiguration.proxyConfiguration - The value for proxyConfigurationthis builder for chained invocationpublic final DefaultConnectionContext.Builder proxyConfiguration(Optional<? extends ProxyConfiguration> proxyConfiguration)
proxyConfiguration to proxyConfiguration.proxyConfiguration - The value for proxyConfigurationthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder secure(boolean secure)
secure to secure.secure - The value for securethis builder for chained invocationpublic final DefaultConnectionContext.Builder secure(Optional<Boolean> secure)
secure to secure.secure - The value for securethis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder skipSslValidation(boolean skipSslValidation)
skipSslValidation to skipSslValidation.skipSslValidation - The value for skipSslValidationthis builder for chained invocationpublic final DefaultConnectionContext.Builder skipSslValidation(Optional<Boolean> skipSslValidation)
skipSslValidation to skipSslValidation.skipSslValidation - The value for skipSslValidationthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder sslCloseNotifyFlushTimeout(Duration sslCloseNotifyFlushTimeout)
sslCloseNotifyFlushTimeout to sslCloseNotifyFlushTimeout.sslCloseNotifyFlushTimeout - The value for sslCloseNotifyFlushTimeoutthis builder for chained invocationpublic final DefaultConnectionContext.Builder sslCloseNotifyFlushTimeout(Optional<? extends Duration> sslCloseNotifyFlushTimeout)
sslCloseNotifyFlushTimeout to sslCloseNotifyFlushTimeout.sslCloseNotifyFlushTimeout - The value for sslCloseNotifyFlushTimeoutthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder sslCloseNotifyReadTimeout(Duration sslCloseNotifyReadTimeout)
sslCloseNotifyReadTimeout to sslCloseNotifyReadTimeout.sslCloseNotifyReadTimeout - The value for sslCloseNotifyReadTimeoutthis builder for chained invocationpublic final DefaultConnectionContext.Builder sslCloseNotifyReadTimeout(Optional<? extends Duration> sslCloseNotifyReadTimeout)
sslCloseNotifyReadTimeout to sslCloseNotifyReadTimeout.sslCloseNotifyReadTimeout - The value for sslCloseNotifyReadTimeoutthis builder for use in a chained invocationpublic final DefaultConnectionContext.Builder sslHandshakeTimeout(Duration sslHandshakeTimeout)
sslHandshakeTimeout to sslHandshakeTimeout.sslHandshakeTimeout - The value for sslHandshakeTimeoutthis builder for chained invocationpublic final DefaultConnectionContext.Builder sslHandshakeTimeout(Optional<? extends Duration> sslHandshakeTimeout)
sslHandshakeTimeout to sslHandshakeTimeout.sslHandshakeTimeout - The value for sslHandshakeTimeoutthis builder for use in a chained invocationpublic DefaultConnectionContext build()
DefaultConnectionContext.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.