public final class NettyRequestReplySpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NettyRequestReplySpec.Timeouts
This is a copy of DefaultHttpRequestReplyClientSpec.Timeouts, to
ease the migration from the
DefaultHttpRequestReplyClientFactory . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALL_TIMEOUT_PROPERTY |
java.time.Duration |
callTimeout |
static java.lang.String |
CLIENT_CERT_PROPERTY |
static java.lang.String |
CLIENT_KEY_PASSWORD_PROPERTY |
static java.lang.String |
CLIENT_KEY_PROPERTY |
static java.lang.String |
CONNECT_TIMEOUT_PROPERTY |
static java.lang.String |
CONNECTION_POOL_MAX_SIZE_PROPERTY |
int |
connectionPoolMaxSize |
java.time.Duration |
connectTimeout |
static java.time.Duration |
DEFAULT_CALL_TIMEOUT |
static java.time.Duration |
DEFAULT_CONNECT_TIMEOUT |
static int |
DEFAULT_CONNECTION_POOL_MAX_SIZE |
static int |
DEFAULT_MAX_REQUEST_OR_RESPONSE_SIZE_IN_BYTES |
static java.time.Duration |
DEFAULT_POOLED_CONNECTION_TTL |
static java.lang.String |
MAX_REQUEST_OR_RESPONSE_SIZE_IN_BYTES_PROPERTY |
int |
maxRequestOrResponseSizeInBytes |
static java.lang.String |
POOLED_CONNECTION_TTL_PROPERTY |
java.time.Duration |
pooledConnectionTTL |
static java.lang.String |
TIMEOUTS_PROPERTY |
static java.lang.String |
TRUST_CA_CERTS_PROPERTY |
Constructor and Description |
---|
NettyRequestReplySpec(java.time.Duration callTimeout,
java.time.Duration connectTimeout,
java.time.Duration pooledConnectionTTL,
java.lang.Integer connectionPoolMaxSize,
java.lang.Integer maxRequestOrResponseSizeInBytes,
java.lang.String trustedCaCerts,
java.lang.String clientCerts,
java.lang.String clientKey,
java.lang.String clientKeyPassword,
NettyRequestReplySpec.Timeouts timeouts) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getClientCerts() |
java.util.Optional<java.lang.String> |
getClientKey() |
java.util.Optional<java.lang.String> |
getClientKeyPassword() |
java.util.Optional<java.lang.String> |
getTrustedCaCerts() |
public static final java.lang.String CALL_TIMEOUT_PROPERTY
public static final java.lang.String CONNECT_TIMEOUT_PROPERTY
public static final java.lang.String POOLED_CONNECTION_TTL_PROPERTY
public static final java.lang.String CONNECTION_POOL_MAX_SIZE_PROPERTY
public static final java.lang.String MAX_REQUEST_OR_RESPONSE_SIZE_IN_BYTES_PROPERTY
public static final java.lang.String TRUST_CA_CERTS_PROPERTY
public static final java.lang.String CLIENT_CERT_PROPERTY
public static final java.lang.String CLIENT_KEY_PROPERTY
public static final java.lang.String CLIENT_KEY_PASSWORD_PROPERTY
public static final java.lang.String TIMEOUTS_PROPERTY
@VisibleForTesting public static final java.time.Duration DEFAULT_CALL_TIMEOUT
@VisibleForTesting public static final java.time.Duration DEFAULT_CONNECT_TIMEOUT
@VisibleForTesting public static final java.time.Duration DEFAULT_POOLED_CONNECTION_TTL
@VisibleForTesting public static final int DEFAULT_CONNECTION_POOL_MAX_SIZE
@VisibleForTesting public static final int DEFAULT_MAX_REQUEST_OR_RESPONSE_SIZE_IN_BYTES
public final java.time.Duration callTimeout
public final java.time.Duration connectTimeout
public final java.time.Duration pooledConnectionTTL
public final int connectionPoolMaxSize
public final int maxRequestOrResponseSizeInBytes
public NettyRequestReplySpec(java.time.Duration callTimeout, java.time.Duration connectTimeout, java.time.Duration pooledConnectionTTL, java.lang.Integer connectionPoolMaxSize, java.lang.Integer maxRequestOrResponseSizeInBytes, java.lang.String trustedCaCerts, java.lang.String clientCerts, java.lang.String clientKey, java.lang.String clientKeyPassword, NettyRequestReplySpec.Timeouts timeouts)
public java.util.Optional<java.lang.String> getTrustedCaCerts()
public java.util.Optional<java.lang.String> getClientCerts()
public java.util.Optional<java.lang.String> getClientKey()
public java.util.Optional<java.lang.String> getClientKeyPassword()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.