public class ConsulClientOptions
extends io.vertx.ext.web.client.WebClientOptions
DEFAULT_EXPAND_OPTIONS, DEFAULT_FOLLOW_REDIRECTS, DEFAULT_USER_AGENT, DEFAULT_USER_AGENT_ENABLEDDEFAULT_ALPN_VERSIONS, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DECOMPRESSION_SUPPORTED, DEFAULT_DEFAULT_HOST, DEFAULT_DEFAULT_PORT, DEFAULT_FORCE_SNI, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE_WITH_PREFLIGHT_REQUEST, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_HTTP2_KEEP_ALIVE_TIMEOUT, DEFAULT_HTTP2_MAX_POOL_SIZE, DEFAULT_HTTP2_MULTIPLEXING_LIMIT, DEFAULT_KEEP_ALIVE, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_WAIT_QUEUE_SIZE, DEFAULT_MAX_WEBSOCKET_FRAME_SIZE, DEFAULT_MAX_WEBSOCKET_MESSAGE_SIZE, DEFAULT_MAX_WEBSOCKETS, DEFAULT_NAME, DEFAULT_PIPELINING, DEFAULT_PIPELINING_LIMIT, DEFAULT_POOL_CLEANER_PERIOD, DEFAULT_POOL_EVENT_LOOP_SIZE, DEFAULT_PROTOCOL_VERSION, DEFAULT_SEND_UNMASKED_FRAMES, DEFAULT_SHARED, DEFAULT_TRACING_POLICY, DEFAULT_TRY_USE_COMPRESSION, DEFAULT_TRY_USE_PER_FRAME_WEBSOCKET_COMPRESSION, DEFAULT_TRY_USE_PER_MESSAGE_WEBSOCKET_COMPRESSION, DEFAULT_VERIFY_HOST, DEFAULT_WEBSOCKET_ALLOW_CLIENT_NO_CONTEXT, DEFAULT_WEBSOCKET_CLOSING_TIMEOUT, DEFAULT_WEBSOCKET_COMPRESSION_LEVEL, DEFAULT_WEBSOCKET_REQUEST_SERVER_NO_CONTEXTDEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALLDEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_READ_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_USE_ALPN, DEFAULT_WRITE_IDLE_TIMEOUT| Constructor and Description |
|---|
ConsulClientOptions()
Default constructor
|
ConsulClientOptions(ConsulClientOptions options)
Copy constructor
|
ConsulClientOptions(io.vertx.core.json.JsonObject json)
Constructor from JSON
|
ConsulClientOptions(URI uri)
Constructor from
URI. |
| Modifier and Type | Method and Description |
|---|---|
ConsulClientOptions |
addCrlPath(String crlPath)
Add a CRL path
|
ConsulClientOptions |
addCrlValue(io.vertx.core.buffer.Buffer crlValue)
Add a CRL value
|
ConsulClientOptions |
addEnabledCipherSuite(String suite)
Add an enabled cipher suite, appended to the ordered suites.
|
ConsulClientOptions |
addEnabledSecureTransportProtocol(String protocol)
Add an enabled SSL/TLS protocols, appended to the ordered protocols.
|
String |
getAclToken()
Get the ACL token.
|
String |
getDc()
Get the datacenter name
|
String |
getHost()
Get Consul host.
|
int |
getPort()
Get Consul HTTP API port.
|
long |
getTimeout()
Get timeout in milliseconds
|
ConsulClientOptions |
removeEnabledSecureTransportProtocol(String protocol) |
ConsulClientOptions |
setAclToken(String aclToken)
Set the ACL token.
|
ConsulClientOptions |
setAlpnVersions(List<io.vertx.core.http.HttpVersion> alpnVersions)
Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation.
|
ConsulClientOptions |
setConnectTimeout(int connectTimeout)
Set the connect timeout
|
ConsulClientOptions |
setDc(String dc)
Set the datacenter name.
|
ConsulClientOptions |
setDecoderInitialBufferSize(int decoderInitialBufferSize)
set to
initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. |
ConsulClientOptions |
setDefaultHost(String defaultHost)
Set the default host name to be used by this client in requests if none is provided when making the request.
|
ConsulClientOptions |
setDefaultPort(int defaultPort)
Set the default port to be used by this client in requests if none is provided when making the request.
|
ConsulClientOptions |
setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols) |
ConsulClientOptions |
setFollowRedirects(boolean followRedirects)
Configure the default behavior of the client to follow HTTP
30x redirections. |
ConsulClientOptions |
setForceSni(boolean forceSni)
By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting
this property to
true forces the server name to be always sent. |
ConsulClientOptions |
setHost(String host)
Set Consul host.
|
ConsulClientOptions |
setHttp2ClearTextUpgrade(boolean value)
Set to
true when an h2c connection is established using an HTTP/1.1 upgrade request, and false
when an h2c connection is established directly (with prior knowledge). |
ConsulClientOptions |
setHttp2ConnectionWindowSize(int http2ConnectionWindowSize)
Set the default HTTP/2 connection window size.
|
ConsulClientOptions |
setHttp2KeepAliveTimeout(int keepAliveTimeout) |
ConsulClientOptions |
setHttp2MaxPoolSize(int max)
Set the maximum pool size for HTTP/2 connections
|
ConsulClientOptions |
setHttp2MultiplexingLimit(int limit)
Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number
of streams the client can create for a connection.
|
ConsulClientOptions |
setIdleTimeout(int idleTimeout)
Set the idle timeout, in seconds.
|
ConsulClientOptions |
setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
Set the idle timeout unit.
|
ConsulClientOptions |
setInitialSettings(io.vertx.core.http.Http2Settings settings)
Set the HTTP/2 connection settings immediately sent by to the server when the client connects.
|
ConsulClientOptions |
setJdkSslEngineOptions(io.vertx.core.net.JdkSSLEngineOptions sslEngineOptions) |
ConsulClientOptions |
setKeepAlive(boolean keepAlive)
Set whether keep alive is enabled on the client
|
ConsulClientOptions |
setKeepAliveTimeout(int keepAliveTimeout) |
ConsulClientOptions |
setKeyCertOptions(io.vertx.core.net.KeyCertOptions options)
Set the key/cert options.
|
ConsulClientOptions |
setKeyStoreOptions(io.vertx.core.net.JksOptions options)
Set the key/cert options in jks format, aka Java keystore.
|
ConsulClientOptions |
setLocalAddress(String localAddress)
Set the local interface to bind for network connections.
|
ConsulClientOptions |
setLogActivity(boolean logActivity)
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
|
ConsulClientOptions |
setMaxChunkSize(int maxChunkSize)
Set the maximum HTTP chunk size
|
ConsulClientOptions |
setMaxHeaderSize(int maxHeaderSize)
Set the maximum length of all headers for HTTP/1.x .
|
ConsulClientOptions |
setMaxInitialLineLength(int maxInitialLineLength)
Set the maximum length of the initial line for HTTP/1.x (e.g.
|
ConsulClientOptions |
setMaxPoolSize(int maxPoolSize)
Set the maximum pool size for connections
|
ConsulClientOptions |
setMaxRedirects(int maxRedirects)
Set to
maxRedirects the maximum number of redirection a request can follow. |
ConsulClientOptions |
setMaxWaitQueueSize(int maxWaitQueueSize)
Set the maximum requests allowed in the wait queue, any requests beyond the max size will result in
a ConnectionPoolTooBusyException.
|
ConsulClientOptions |
setMaxWebSocketFrameSize(int maxWebsocketFrameSize)
Set the max websocket frame size
|
ConsulClientOptions |
setMaxWebSocketMessageSize(int maxWebsocketMessageSize)
Set the max websocket message size
|
ConsulClientOptions |
setMetricsName(String metricsName)
Set the metrics name identifying the reported metrics, useful for grouping metrics
with the same name.
|
ConsulClientOptions |
setOpenSslEngineOptions(io.vertx.core.net.OpenSSLEngineOptions sslEngineOptions) |
ConsulClientOptions |
setPemKeyCertOptions(io.vertx.core.net.PemKeyCertOptions options)
Set the key/cert store options in pem format.
|
ConsulClientOptions |
setPemTrustOptions(io.vertx.core.net.PemTrustOptions pemTrustOptions)
Set the trust options.
|
ConsulClientOptions |
setPfxKeyCertOptions(io.vertx.core.net.PfxOptions options)
Set the key/cert options in pfx format.
|
ConsulClientOptions |
setPfxTrustOptions(io.vertx.core.net.PfxOptions options)
Set the trust options in pfx format
|
ConsulClientOptions |
setPipelining(boolean pipelining)
Set whether pipe-lining is enabled on the client
|
ConsulClientOptions |
setPipeliningLimit(int limit)
Set the limit of pending requests a pipe-lined HTTP/1 connection can send.
|
ConsulClientOptions |
setPoolCleanerPeriod(int poolCleanerPeriod) |
ConsulClientOptions |
setPort(int port)
Set Consul HTTP API port.
|
ConsulClientOptions |
setProtocolVersion(io.vertx.core.http.HttpVersion protocolVersion)
Set the protocol version.
|
ConsulClientOptions |
setProxyOptions(io.vertx.core.net.ProxyOptions proxyOptions)
Set proxy options for connections via CONNECT proxy (e.g.
|
ConsulClientOptions |
setReceiveBufferSize(int receiveBufferSize)
Set the TCP receive buffer size
|
ConsulClientOptions |
setReuseAddress(boolean reuseAddress)
Set the value of reuse address
|
ConsulClientOptions |
setReusePort(boolean reusePort)
Set the value of reuse port.
|
ConsulClientOptions |
setSendBufferSize(int sendBufferSize)
Set the TCP send buffer size
|
ConsulClientOptions |
setSendUnmaskedFrames(boolean sendUnmaskedFrames)
Set true when the client wants to skip frame masking.
|
ConsulClientOptions |
setSoLinger(int soLinger)
Set whether SO_linger keep alive is enabled
|
ConsulClientOptions |
setSsl(boolean ssl)
Set whether SSL/TLS is enabled
|
ConsulClientOptions |
setSslEngineOptions(io.vertx.core.net.SSLEngineOptions sslEngineOptions)
Set to use SSL engine implementation to use.
|
ConsulClientOptions |
setSslHandshakeTimeout(long sslHandshakeTimeout) |
ConsulClientOptions |
setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit) |
ConsulClientOptions |
setTcpCork(boolean tcpCork)
Enable the
TCP_CORK option - only with linux native transport. |
ConsulClientOptions |
setTcpFastOpen(boolean tcpFastOpen)
Enable the
TCP_FASTOPEN option - only with linux native transport. |
ConsulClientOptions |
setTcpKeepAlive(boolean tcpKeepAlive)
Set whether TCP keep alive is enabled
|
ConsulClientOptions |
setTcpNoDelay(boolean tcpNoDelay)
Set whether TCP no delay is enabled
|
ConsulClientOptions |
setTcpQuickAck(boolean tcpQuickAck)
Enable the
TCP_QUICKACK option - only with linux native transport. |
ConsulClientOptions |
setTimeout(long timeoutMs)
Sets the amount of time (in milliseconds) after which if the request does not return any data
within the timeout period an failure will be passed to the handler and the request will be closed.
|
ConsulClientOptions |
setTrafficClass(int trafficClass)
Set the value of traffic class
|
ConsulClientOptions |
setTrustAll(boolean trustAll)
Set whether all server certificates should be trusted
|
ConsulClientOptions |
setTrustOptions(io.vertx.core.net.TrustOptions options)
Set the trust options.
|
ConsulClientOptions |
setTrustStoreOptions(io.vertx.core.net.JksOptions options)
Set the trust options in jks format, aka Java truststore
|
ConsulClientOptions |
setTryUseCompression(boolean tryUseCompression)
Set whether compression is enabled
|
ConsulClientOptions |
setTryUsePerMessageWebSocketCompression(boolean offer) |
ConsulClientOptions |
setUseAlpn(boolean useAlpn)
Set the ALPN usage.
|
ConsulClientOptions |
setUserAgent(String userAgent)
Sets the Web Client user agent header.
|
ConsulClientOptions |
setUserAgentEnabled(boolean userAgentEnabled)
Sets whether the Web Client should send a user agent header.
|
ConsulClientOptions |
setVerifyHost(boolean verifyHost)
Set whether hostname verification is enabled
|
ConsulClientOptions |
setWebSocketCompressionAllowClientNoContext(boolean offer) |
ConsulClientOptions |
setWebSocketCompressionLevel(int compressionLevel) |
ConsulClientOptions |
setWebSocketCompressionRequestServerNoContext(boolean offer) |
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
addNonProxyHost, getTemplateExpandOptions, getUserAgent, isFollowRedirects, isUserAgentEnabled, loadUserAgent, setDecompressionSupported, setMaxWebSockets, setName, setNonProxyHosts, setPoolEventLoopSize, setReadIdleTimeout, setShared, setTemplateExpandOptions, setTracingPolicy, setTryUsePerFrameWebSocketCompression, setWebSocketClosingTimeout, setWriteIdleTimeoutgetAlpnVersions, getDecoderInitialBufferSize, getDefaultHost, getDefaultPort, getHttp2ConnectionWindowSize, getHttp2KeepAliveTimeout, getHttp2MaxPoolSize, getHttp2MultiplexingLimit, getInitialSettings, getKeepAliveTimeout, getMaxChunkSize, getMaxHeaderSize, getMaxInitialLineLength, getMaxPoolSize, getMaxRedirects, getMaxWaitQueueSize, getMaxWebSocketFrameSize, getMaxWebSocketMessageSize, getMaxWebSockets, getName, getPipeliningLimit, getPoolCleanerPeriod, getPoolEventLoopSize, getPoolOptions, getProtocolVersion, getTracingPolicy, getTryUsePerFrameWebSocketCompression, getTryUsePerMessageWebSocketCompression, getTryWebSocketDeflateFrameCompression, getWebSocketClosingTimeout, getWebSocketCompressionAllowClientNoContext, getWebSocketCompressionLevel, getWebSocketCompressionRequestServerNoContext, isDecompressionSupported, isForceSni, isHttp2ClearTextUpgrade, isHttp2ClearTextUpgradeWithPreflightRequest, isKeepAlive, isPipelining, isSendUnmaskedFrames, isShared, isTryUseCompression, isVerifyHost, removeEnabledCipherSuite, setActivityLogDataFormat, setHttp2ClearTextUpgradeWithPreflightRequest, setTcpUserTimeoutgetConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, getProxyOptions, isTrustAllgetCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getReadIdleTimeout, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getSslOptions, getTcpUserTimeout, getTrustOptions, getTrustStoreOptions, getWriteIdleTimeout, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpnpublic ConsulClientOptions()
public ConsulClientOptions(ConsulClientOptions options)
options - the one to copypublic ConsulClientOptions(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
toJson in class io.vertx.ext.web.client.WebClientOptionspublic String getHost()
public int getPort()
public String getAclToken()
public String getDc()
public long getTimeout()
public ConsulClientOptions setHost(String host)
host - consul hostpublic ConsulClientOptions setPort(int port)
port - Consul HTTP API portpublic ConsulClientOptions setAclToken(String aclToken)
aclToken - the ACL tokenpublic ConsulClientOptions setDc(String dc)
dc - the datacenter namepublic ConsulClientOptions setTimeout(long timeoutMs)
timeoutMs - timeout in millisecondspublic ConsulClientOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize in class io.vertx.ext.web.client.WebClientOptionssendBufferSize - the buffers size, in bytespublic ConsulClientOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in class io.vertx.ext.web.client.WebClientOptionsreceiveBufferSize - the buffers size, in bytespublic ConsulClientOptions setReuseAddress(boolean reuseAddress)
setReuseAddress in class io.vertx.ext.web.client.WebClientOptionsreuseAddress - the value of reuse addresspublic ConsulClientOptions setReusePort(boolean reusePort)
setReusePort in class io.vertx.ext.web.client.WebClientOptionsreusePort - the value of reuse portpublic ConsulClientOptions setTrafficClass(int trafficClass)
setTrafficClass in class io.vertx.ext.web.client.WebClientOptionstrafficClass - the value of traffic classpublic ConsulClientOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in class io.vertx.ext.web.client.WebClientOptionstcpNoDelay - true if TCP no delay is enabled (Nagle disabled)public ConsulClientOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive in class io.vertx.ext.web.client.WebClientOptionstcpKeepAlive - true if TCP keep alive is enabledpublic ConsulClientOptions setTcpCork(boolean tcpCork)
TCP_CORK option - only with linux native transport.setTcpCork in class io.vertx.ext.web.client.WebClientOptionstcpCork - the cork valuepublic ConsulClientOptions setTcpQuickAck(boolean tcpQuickAck)
TCP_QUICKACK option - only with linux native transport.setTcpQuickAck in class io.vertx.ext.web.client.WebClientOptionstcpQuickAck - the quick ack valuepublic ConsulClientOptions setTcpFastOpen(boolean tcpFastOpen)
TCP_FASTOPEN option - only with linux native transport.setTcpFastOpen in class io.vertx.ext.web.client.WebClientOptionstcpFastOpen - the fast open valuepublic ConsulClientOptions setSoLinger(int soLinger)
setSoLinger in class io.vertx.ext.web.client.WebClientOptionssoLinger - true if SO_linger is enabledpublic ConsulClientOptions setIdleTimeout(int idleTimeout)
setIdleTimeout in class io.vertx.ext.web.client.WebClientOptionsidleTimeout - the timeout, in secondspublic ConsulClientOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
setIdleTimeoutUnit in class io.vertx.ext.web.client.WebClientOptionsidleTimeoutUnit - specify time unit.public ConsulClientOptions setSsl(boolean ssl)
setSsl in class io.vertx.ext.web.client.WebClientOptionsssl - true if enabledpublic ConsulClientOptions setKeyCertOptions(io.vertx.core.net.KeyCertOptions options)
setKeyCertOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the key store optionspublic ConsulClientOptions setKeyStoreOptions(io.vertx.core.net.JksOptions options)
setKeyStoreOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the key store in jks formatpublic ConsulClientOptions setPfxKeyCertOptions(io.vertx.core.net.PfxOptions options)
setPfxKeyCertOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the key cert options in pfx formatpublic ConsulClientOptions setTrustOptions(io.vertx.core.net.TrustOptions options)
setTrustOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the trust optionspublic ConsulClientOptions setPemKeyCertOptions(io.vertx.core.net.PemKeyCertOptions options)
setPemKeyCertOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the options in pem formatpublic ConsulClientOptions setTrustStoreOptions(io.vertx.core.net.JksOptions options)
setTrustStoreOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the trust options in jks formatpublic ConsulClientOptions setPfxTrustOptions(io.vertx.core.net.PfxOptions options)
setPfxTrustOptions in class io.vertx.ext.web.client.WebClientOptionsoptions - the trust options in pfx formatpublic ConsulClientOptions setTrustAll(boolean trustAll)
setTrustAll in class io.vertx.ext.web.client.WebClientOptionstrustAll - true if all should be trustedpublic ConsulClientOptions setPemTrustOptions(io.vertx.core.net.PemTrustOptions pemTrustOptions)
setPemTrustOptions in class io.vertx.ext.web.client.WebClientOptionspemTrustOptions - the trust optionspublic ConsulClientOptions setConnectTimeout(int connectTimeout)
setConnectTimeout in class io.vertx.ext.web.client.WebClientOptionsconnectTimeout - connect timeout, in mspublic ConsulClientOptions setMaxPoolSize(int maxPoolSize)
setMaxPoolSize in class io.vertx.ext.web.client.WebClientOptionsmaxPoolSize - the maximum pool sizepublic ConsulClientOptions setHttp2MultiplexingLimit(int limit)
-1 means to use the value sent by the server's initial settings.
-1 is the default value.setHttp2MultiplexingLimit in class io.vertx.ext.web.client.WebClientOptionslimit - the maximum concurrent for an HTTP/2 connectionpublic ConsulClientOptions setHttp2MaxPoolSize(int max)
setHttp2MaxPoolSize in class io.vertx.ext.web.client.WebClientOptionsmax - the maximum pool sizepublic ConsulClientOptions setHttp2ConnectionWindowSize(int http2ConnectionWindowSize)
Http2Settings.getInitialWindowSize(), so the connection window size
is greater than for its streams, in order the data throughput.
A value of -1 reuses the initial window size setting.setHttp2ConnectionWindowSize in class io.vertx.ext.web.client.WebClientOptionshttp2ConnectionWindowSize - the window size applied to the connectionpublic ConsulClientOptions setKeepAlive(boolean keepAlive)
setKeepAlive in class io.vertx.ext.web.client.WebClientOptionskeepAlive - true if enabledpublic ConsulClientOptions setPipelining(boolean pipelining)
setPipelining in class io.vertx.ext.web.client.WebClientOptionspipelining - true if enabledpublic ConsulClientOptions setPipeliningLimit(int limit)
setPipeliningLimit in class io.vertx.ext.web.client.WebClientOptionslimit - the limit of pending requestspublic ConsulClientOptions setVerifyHost(boolean verifyHost)
setVerifyHost in class io.vertx.ext.web.client.WebClientOptionsverifyHost - true if enabledpublic ConsulClientOptions setTryUseCompression(boolean tryUseCompression)
setTryUseCompression in class io.vertx.ext.web.client.WebClientOptionstryUseCompression - true if enabledpublic ConsulClientOptions setSendUnmaskedFrames(boolean sendUnmaskedFrames)
setSendUnmaskedFrames in class io.vertx.ext.web.client.WebClientOptionssendUnmaskedFrames - true if enabledpublic ConsulClientOptions setMaxWebSocketFrameSize(int maxWebsocketFrameSize)
setMaxWebSocketFrameSize in class io.vertx.ext.web.client.WebClientOptionsmaxWebsocketFrameSize - the max frame size, in bytespublic ConsulClientOptions setDefaultHost(String defaultHost)
setDefaultHost in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setDefaultPort(int defaultPort)
setDefaultPort in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setProtocolVersion(io.vertx.core.http.HttpVersion protocolVersion)
setProtocolVersion in class io.vertx.ext.web.client.WebClientOptionsprotocolVersion - the protocol versionpublic ConsulClientOptions setMaxChunkSize(int maxChunkSize)
setMaxChunkSize in class io.vertx.ext.web.client.WebClientOptionsmaxChunkSize - the maximum chunk sizepublic ConsulClientOptions setMaxInitialLineLength(int maxInitialLineLength)
"HTTP/1.1 200 OK")setMaxInitialLineLength in class io.vertx.ext.web.client.WebClientOptionsmaxInitialLineLength - the new maximum initial lengthpublic ConsulClientOptions setMaxHeaderSize(int maxHeaderSize)
setMaxHeaderSize in class io.vertx.ext.web.client.WebClientOptionsmaxHeaderSize - the new maximum lengthpublic ConsulClientOptions setMaxWaitQueueSize(int maxWaitQueueSize)
setMaxWaitQueueSize in class io.vertx.ext.web.client.WebClientOptionsmaxWaitQueueSize - the maximum number of waiting requestspublic ConsulClientOptions setInitialSettings(io.vertx.core.http.Http2Settings settings)
setInitialSettings in class io.vertx.ext.web.client.WebClientOptionssettings - the settings valuepublic ConsulClientOptions setUseAlpn(boolean useAlpn)
setUseAlpn in class io.vertx.ext.web.client.WebClientOptionsuseAlpn - true when Application-Layer Protocol Negotiation should be usedpublic ConsulClientOptions setSslEngineOptions(io.vertx.core.net.SSLEngineOptions sslEngineOptions)
setSslEngineOptions in class io.vertx.ext.web.client.WebClientOptionssslEngineOptions - the ssl engine to usepublic ConsulClientOptions setJdkSslEngineOptions(io.vertx.core.net.JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setOpenSslEngineOptions(io.vertx.core.net.OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setAlpnVersions(List<io.vertx.core.http.HttpVersion> alpnVersions)
setProtocolVersion(io.vertx.core.http.HttpVersion):
HttpVersion.HTTP_2: [ "h2", "http/1.1" ]HttpClientOptions.getProtocolVersion()]setAlpnVersions in class io.vertx.ext.web.client.WebClientOptionsalpnVersions - the versionspublic ConsulClientOptions setHttp2ClearTextUpgrade(boolean value)
true when an h2c connection is established using an HTTP/1.1 upgrade request, and false
when an h2c connection is established directly (with prior knowledge).setHttp2ClearTextUpgrade in class io.vertx.ext.web.client.WebClientOptionsvalue - the upgrade valuepublic ConsulClientOptions setMaxRedirects(int maxRedirects)
maxRedirects the maximum number of redirection a request can follow.setMaxRedirects in class io.vertx.ext.web.client.WebClientOptionsmaxRedirects - the maximum number of redirectionpublic ConsulClientOptions setMetricsName(String metricsName)
setMetricsName in class io.vertx.ext.web.client.WebClientOptionsmetricsName - the metrics namepublic ConsulClientOptions setProxyOptions(io.vertx.core.net.ProxyOptions proxyOptions)
setProxyOptions in class io.vertx.ext.web.client.WebClientOptionsproxyOptions - proxy options objectpublic ConsulClientOptions setLocalAddress(String localAddress)
setLocalAddress in class io.vertx.ext.web.client.WebClientOptionslocalAddress - the local addresspublic ConsulClientOptions setLogActivity(boolean logActivity)
setLogActivity in class io.vertx.ext.web.client.WebClientOptionslogActivity - true for logging the network activitypublic ConsulClientOptions setUserAgentEnabled(boolean userAgentEnabled)
setUserAgentEnabled in class io.vertx.ext.web.client.WebClientOptionsuserAgentEnabled - true to send a user agent header, false otherwisepublic ConsulClientOptions setUserAgent(String userAgent)
setUserAgent in class io.vertx.ext.web.client.WebClientOptionsuserAgent - user agent header valuepublic ConsulClientOptions setFollowRedirects(boolean followRedirects)
30x redirections.setFollowRedirects in class io.vertx.ext.web.client.WebClientOptionsfollowRedirects - true when a redirect is followedpublic ConsulClientOptions setMaxWebSocketMessageSize(int maxWebsocketMessageSize)
setMaxWebSocketMessageSize in class io.vertx.ext.web.client.WebClientOptionsmaxWebsocketMessageSize - the max message size, in bytespublic ConsulClientOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite in class io.vertx.ext.web.client.WebClientOptionssuite - the suitepublic ConsulClientOptions addEnabledSecureTransportProtocol(String protocol)
addEnabledSecureTransportProtocol in class io.vertx.ext.web.client.WebClientOptionsprotocol - the SSL/TLS protocol do enabledpublic ConsulClientOptions addCrlPath(String crlPath) throws NullPointerException
addCrlPath in class io.vertx.ext.web.client.WebClientOptionscrlPath - the pathNullPointerExceptionpublic ConsulClientOptions addCrlValue(io.vertx.core.buffer.Buffer crlValue) throws NullPointerException
addCrlValue in class io.vertx.ext.web.client.WebClientOptionscrlValue - the valueNullPointerExceptionpublic ConsulClientOptions setForceSni(boolean forceSni)
true forces the server name to be always sent.setForceSni in class io.vertx.ext.web.client.WebClientOptionsforceSni - true when the client should always use SNI on TLS/SSL connectionspublic ConsulClientOptions setDecoderInitialBufferSize(int decoderInitialBufferSize)
initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder.setDecoderInitialBufferSize in class io.vertx.ext.web.client.WebClientOptionsdecoderInitialBufferSize - the initial buffer sizepublic ConsulClientOptions removeEnabledSecureTransportProtocol(String protocol)
removeEnabledSecureTransportProtocol in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setHttp2KeepAliveTimeout(int keepAliveTimeout)
setHttp2KeepAliveTimeout in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setKeepAliveTimeout(int keepAliveTimeout)
setKeepAliveTimeout in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setPoolCleanerPeriod(int poolCleanerPeriod)
setPoolCleanerPeriod in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
setEnabledSecureTransportProtocols in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
setSslHandshakeTimeout in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
setSslHandshakeTimeoutUnit in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setTryUsePerMessageWebSocketCompression(boolean offer)
setTryUsePerMessageWebSocketCompression in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setWebSocketCompressionLevel(int compressionLevel)
setWebSocketCompressionLevel in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setWebSocketCompressionAllowClientNoContext(boolean offer)
setWebSocketCompressionAllowClientNoContext in class io.vertx.ext.web.client.WebClientOptionspublic ConsulClientOptions setWebSocketCompressionRequestServerNoContext(boolean offer)
setWebSocketCompressionRequestServerNoContext in class io.vertx.ext.web.client.WebClientOptionsCopyright © 2024 Eclipse. All rights reserved.