public class ApacheConnectionPoolConfig extends Object
The configurable parameters for a client’s connection pool
Modifier and Type | Class and Description |
---|---|
static class |
ApacheConnectionPoolConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static ApacheConnectionPoolConfig.Builder |
builder()
Creates a new
Builder used to construct a new ApacheConnectionPoolConfig object. |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
getDefaultMaxConnectionsPerRoute()
The default max number of connections per route.
|
int |
getTotalOpenConnections()
The max total number of connections.
|
org.apache.commons.lang3.tuple.Pair<Integer,TimeUnit> |
getTtl()
The time to live per connection.
|
int |
hashCode() |
static ApacheConnectionPoolConfig |
newDefault()
Creates a new default
ApacheConnectionPoolConfig . |
String |
toString() |
public static ApacheConnectionPoolConfig newDefault()
Creates a new default ApacheConnectionPoolConfig
.
public static ApacheConnectionPoolConfig.Builder builder()
Creates a new Builder
used to construct a new ApacheConnectionPoolConfig
object. *
public int getTotalOpenConnections()
The max total number of connections.
public int getDefaultMaxConnectionsPerRoute()
The default max number of connections per route.
public org.apache.commons.lang3.tuple.Pair<Integer,TimeUnit> getTtl()
The time to live per connection.
protected boolean canEqual(Object other)
Copyright © 2016–2019. All rights reserved.