
@Configuration
@ComponentScan @ComponentScan(basePackageClasses={net.trajano.ms.engine.internal.spring.SpringConfiguration.class,net.trajano.ms.engine.jaxrs.JaxRsRouter.class})
public class VertxConfig
extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
httpClientIdleTimeout
Idle timeout, in seconds.
|
private String |
httpClientProxyHost |
private String |
httpClientProxyPassword |
private int |
httpClientProxyPort
Uses the default value from
ProxyOptions.DEFAULT_PORT |
private io.vertx.core.net.ProxyType |
httpClientProxyType
Uses the default value from
ProxyOptions.DEFAULT_TYPE |
private String |
httpClientProxyUsername |
private int |
httpPort |
private long |
vertxWarningExceptionTime |
private int |
vertxWorkerPoolSize |
| Constructor and Description |
|---|
VertxConfig() |
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.dns.AddressResolverOptions |
addressResolverOptions()
DNS Address resolver options where the max queries is increased to 10 to
support more environments.
|
io.vertx.core.http.HttpClientOptions |
httpClientOptions() |
io.vertx.core.http.HttpServerOptions |
httpServerOptions() |
io.vertx.core.VertxOptions |
vertxOptions(io.vertx.core.dns.AddressResolverOptions addressResolverOptions) |
@Value(value="${http.client.idle_timeout:60}")
private int httpClientIdleTimeout
@Value(value="${http.client.proxy.host:#{null}}")
private String httpClientProxyHost
@Value(value="${http.client.proxy.password:#{null}}")
private String httpClientProxyPassword
@Value(value="${http.client.proxy.port:3128}")
private int httpClientProxyPort
ProxyOptions.DEFAULT_PORT@Value(value="${http.client.proxy.proxyType:HTTP}")
private io.vertx.core.net.ProxyType httpClientProxyType
ProxyOptions.DEFAULT_TYPE@Value(value="${http.client.proxy.username:#{null}}")
private String httpClientProxyUsername
@Value(value="${http.port:8900}")
private int httpPort
@Value(value="${vertx.warningExceptionTime:1}")
private long vertxWarningExceptionTime
@Value(value="${vertx.workerPoolSize:5000}")
private int vertxWorkerPoolSize
@Bean public io.vertx.core.dns.AddressResolverOptions addressResolverOptions()
@Bean public io.vertx.core.http.HttpClientOptions httpClientOptions()
@Bean public io.vertx.core.http.HttpServerOptions httpServerOptions()
@Bean public io.vertx.core.VertxOptions vertxOptions(io.vertx.core.dns.AddressResolverOptions addressResolverOptions)
Copyright © 2012–2018 Trajano. All rights reserved.