| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Timeout | |
| public static final ConnectionConfig | |
| private static final Timeout | |
| private final Timeout | |
| private final TimeValue | |
| private final TimeValue |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv | ConnectionConfig(final Timeout connectTimeout, final Timeout socketTimeout, final TimeValue validateAfterInactivity, final TimeValue timeToLive)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ConnectionConfig | |
| public static ConnectionConfig. | |
| public static ConnectionConfig. | |
| public Timeout | |
| public Timeout | |
| public TimeValue | |
| public TimeValue | |
| public String |
| connectTimeout | back to summary |
|---|---|
| private final Timeout connectTimeout | |
| DEFAULT | back to summary |
|---|---|
| public static final ConnectionConfig DEFAULT | |
| DEFAULT_CONNECT_TIMEOUT | back to summary |
|---|---|
| private static final Timeout DEFAULT_CONNECT_TIMEOUT | |
| socketTimeout | back to summary |
|---|---|
| private final Timeout socketTimeout | |
| timeToLive | back to summary |
|---|---|
| private final TimeValue timeToLive | |
| validateAfterInactivity | back to summary |
|---|---|
| private final TimeValue validateAfterInactivity | |
| ConnectionConfig | back to summary |
|---|---|
| protected ConnectionConfig() Intended for CDI compatibility | |
| ConnectionConfig | back to summary |
|---|---|
| pack-priv ConnectionConfig(final Timeout connectTimeout, final Timeout socketTimeout, final TimeValue validateAfterInactivity, final TimeValue timeToLive) | |
| clone | back to summary |
|---|---|
| protected ConnectionConfig clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| copy | back to summary |
|---|---|
| public static ConnectionConfig. | |
| custom | back to summary |
|---|---|
| public static ConnectionConfig. | |
| getConnectTimeout | back to summary |
|---|---|
public Timeout getConnectTimeout()
| |
| getSocketTimeout | back to summary |
|---|---|
public Timeout getSocketTimeout()
| |
| getTimeToLive | back to summary |
|---|---|
public TimeValue getTimeToLive()
| |
| getValidateAfterInactivity | back to summary |
|---|---|
| public TimeValue getValidateAfterInactivity() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private Timeout | |
| private Timeout | |
| private TimeValue | |
| private TimeValue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ConnectionConfig | |
| public ConnectionConfig. | setConnectTimeout(final Timeout connectTimeout)
Determines the timeout until a new connection is fully established. |
| public ConnectionConfig. | |
| public ConnectionConfig. | |
| public ConnectionConfig. | Returns: the default socket timeout value for I/O operations.Determines the default socket timeout value for I/O operations. |
| public ConnectionConfig. | setTimeToLive(final TimeValue timeToLive)
Defines the total span of time connections can be kept alive or execute requests. |
| public ConnectionConfig. | |
| public ConnectionConfig. | setValidateAfterInactivity(final TimeValue validateAfterInactivity)
Defines period of inactivity after which persistent connections must be re-validated prior to being leased to the consumer. |
| public ConnectionConfig. |
| connectTimeout | back to summary |
|---|---|
| private Timeout connectTimeout | |
| socketTimeout | back to summary |
|---|---|
| private Timeout socketTimeout | |
| timeToLive | back to summary |
|---|---|
| private TimeValue timeToLive | |
| validateAfterInactivity | back to summary |
|---|---|
| private TimeValue validateAfterInactivity | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| public ConnectionConfig build() | |
| setConnectTimeout | back to summary |
|---|---|
| public ConnectionConfig. Determines the timeout until a new connection is fully established. A timeout value of zero is interpreted as an infinite timeout. Default: 3 minutes | |
| setConnectTimeout | back to summary |
|---|---|
public ConnectionConfig.
| |
| setSocketTimeout | back to summary |
|---|---|
public ConnectionConfig.
| |
| setSocketTimeout | back to summary |
|---|---|
| public ConnectionConfig. Determines the default socket timeout value for I/O operations.
Default:
| |
| setTimeToLive | back to summary |
|---|---|
| public ConnectionConfig. Defines the total span of time connections can be kept alive or execute requests.
Default: | |
| setTimeToLive | back to summary |
|---|---|
public ConnectionConfig.
| |
| setValidateAfterInactivity | back to summary |
|---|---|
| public ConnectionConfig. Defines period of inactivity after which persistent connections must be re-validated prior to being leased to the consumer. Negative values passed to this method disable connection validation.
Default: | |
| setValidateAfterInactivity | back to summary |
|---|---|
| public ConnectionConfig. | |