HttpClientPool.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | PoolOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Constructor to create an options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | Returns: the max number of event-loop a pool will use, the default value is0 which implies
to reuse the current event-loop
|
| public int | |
| public int | |
| public int | |
| public PoolOptions | Returns: a reference to this, so the API can be used fluentlythe pool cleaner period cleanerPeriod)Set the connection pool cleaner period in milli seconds, a non positive value disables expiration checks and connections will remain in the pool until they are closed. |
| public PoolOptions | Returns: a reference to this, so the API can be used fluentlythe new size eventLoopSize)Set the number of event-loop the pool use. |
| public PoolOptions | Returns: a reference to this, so the API can be used fluentlythe maximum pool size http1MaxSize)Set the maximum pool size for HTTP/1.x connections |
| public PoolOptions | Returns: a reference to this, so the API can be used fluentlythe maximum pool size max)Set the maximum pool size for HTTP/2 connections |
| public PoolOptions | Returns: a reference to this, so the API can be used fluentlythe maximum number of waiting requests maxWaitQueueSize)Set the maximum requests allowed in the wait queue, any requests beyond the max size will result in a ConnectionPoolTooBusyException. |
| public JsonObject | toJson()
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| cleanerPeriod | back to summary |
|---|---|
| private int cleanerPeriod | |
| eventLoopSize | back to summary |
|---|---|
| private int eventLoopSize | |
| http1MaxSize | back to summary |
|---|---|
| private int http1MaxSize | |
| http2MaxSize | back to summary |
|---|---|
| private int http2MaxSize | |
| maxWaitQueueSize | back to summary |
|---|---|
| private int maxWaitQueueSize | |
| PoolOptions | back to summary |
|---|---|
| public PoolOptions() Default constructor | |
| PoolOptions | back to summary |
|---|---|
| public PoolOptions(PoolOptions other) Copy constructor
| |
| PoolOptions | back to summary |
|---|---|
| public PoolOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Constructor to create an options from JSON
| |
| getCleanerPeriod | back to summary |
|---|---|
public int getCleanerPeriod()
| |
| getEventLoopSize | back to summary |
|---|---|
public int getEventLoopSize()
| |
| getHttp1MaxSize | back to summary |
|---|---|
| public int getHttp1MaxSize() Get the maximum pool size for HTTP/1.x connections
| |
| getHttp2MaxSize | back to summary |
|---|---|
| public int getHttp2MaxSize() Get the maximum pool size for HTTP/2 connections
| |
| getMaxWaitQueueSize | back to summary |
|---|---|
| public int getMaxWaitQueueSize() Returns the maximum wait queue size
| |
| setCleanerPeriod | back to summary |
|---|---|
| public PoolOptions setCleanerPeriod(int cleanerPeriod) Set the connection pool cleaner period in milli seconds, a non positive value disables expiration checks and connections will remain in the pool until they are closed.
| |
| setEventLoopSize | back to summary |
|---|---|
| public PoolOptions setEventLoopSize(int eventLoopSize) Set the number of event-loop the pool use.
0.
| |
| setHttp1MaxSize | back to summary |
|---|---|
| public PoolOptions setHttp1MaxSize(int http1MaxSize) Set the maximum pool size for HTTP/1.x connections
| |
| setHttp2MaxSize | back to summary |
|---|---|
| public PoolOptions setHttp2MaxSize(int max) Set the maximum pool size for HTTP/2 connections
| |
| setMaxWaitQueueSize | back to summary |
|---|---|
| public PoolOptions setMaxWaitQueueSize(int maxWaitQueueSize) Set the maximum requests allowed in the wait queue, any requests beyond the max size will result in a ConnectionPoolTooBusyException. If the value is set to a negative number then the queue will be unbounded.
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. | |