Class ClientResolverConfig
java.lang.Object
io.vertx.core.http.ClientResolverConfig
Configuration of a client resolver, the resolver translates a logical address into a socket address and a port.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetKeepAliveTimeout(Duration amount) Set theamountof time after which an unused entry is evicted.setMaxKeepAlive(Duration amount) Set the maximumamountof time after which an entry is evicted.
-
Field Details
-
DEFAULT_KEEP_ALIVE_TIMEOUT
The default keep alive timeout :1minute -
DEFAULT_MAX_KEEP_ALIVE
The default max keep alive :5minute
-
-
Constructor Details
-
ClientResolverConfig
public ClientResolverConfig() -
ClientResolverConfig
-
-
Method Details
-
getKeepAliveTimeout
- Returns:
- the amoutn of time after which an unused entry is evicted
-
setKeepAliveTimeout
Set theamountof time after which an unused entry is evicted.- Parameters:
amount- the amount of time- Returns:
- a reference to this, so the API can be used fluently
-
getMaxKeepAlive
- Returns:
- the maximum amount of time after which an entry is evicted
-
setMaxKeepAlive
Set the maximumamountof time after which an entry is evicted.- Parameters:
amount- the amount of time- Returns:
- a reference to this, so the API can be used fluently
-