Web client module configuration.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptiondefault long
The service cache time-to-live in milliseconds.The HTTP client configuration.default int
The least request load balancer bias.default int
The least request load balancer choice count.The default service load balancing strategy.default int
The min load factor load balancer bias.default int
The min load factor load balancer choice count.The Net client configuration.
-
Method Details
-
discovery_service_ttl
default long discovery_service_ttl()The service cache time-to-live in milliseconds.
Defaults to 30000L<A extends ServiceInstance,
B, C extends TrafficPolicy<A, B>>. - Returns:
- the service cache time-to-live
-
load_balancing_strategy
The default service load balancing strategy.
Defaults to
HttpTrafficPolicy.LoadBalancingStrategy.RANDOM
.- Returns:
- the default load balancing strategy
-
least_request_load_balancer_choice_count
default int least_request_load_balancer_choice_count()The least request load balancer choice count.
This only applies when
load_balancing_strategy()
is set toHttpTrafficPolicy.LoadBalancingStrategy.LEAST_REQUEST
.Defaults to 2.
- Returns:
- the least request load balancer choice count
-
least_request_load_balancer_bias
default int least_request_load_balancer_bias()The least request load balancer bias.
This only applies when
load_balancing_strategy()
is set toHttpTrafficPolicy.LoadBalancingStrategy.LEAST_REQUEST
.Defaults to 1.
- Returns:
- the least request load balancer bias
-
min_load_factor_load_balancer_choice_count
default int min_load_factor_load_balancer_choice_count()The min load factor load balancer choice count.
This only applies when
load_balancing_strategy()
is set toHttpTrafficPolicy.LoadBalancingStrategy.MIN_LOAD_FACTOR
.Defaults to 2.
- Returns:
- the min load factor load balancer choice count
-
min_load_factor_load_balancer_bias
default int min_load_factor_load_balancer_bias()The min load factor load balancer bias.
This only applies when
load_balancing_strategy()
is set toHttpTrafficPolicy.LoadBalancingStrategy.MIN_LOAD_FACTOR
.Defaults to 1.
- Returns:
- the min load factor load balancer bias
-
http_client
HttpClientConfiguration http_client()The HTTP client configuration.
Note that this configuration basically supersedes the configuration provided in the HTTP client module.
- Returns:
- the HTTP client configuration
-
net_client
NetClientConfiguration net_client()The Net client configuration.
Note that this configuration basically supersedes the configuration provided indirectly in the HTTP client module by the boot module.
- Returns:
- the Net client configuration
-