From f20a8be71f261a34e91c8236656f0480ad38474f Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Sat, 23 Sep 2023 15:03:25 +0200 Subject: [PATCH] Regen code --- .../io/vertx/kotlin/amqp/AmqpClientOptions.kt | 430 ++++++------ .../vertx/kotlin/amqp/AmqpReceiverOptions.kt | 48 +- .../io/vertx/kotlin/amqp/AmqpSenderOptions.kt | 22 +- .../cassandra/CassandraClientOptions.kt | 12 +- .../circuitbreaker/CircuitBreakerOptions.kt | 78 +-- .../io/vertx/kotlin/config/ConfigChange.kt | 12 +- .../vertx/kotlin/config/ConfigStoreOptions.kt | 12 +- .../io/vertx/kotlin/core/DeploymentOptions.kt | 44 +- .../io/vertx/kotlin/core/VertxOptions.kt | 136 ++-- .../io/vertx/kotlin/core/WorkerPoolOptions.kt | 53 ++ .../io/vertx/kotlin/core/cli/Argument.kt | 68 -- .../kotlin/io/vertx/kotlin/core/cli/Option.kt | 95 --- .../core/datagram/DatagramSocketOptions.kt | 76 +-- .../kotlin/core/dns/AddressResolverOptions.kt | 73 ++- .../vertx/kotlin/core/dns/DnsClientOptions.kt | 26 +- .../kotlin/core/eventbus/DeliveryOptions.kt | 10 +- .../kotlin/core/eventbus/EventBusOptions.kt | 340 +++++----- .../io/vertx/kotlin/core/file/CopyOptions.kt | 20 +- .../kotlin/core/file/FileSystemOptions.kt | 12 +- .../io/vertx/kotlin/core/file/OpenOptions.kt | 52 +- .../io/vertx/kotlin/core/http/GoAway.kt | 12 +- .../vertx/kotlin/core/http/Http2Settings.kt | 20 +- .../kotlin/core/http/HttpClientOptions.kt | 569 +++++++--------- .../kotlin/core/http/HttpServerOptions.kt | 528 +++++++-------- .../io/vertx/kotlin/core/http/PoolOptions.kt | 57 ++ .../vertx/kotlin/core/http/RequestOptions.kt | 48 +- .../vertx/kotlin/core/http/StreamPriority.kt | 12 +- .../core/http/WebSocketClientOptions.kt | 270 ++++++++ .../core/http/WebSocketConnectOptions.kt | 98 +-- .../vertx/kotlin/core/net/ClientSSLOptions.kt | 99 +++ .../vertx/kotlin/core/net/ConnectOptions.kt | 69 ++ .../io/vertx/kotlin/core/net/JksOptions.kt | 22 +- .../vertx/kotlin/core/net/KeyStoreOptions.kt | 32 +- .../vertx/kotlin/core/net/NetClientOptions.kt | 334 +++++----- .../vertx/kotlin/core/net/NetServerOptions.kt | 324 ++++----- .../kotlin/core/net/OpenSSLEngineOptions.kt | 12 +- .../kotlin/core/net/PemKeyCertOptions.kt | 42 +- .../io/vertx/kotlin/core/net/PfxOptions.kt | 22 +- .../io/vertx/kotlin/core/net/ProxyOptions.kt | 22 +- .../io/vertx/kotlin/core/net/SSLOptions.kt | 37 +- .../vertx/kotlin/core/net/ServerSSLOptions.kt | 100 +++ .../kotlin/core/net/TrafficShapingOptions.kt | 28 +- .../kotlin/db2client/DB2ConnectOptions.kt | 296 +-------- .../io/vertx/kotlin/ext/auth/JWTOptions.kt | 56 +- .../vertx/kotlin/ext/auth/KeyStoreOptions.kt | 28 +- .../auth/authentication/TokenCredentials.kt | 12 +- .../ext/auth/htdigest/HtdigestCredentials.kt | 22 +- .../ext/auth/htpasswd/HtpasswdAuthOptions.kt | 12 +- .../kotlin/ext/auth/jwt/JWTAuthOptions.kt | 22 +- .../auth/ldap/LdapAuthenticationOptions.kt | 12 +- .../ext/auth/oauth2/OAuth2AuthorizationURL.kt | 44 +- .../kotlin/ext/auth/oauth2/OAuth2Options.kt | 160 ++--- .../ext/auth/oauth2/Oauth2Credentials.kt | 40 +- .../auth/sqlclient/SqlAuthorizationOptions.kt | 12 +- .../kotlin/ext/auth/webauthn/Authenticator.kt | 52 +- .../ext/auth/webauthn/WebAuthnCredentials.kt | 20 +- .../ext/auth/webauthn/WebAuthnOptions.kt | 78 +-- .../io/vertx/kotlin/ext/consul/AclToken.kt | 12 +- .../io/vertx/kotlin/ext/consul/Check.kt | 20 +- .../vertx/kotlin/ext/consul/CheckOptions.kt | 82 +-- .../kotlin/ext/consul/CheckQueryOptions.kt | 18 +- .../kotlin/ext/consul/ConsulClientOptions.kt | 615 ++++++++--------- .../io/vertx/kotlin/ext/consul/Coordinate.kt | 10 +- .../io/vertx/kotlin/ext/consul/Event.kt | 22 +- .../kotlin/ext/consul/EventListOptions.kt | 12 +- .../vertx/kotlin/ext/consul/EventOptions.kt | 12 +- .../io/vertx/kotlin/ext/consul/KeyValue.kt | 44 +- .../kotlin/ext/consul/KeyValueOptions.kt | 16 +- .../kotlin/ext/consul/MaintenanceOptions.kt | 10 +- .../kotlin/io/vertx/kotlin/ext/consul/Node.kt | 40 +- .../kotlin/ext/consul/NodeQueryOptions.kt | 12 +- .../ext/consul/PreparedQueryDefinition.kt | 72 +- .../ext/consul/PreparedQueryExecuteOptions.kt | 12 +- .../consul/PreparedQueryExecuteResponse.kt | 12 +- .../io/vertx/kotlin/ext/consul/Service.kt | 46 +- .../vertx/kotlin/ext/consul/ServiceEntry.kt | 12 +- .../vertx/kotlin/ext/consul/ServiceOptions.kt | 46 +- .../kotlin/ext/consul/ServiceQueryOptions.kt | 12 +- .../io/vertx/kotlin/ext/consul/Session.kt | 32 +- .../vertx/kotlin/ext/consul/SessionOptions.kt | 20 +- .../vertx/kotlin/ext/consul/TxnKVOperation.kt | 32 +- .../io/vertx/kotlin/ext/consul/TxnResponse.kt | 16 +- .../kotlin/ext/consul/policy/AclPolicy.kt | 28 +- .../vertx/kotlin/ext/consul/token/AclToken.kt | 20 +- .../consul/token/NodeTokenApplyingOptions.kt | 10 +- .../token/ServiceTokenApplyingOptions.kt | 10 +- .../dropwizard/DropwizardMetricsOptions.kt | 76 +-- .../io/vertx/kotlin/ext/dropwizard/Match.kt | 16 +- .../kotlin/ext/healthchecks/CheckResult.kt | 12 +- .../vertx/kotlin/ext/healthchecks/Status.kt | 10 +- .../vertx/kotlin/ext/mail/DKIMSignOptions.kt | 74 +-- .../io/vertx/kotlin/ext/mail/MailConfig.kt | 548 ++++++++-------- .../io/vertx/kotlin/ext/mail/MailMessage.kt | 74 +-- .../kotlin/ext/mongo/AggregateOptions.kt | 22 +- .../vertx/kotlin/ext/mongo/BulkOperation.kt | 38 +- .../kotlin/ext/mongo/BulkWriteOptions.kt | 12 +- .../kotlin/ext/mongo/CollationOptions.kt | 34 +- .../io/vertx/kotlin/ext/mongo/CountOptions.kt | 14 +- .../ext/mongo/CreateCollectionOptions.kt | 48 +- .../io/vertx/kotlin/ext/mongo/FindOptions.kt | 36 +- .../kotlin/ext/mongo/GridFsUploadOptions.kt | 10 +- .../kotlin/ext/mongo/TimeSeriesOptions.kt | 16 +- .../vertx/kotlin/ext/mongo/UpdateOptions.kt | 48 +- .../kotlin/ext/mongo/ValidationOptions.kt | 12 +- .../kotlin/ext/shell/ShellServerOptions.kt | 16 +- .../kotlin/ext/shell/ShellServiceOptions.kt | 34 +- .../kotlin/ext/shell/term/HttpTermOptions.kt | 588 ++++++++--------- .../kotlin/ext/shell/term/SSHTermOptions.kt | 44 +- .../ext/shell/term/TelnetTermOptions.kt | 354 +++++----- .../kotlin/io/vertx/kotlin/ext/stomp/Frame.kt | 28 +- .../kotlin/ext/stomp/StompClientOptions.kt | 416 ++++++------ .../kotlin/ext/stomp/StompServerOptions.kt | 418 ++++++------ .../kotlin/ext/unit/report/ReportOptions.kt | 12 +- .../vertx/kotlin/ext/web/Http2PushMapping.kt | 8 +- .../ext/web/client/CachingWebClientOptions.kt | 617 ++++++++---------- .../ext/web/client/OAuth2WebClientOptions.kt | 12 +- .../kotlin/ext/web/client/WebClientOptions.kt | 593 ++++++++--------- .../handler/graphql/GraphiQLHandlerOptions.kt | 20 +- .../web/handler/sockjs/SockJSBridgeOptions.kt | 10 +- .../handler/sockjs/SockJSHandlerOptions.kt | 52 +- .../kotlin/jdbcclient/JDBCConnectOptions.kt | 98 +-- .../io/vertx/kotlin/json/schema/OutputUnit.kt | 28 +- .../kotlin/kafka/admin/ClusterDescription.kt | 26 +- .../vertx/kotlin/kafka/admin/ConfigEntry.kt | 10 +- .../vertx/kotlin/kafka/admin/ConfigSynonym.kt | 12 +- .../kafka/admin/ConsumerGroupDescription.kt | 30 +- .../kafka/admin/ListOffsetsResultInfo.kt | 10 +- .../kotlin/kafka/admin/MemberDescription.kt | 16 +- .../io/vertx/kotlin/kafka/admin/NewTopic.kt | 12 +- .../kotlin/kafka/admin/TopicDescription.kt | 22 +- .../kafka/client/common/ConfigResource.kt | 10 +- .../kafka/client/common/KafkaClientOptions.kt | 12 +- .../kafka/client/common/TopicPartition.kt | 12 +- .../client/consumer/OffsetAndMetadata.kt | 12 +- .../io/vertx/kotlin/micrometer/Match.kt | 18 +- .../vertx/kotlin/micrometer/MetricsNaming.kt | 174 ++--- .../micrometer/MicrometerMetricsOptions.kt | 62 +- .../kotlin/micrometer/VertxInfluxDbOptions.kt | 96 +-- .../micrometer/VertxJmxMetricsOptions.kt | 10 +- .../micrometer/VertxPrometheusOptions.kt | 28 +- .../io/vertx/kotlin/mqtt/MqttClientOptions.kt | 456 ++++++------- .../io/vertx/kotlin/mqtt/MqttServerOptions.kt | 388 +++++------ .../kotlin/mssqlclient/MSSQLConnectOptions.kt | 312 ++------- .../io/vertx/kotlin/mssqlclient/MSSQLInfo.kt | 44 +- .../kotlin/mysqlclient/MySQLAuthOptions.kt | 38 +- .../kotlin/mysqlclient/MySQLConnectOptions.kt | 359 ++-------- .../oracleclient/OracleConnectOptions.kt | 276 ++------ .../vertx/kotlin/pgclient/PgConnectOptions.kt | 307 +-------- .../io/vertx/kotlin/pgclient/PgNotice.kt | 76 +-- .../vertx/kotlin/pgclient/PgNotification.kt | 12 +- .../vertx/kotlin/redis/client/PoolOptions.kt | 8 +- .../client/RedisClusterConnectOptions.kt | 40 +- .../vertx/kotlin/redis/client/RedisOptions.kt | 110 ++-- .../client/RedisSentinelConnectOptions.kt | 48 +- .../client/RedisStandaloneConnectOptions.kt | 36 +- .../vertx/kotlin/servicediscovery/Record.kt | 10 +- .../servicediscovery/types/HttpLocation.kt | 10 +- .../io/vertx/kotlin/sqlclient/PoolOptions.kt | 72 +- .../kotlin/sqlclient/SqlConnectOptions.kt | 289 +------- 159 files changed, 6645 insertions(+), 7813 deletions(-) create mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/WorkerPoolOptions.kt delete mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Argument.kt delete mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Option.kt create mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/PoolOptions.kt create mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketClientOptions.kt create mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ClientSSLOptions.kt create mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ConnectOptions.kt create mode 100644 vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ServerSSLOptions.kt diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpClientOptions.kt index a2fe871e..31363553 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpClientOptions.kt @@ -32,266 +32,237 @@ import java.util.concurrent.TimeUnit * Configures the AMQP Client. * You can also configure the underlying Proton instance. Refer to for details. * + * @param sendBufferSize + * @param receiveBufferSize + * @param reuseAddress + * @param trafficClass + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param connectTimeout - * @param connectionHostname Explicitly override the hostname value used for the AMQP Open frame. The host connected to as per [io.vertx.amqp.AmqpClientOptions] will be used in the Open frame by default. - * @param containerId Sets the container id. - * @param crlPaths - * @param crlValues - * @param enabledCipherSuites - * @param enabledSaslMechanisms - * @param enabledSecureTransportProtocols - * @param heartbeat - * @param host Sets the host. - * @param hostnameVerificationAlgorithm + * @param reusePort + * @param tcpNoDelay + * @param tcpKeepAlive + * @param soLinger * @param idleTimeout + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.amqp.AmqpClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.amqp.AmqpClientOptions] * @param idleTimeoutUnit - * @param jdkSslEngineOptions - * @param keyCertOptions + * @param ssl * @param keyStoreOptions - * @param localAddress - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxFrameSize - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param password Sets the password. - * @param pemKeyCertOptions - * @param pemTrustOptions * @param pfxKeyCertOptions + * @param pemKeyCertOptions + * @param trustOptions + * @param trustStoreOptions * @param pfxTrustOptions - * @param port Sets the port. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.amqp.AmqpClientOptions] - * @param receiveBufferSize - * @param reconnectAttempts - * @param reconnectInterval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress - * @param reusePort - * @param sendBufferSize - * @param sniServerName - * @param soLinger - * @param ssl + * @param pemTrustOptions + * @param enabledCipherSuites + * @param crlPaths + * @param crlValues + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions - * @param sslHandshakeTimeout - * @param sslHandshakeTimeoutUnit - * @param tcpCork + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen - * @param tcpKeepAlive - * @param tcpNoDelay + * @param tcpCork * @param tcpQuickAck * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass + * @param enabledSecureTransportProtocols + * @param sslHandshakeTimeout + * @param sslHandshakeTimeoutUnit * @param trustAll - * @param trustOptions - * @param trustStoreOptions - * @param useAlpn Set the ALPN usage. - * @param username Sets the username. + * @param connectTimeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress + * @param reconnectAttempts + * @param hostnameVerificationAlgorithm + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param reconnectInterval + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param enabledSaslMechanisms * @param virtualHost - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.amqp.AmqpClientOptions] + * @param sniServerName + * @param heartbeat + * @param maxFrameSize + * @param host Sets the host. + * @param port Sets the port. + * @param username Sets the username. + * @param password Sets the password. + * @param containerId Sets the container id. + * @param connectionHostname Explicitly override the hostname value used for the AMQP Open frame. The host connected to as per [io.vertx.amqp.AmqpClientOptions] will be used in the Open frame by default. + * @param keyCertOptions * *

* NOTE: This function has been automatically generated from the [io.vertx.amqp.AmqpClientOptions original] using Vert.x codegen. */ fun amqpClientOptionsOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - connectTimeout: Int? = null, - connectionHostname: String? = null, - containerId: String? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSaslMechanisms: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - heartbeat: Int? = null, - host: String? = null, - hostnameVerificationAlgorithm: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - maxFrameSize: Int? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reconnectAttempts: Int? = null, - reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sniServerName: String? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - username: String? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + reconnectAttempts: Int? = null, + hostnameVerificationAlgorithm: String? = null, + applicationLayerProtocols: Iterable? = null, + reconnectInterval: Long? = null, + registerWriteHandler: Boolean? = null, + enabledSaslMechanisms: Iterable? = null, virtualHost: String? = null, - writeIdleTimeout: Int? = null): AmqpClientOptions = io.vertx.amqp.AmqpClientOptions().apply { + sniServerName: String? = null, + heartbeat: Int? = null, + maxFrameSize: Int? = null, + host: String? = null, + port: Int? = null, + username: String? = null, + password: String? = null, + containerId: String? = null, + connectionHostname: String? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): AmqpClientOptions = io.vertx.amqp.AmqpClientOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (connectionHostname != null) { - this.setConnectionHostname(connectionHostname) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (containerId != null) { - this.setContainerId(containerId) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledSaslMechanisms != null) { - for (item in enabledSaslMechanisms) { - this.addEnabledSaslMechanism(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (heartbeat != null) { - this.setHeartbeat(heartbeat) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxFrameSize != null) { - this.setMaxFrameSize(maxFrameSize) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) - } - if (password != null) { - this.setPassword(password) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (port != null) { - this.setPort(port) - } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (reconnectAttempts != null) { - this.setReconnectAttempts(reconnectAttempts) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (reconnectInterval != null) { - this.setReconnectInterval(reconnectInterval) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (sniServerName != null) { - this.setSniServerName(sniServerName) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -299,47 +270,76 @@ fun amqpClientOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (metricsName != null) { + this.setMetricsName(metricsName) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (reconnectAttempts != null) { + this.setReconnectAttempts(reconnectAttempts) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (hostnameVerificationAlgorithm != null) { + this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (reconnectInterval != null) { + this.setReconnectInterval(reconnectInterval) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (username != null) { - this.setUsername(username) + if (enabledSaslMechanisms != null) { + for (item in enabledSaslMechanisms) { + this.addEnabledSaslMechanism(item) + } } if (virtualHost != null) { this.setVirtualHost(virtualHost) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (sniServerName != null) { + this.setSniServerName(sniServerName) + } + if (heartbeat != null) { + this.setHeartbeat(heartbeat) + } + if (maxFrameSize != null) { + this.setMaxFrameSize(maxFrameSize) + } + if (host != null) { + this.setHost(host) + } + if (port != null) { + this.setPort(port) + } + if (username != null) { + this.setUsername(username) + } + if (password != null) { + this.setPassword(password) + } + if (containerId != null) { + this.setContainerId(containerId) + } + if (connectionHostname != null) { + this.setConnectionHostname(connectionHostname) + } + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpReceiverOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpReceiverOptions.kt index afc4e10d..845002cc 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpReceiverOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpReceiverOptions.kt @@ -22,34 +22,40 @@ import io.vertx.amqp.AmqpReceiverOptions * * Configures the AMQP Receiver. * - * @param autoAcknowledgement Sets the auto-acknowledgement. When enabled (default), the messages are automatically acknowledged. If set to false, the messages must be acknowledged explicitly using [io.vertx.amqp.AmqpMessage], [io.vertx.amqp.AmqpMessage] and [io.vertx.amqp.AmqpMessage]. + * @param linkName + * @param dynamic Sets whether the Source terminus to be used should specify it is 'dynamic', requesting the peer creates a node and names it with a generated address.

The address provided by the peer can then be inspected using the [io.vertx.amqp.AmqpReceiver] method on the [io.vertx.amqp.AmqpReceiver] received once opened. + * @param qos Sets the local QOS config. * @param capabilities Sets the list of capabilities to be set on the receiver source terminus. * @param capabilitys Adds a capability to be set on the receiver source terminus. * @param durable Sets the durability.

Passing true sets the expiry policy of the source to NEVER and the durability of the source to UNSETTLED_STATE. - * @param dynamic Sets whether the Source terminus to be used should specify it is 'dynamic', requesting the peer creates a node and names it with a generated address.

The address provided by the peer can then be inspected using the [io.vertx.amqp.AmqpReceiver] method on the [io.vertx.amqp.AmqpReceiver] received once opened. - * @param linkName * @param maxBufferedMessages Sets the max buffered messages. This message can be used to configure the initial credit of a receiver. - * @param noLocal Sets whether this receiver should not receive messages that were sent using the same underlying connection. Used to determine whether to define an "apache.org:no-local-filter:list" filter on the source terminus, requesting that the server filters which messages are delivered to the receiver so that they do not include messages sent on the same underlying connection (if supported by the server in question). - * @param qos Sets the local QOS config. + * @param autoAcknowledgement Sets the auto-acknowledgement. When enabled (default), the messages are automatically acknowledged. If set to false, the messages must be acknowledged explicitly using [io.vertx.amqp.AmqpMessage], [io.vertx.amqp.AmqpMessage] and [io.vertx.amqp.AmqpMessage]. * @param selector Sets a message selector string. Used to define an "apache.org:selector-filter:string" filter on the source terminus, using SQL-based syntax to request the server filters which messages are delivered to the receiver (if supported by the server in question). Precise functionality supported and syntax needed can vary depending on the server. + * @param noLocal Sets whether this receiver should not receive messages that were sent using the same underlying connection. Used to determine whether to define an "apache.org:no-local-filter:list" filter on the source terminus, requesting that the server filters which messages are delivered to the receiver so that they do not include messages sent on the same underlying connection (if supported by the server in question). * *

* NOTE: This function has been automatically generated from the [io.vertx.amqp.AmqpReceiverOptions original] using Vert.x codegen. */ fun amqpReceiverOptionsOf( - autoAcknowledgement: Boolean? = null, + linkName: String? = null, + dynamic: Boolean? = null, + qos: String? = null, capabilities: Iterable? = null, capabilitys: Iterable? = null, durable: Boolean? = null, - dynamic: Boolean? = null, - linkName: String? = null, maxBufferedMessages: Int? = null, - noLocal: Boolean? = null, - qos: String? = null, - selector: String? = null): AmqpReceiverOptions = io.vertx.amqp.AmqpReceiverOptions().apply { + autoAcknowledgement: Boolean? = null, + selector: String? = null, + noLocal: Boolean? = null): AmqpReceiverOptions = io.vertx.amqp.AmqpReceiverOptions().apply { - if (autoAcknowledgement != null) { - this.setAutoAcknowledgement(autoAcknowledgement) + if (linkName != null) { + this.setLinkName(linkName) + } + if (dynamic != null) { + this.setDynamic(dynamic) + } + if (qos != null) { + this.setQos(qos) } if (capabilities != null) { this.setCapabilities(capabilities.toList()) @@ -62,23 +68,17 @@ fun amqpReceiverOptionsOf( if (durable != null) { this.setDurable(durable) } - if (dynamic != null) { - this.setDynamic(dynamic) - } - if (linkName != null) { - this.setLinkName(linkName) - } if (maxBufferedMessages != null) { this.setMaxBufferedMessages(maxBufferedMessages) } - if (noLocal != null) { - this.setNoLocal(noLocal) - } - if (qos != null) { - this.setQos(qos) + if (autoAcknowledgement != null) { + this.setAutoAcknowledgement(autoAcknowledgement) } if (selector != null) { this.setSelector(selector) } + if (noLocal != null) { + this.setNoLocal(noLocal) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpSenderOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpSenderOptions.kt index 605a0896..85a96f80 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpSenderOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/amqp/AmqpSenderOptions.kt @@ -22,22 +22,28 @@ import io.vertx.amqp.AmqpSenderOptions * * Configures the AMQP Sender. * + * @param linkName + * @param dynamic Sets whether the Target terminus to be used should specify it is 'dynamic', requesting the peer creates a node and names it with a generated address.

The address provided by the peer can then be inspected using the [io.vertx.amqp.AmqpSender] method on the [io.vertx.amqp.AmqpSender] received once opened. * @param autoDrained Sets whether the link is automatically marked drained after the send queue drain handler callback returns if the receiving peer requested that credit be drained.

true by default. * @param capabilities Sets the list of capabilities to be set on the sender target terminus. * @param capabilitys Adds a capability to be set on the sender target terminus. - * @param dynamic Sets whether the Target terminus to be used should specify it is 'dynamic', requesting the peer creates a node and names it with a generated address.

The address provided by the peer can then be inspected using the [io.vertx.amqp.AmqpSender] method on the [io.vertx.amqp.AmqpSender] received once opened. - * @param linkName * *

* NOTE: This function has been automatically generated from the [io.vertx.amqp.AmqpSenderOptions original] using Vert.x codegen. */ fun amqpSenderOptionsOf( + linkName: String? = null, + dynamic: Boolean? = null, autoDrained: Boolean? = null, capabilities: Iterable? = null, - capabilitys: Iterable? = null, - dynamic: Boolean? = null, - linkName: String? = null): AmqpSenderOptions = io.vertx.amqp.AmqpSenderOptions().apply { + capabilitys: Iterable? = null): AmqpSenderOptions = io.vertx.amqp.AmqpSenderOptions().apply { + if (linkName != null) { + this.setLinkName(linkName) + } + if (dynamic != null) { + this.setDynamic(dynamic) + } if (autoDrained != null) { this.setAutoDrained(autoDrained) } @@ -49,11 +55,5 @@ fun amqpSenderOptionsOf( this.addCapability(item) } } - if (dynamic != null) { - this.setDynamic(dynamic) - } - if (linkName != null) { - this.setLinkName(linkName) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/cassandra/CassandraClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/cassandra/CassandraClientOptions.kt index 572b7ad8..ec3c280d 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/cassandra/CassandraClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/cassandra/CassandraClientOptions.kt @@ -25,9 +25,9 @@ import io.vertx.core.tracing.TracingPolicy * * @param contactPoints Adds a contact point to use for the initial connection to the cluster * @param keyspace Set the keyspace to use when creating the Cassandra session. Defaults to null. + * @param username Set the username for plaintext authentication. Defaults to null. * @param password Set the password for plaintext authentication. Defaults to null. * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param username Set the username for plaintext authentication. Defaults to null. * *

* NOTE: This function has been automatically generated from the [io.vertx.cassandra.CassandraClientOptions original] using Vert.x codegen. @@ -35,9 +35,9 @@ import io.vertx.core.tracing.TracingPolicy fun cassandraClientOptionsOf( contactPoints: Map? = null, keyspace: String? = null, + username: String? = null, password: String? = null, - tracingPolicy: TracingPolicy? = null, - username: String? = null): CassandraClientOptions = io.vertx.cassandra.CassandraClientOptions().apply { + tracingPolicy: TracingPolicy? = null): CassandraClientOptions = io.vertx.cassandra.CassandraClientOptions().apply { if (contactPoints != null) { for (item in contactPoints) { @@ -47,14 +47,14 @@ fun cassandraClientOptionsOf( if (keyspace != null) { this.setKeyspace(keyspace) } + if (username != null) { + this.setUsername(username) + } if (password != null) { this.setPassword(password) } if (tracingPolicy != null) { this.setTracingPolicy(tracingPolicy) } - if (username != null) { - this.setUsername(username) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/circuitbreaker/CircuitBreakerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/circuitbreaker/CircuitBreakerOptions.kt index 89dd9f5d..c2ff4a7e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/circuitbreaker/CircuitBreakerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/circuitbreaker/CircuitBreakerOptions.kt @@ -20,68 +20,68 @@ import io.vertx.circuitbreaker.CircuitBreakerOptions /** * A function providing a DSL for building [io.vertx.circuitbreaker.CircuitBreakerOptions] objects. * - * Circuit breaker configuration options. All time are given in milliseconds. + * Circuit breaker configuration options. All time values are in milliseconds. * - * @param failuresRollingWindow Sets the rolling window used for metrics. - * @param fallbackOnFailure Sets whether or not the fallback is executed on failure, even when the circuit is closed. - * @param maxFailures Sets the maximum number of failures before opening the circuit. - * @param maxRetries Configures the number of times the circuit breaker tries to redo the operation before failing. - * @param metricsRollingBuckets Sets the configured number of buckets the rolling window is divided into. The following must be true - metrics.rollingStats.timeInMilliseconds % metrics.rollingStats.numBuckets == 0 - otherwise it will throw an exception. In other words, 10000/10 is okay, so is 10000/20 but 10000/7 is not. - * @param metricsRollingWindow Sets the rolling window used for metrics. - * @param notificationAddress Sets the event bus address on which the circuit breaker publish its state change. - * @param notificationLocalOnly Whether circuit breaker state should be delivered only to local consumers. - * @param notificationPeriod Configures the period in milliseconds where the circuit breaker send a notification on the event bus with its current state. - * @param resetTimeout Sets the time in ms before it attempts to re-close the circuit (by going to the half-open state). If the circuit is closed when the timeout is reached, nothing happens. -1 disables this feature. - * @param timeout Sets the timeout in milliseconds. If an action is not completed before this timeout, the action is considered as a failure. + * @param maxFailures Sets the maximum number of failures before opening the circuit breaker. + * @param timeout Sets the timeout in milliseconds. If an action does not complete before this timeout, the action is considered as a failure. + * @param fallbackOnFailure Sets whether the fallback is executed on failure, even when the circuit breaker is closed. + * @param resetTimeout Sets the time in milliseconds before an open circuit breaker moves to half-open (in an attempt to re-close). If the circuit breaker is closed when the timeout is reached, nothing happens. -1 disables this feature. + * @param notificationLocalOnly Sets whether circuit breaker state events should be delivered only to local consumers. + * @param notificationAddress Sets the event bus address on which the circuit breaker publishes its state changes. + * @param notificationPeriod Sets the period in milliseconds in which the circuit breaker sends notifications on the event bus with its current state. + * @param metricsRollingWindow Sets the rolling window length used for metrics. + * @param failuresRollingWindow Sets the rolling window length used for failures. + * @param metricsRollingBuckets Sets the number of buckets the metrics rolling window is divided into.

The following must be true: metricsRollingWindow % metricsRollingBuckets == 0, otherwise an exception will be thrown. For example, 10000/10 is okay, so is 10000/20, but 10000/7 is not. + * @param maxRetries Sets the number of times the circuit breaker retries an operation before failing. * *

* NOTE: This function has been automatically generated from the [io.vertx.circuitbreaker.CircuitBreakerOptions original] using Vert.x codegen. */ fun circuitBreakerOptionsOf( - failuresRollingWindow: Long? = null, - fallbackOnFailure: Boolean? = null, maxFailures: Int? = null, - maxRetries: Int? = null, - metricsRollingBuckets: Int? = null, - metricsRollingWindow: Long? = null, - notificationAddress: String? = null, + timeout: Long? = null, + fallbackOnFailure: Boolean? = null, + resetTimeout: Long? = null, notificationLocalOnly: Boolean? = null, + notificationAddress: String? = null, notificationPeriod: Long? = null, - resetTimeout: Long? = null, - timeout: Long? = null): CircuitBreakerOptions = io.vertx.circuitbreaker.CircuitBreakerOptions().apply { + metricsRollingWindow: Long? = null, + failuresRollingWindow: Long? = null, + metricsRollingBuckets: Int? = null, + maxRetries: Int? = null): CircuitBreakerOptions = io.vertx.circuitbreaker.CircuitBreakerOptions().apply { - if (failuresRollingWindow != null) { - this.setFailuresRollingWindow(failuresRollingWindow) - } - if (fallbackOnFailure != null) { - this.setFallbackOnFailure(fallbackOnFailure) - } if (maxFailures != null) { this.setMaxFailures(maxFailures) } - if (maxRetries != null) { - this.setMaxRetries(maxRetries) - } - if (metricsRollingBuckets != null) { - this.setMetricsRollingBuckets(metricsRollingBuckets) + if (timeout != null) { + this.setTimeout(timeout) } - if (metricsRollingWindow != null) { - this.setMetricsRollingWindow(metricsRollingWindow) + if (fallbackOnFailure != null) { + this.setFallbackOnFailure(fallbackOnFailure) } - if (notificationAddress != null) { - this.setNotificationAddress(notificationAddress) + if (resetTimeout != null) { + this.setResetTimeout(resetTimeout) } if (notificationLocalOnly != null) { this.setNotificationLocalOnly(notificationLocalOnly) } + if (notificationAddress != null) { + this.setNotificationAddress(notificationAddress) + } if (notificationPeriod != null) { this.setNotificationPeriod(notificationPeriod) } - if (resetTimeout != null) { - this.setResetTimeout(resetTimeout) + if (metricsRollingWindow != null) { + this.setMetricsRollingWindow(metricsRollingWindow) } - if (timeout != null) { - this.setTimeout(timeout) + if (failuresRollingWindow != null) { + this.setFailuresRollingWindow(failuresRollingWindow) + } + if (metricsRollingBuckets != null) { + this.setMetricsRollingBuckets(metricsRollingBuckets) + } + if (maxRetries != null) { + this.setMaxRetries(maxRetries) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigChange.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigChange.kt index 9c642a31..06a230b4 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigChange.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigChange.kt @@ -22,21 +22,21 @@ import io.vertx.config.ConfigChange * * A structure representing a configuration change. * - * @param newConfiguration Sets the new configuration. * @param previousConfiguration Sets the previous configuration. + * @param newConfiguration Sets the new configuration. * *

* NOTE: This function has been automatically generated from the [io.vertx.config.ConfigChange original] using Vert.x codegen. */ fun configChangeOf( - newConfiguration: io.vertx.core.json.JsonObject? = null, - previousConfiguration: io.vertx.core.json.JsonObject? = null): ConfigChange = io.vertx.config.ConfigChange().apply { + previousConfiguration: io.vertx.core.json.JsonObject? = null, + newConfiguration: io.vertx.core.json.JsonObject? = null): ConfigChange = io.vertx.config.ConfigChange().apply { - if (newConfiguration != null) { - this.setNewConfiguration(newConfiguration) - } if (previousConfiguration != null) { this.setPreviousConfiguration(previousConfiguration) } + if (newConfiguration != null) { + this.setNewConfiguration(newConfiguration) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigStoreOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigStoreOptions.kt index 460e2654..ba859ce7 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigStoreOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/config/ConfigStoreOptions.kt @@ -25,20 +25,23 @@ import io.vertx.config.ConfigStoreOptions * retrieved configuration chunk, and you can also configures the store if it needs configuration to * retrieve the configuration chunk. * + * @param type Sets the configuration type * @param config Sets the configuration of the store * @param format Sets the format of the configuration that is retrieved from the store. * @param optional Sets whether or not the store is optional. When the configuration is retrieve, if an optional store returns a failure, the failure is ignored and an empty json object is used instead (for this store). - * @param type Sets the configuration type * *

* NOTE: This function has been automatically generated from the [io.vertx.config.ConfigStoreOptions original] using Vert.x codegen. */ fun configStoreOptionsOf( + type: String? = null, config: io.vertx.core.json.JsonObject? = null, format: String? = null, - optional: Boolean? = null, - type: String? = null): ConfigStoreOptions = io.vertx.config.ConfigStoreOptions().apply { + optional: Boolean? = null): ConfigStoreOptions = io.vertx.config.ConfigStoreOptions().apply { + if (type != null) { + this.setType(type) + } if (config != null) { this.setConfig(config) } @@ -48,8 +51,5 @@ fun configStoreOptionsOf( if (optional != null) { this.setOptional(optional) } - if (type != null) { - this.setType(type) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/DeploymentOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/DeploymentOptions.kt index f837c0ae..940ea8d3 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/DeploymentOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/DeploymentOptions.kt @@ -16,6 +16,7 @@ package io.vertx.kotlin.core import io.vertx.core.DeploymentOptions +import io.vertx.core.WorkerOptions import java.util.concurrent.TimeUnit /** @@ -24,50 +25,46 @@ import java.util.concurrent.TimeUnit * Options for configuring a verticle deployment. *

* - * @param classLoader Set the classloader to use for deploying the Verticle.

The VerticleFactory will use this classloader for creating the Verticle and the Verticle [io.vertx.core.Context] will set this classloader as context classloader for the tasks execution on context.

By default no classloader is required and the deployment will use the current thread context classloader. * @param config Set the JSON configuration that will be passed to the verticle(s) when it's deployed + * @param worker Set whether the verticle(s) should be deployed as a worker verticle * @param ha Set whether the verticle(s) will be deployed as HA. * @param instances Set the number of instances that should be deployed. - * @param maxWorkerExecuteTime Sets the value of max worker execute time, in [io.vertx.core.DeploymentOptions].

The default value of [io.vertx.core.DeploymentOptions] is

When the verticle does not use a [io.vertx.core.DeploymentOptions], this option has no effect. - * @param maxWorkerExecuteTimeUnit Set the time unit of maxWorkerExecuteTime

When the verticle does not use a [io.vertx.core.DeploymentOptions], this option has no effect. - * @param worker Set whether the verticle(s) should be deployed as a worker verticle + * @param workerOptions Set the verticle worker options. * @param workerPoolName Set the worker pool name to use for this verticle. When no name is set, the Vert.x worker pool will be used, when a name is set, the verticle will use a named worker pool. * @param workerPoolSize Set the maximum number of worker threads to be used by the Vert.x instance.

When the verticle does not use a [io.vertx.core.DeploymentOptions], this option has no effect. + * @param maxWorkerExecuteTime Sets the value of max worker execute time, in [io.vertx.core.DeploymentOptions].

The default value of [io.vertx.core.DeploymentOptions] is

When the verticle does not use a [io.vertx.core.DeploymentOptions], this option has no effect. + * @param maxWorkerExecuteTimeUnit Set the time unit of maxWorkerExecuteTime

When the verticle does not use a [io.vertx.core.DeploymentOptions], this option has no effect. + * @param classLoader Set the classloader to use for deploying the Verticle.

The VerticleFactory will use this classloader for creating the Verticle and the Verticle [io.vertx.core.Context] will set this classloader as context classloader for the tasks execution on context.

By default no classloader is required and the deployment will use the current thread context classloader. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.DeploymentOptions original] using Vert.x codegen. */ fun deploymentOptionsOf( - classLoader: java.lang.ClassLoader? = null, config: io.vertx.core.json.JsonObject? = null, + worker: Boolean? = null, ha: Boolean? = null, instances: Int? = null, + workerOptions: io.vertx.core.WorkerOptions? = null, + workerPoolName: String? = null, + workerPoolSize: Int? = null, maxWorkerExecuteTime: Long? = null, maxWorkerExecuteTimeUnit: TimeUnit? = null, - worker: Boolean? = null, - workerPoolName: String? = null, - workerPoolSize: Int? = null): DeploymentOptions = io.vertx.core.DeploymentOptions().apply { + classLoader: java.lang.ClassLoader? = null): DeploymentOptions = io.vertx.core.DeploymentOptions().apply { - if (classLoader != null) { - this.setClassLoader(classLoader) - } if (config != null) { this.setConfig(config) } + if (worker != null) { + this.setWorker(worker) + } if (ha != null) { this.setHa(ha) } if (instances != null) { this.setInstances(instances) } - if (maxWorkerExecuteTime != null) { - this.setMaxWorkerExecuteTime(maxWorkerExecuteTime) - } - if (maxWorkerExecuteTimeUnit != null) { - this.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit) - } - if (worker != null) { - this.setWorker(worker) + if (workerOptions != null) { + this.setWorkerOptions(workerOptions) } if (workerPoolName != null) { this.setWorkerPoolName(workerPoolName) @@ -75,5 +72,14 @@ fun deploymentOptionsOf( if (workerPoolSize != null) { this.setWorkerPoolSize(workerPoolSize) } + if (maxWorkerExecuteTime != null) { + this.setMaxWorkerExecuteTime(maxWorkerExecuteTime) + } + if (maxWorkerExecuteTimeUnit != null) { + this.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit) + } + if (classLoader != null) { + this.setClassLoader(classLoader) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/VertxOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/VertxOptions.kt index 3b8f7c3d..7bcd33db 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/VertxOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/VertxOptions.kt @@ -28,126 +28,126 @@ import java.util.concurrent.TimeUnit * * Instances of this class are used to configure [io.vertx.core.Vertx] instances. * - * @param addressResolverOptions Sets the address resolver configuration to configure resolving DNS servers, cache TTL, etc... + * @param eventLoopPoolSize Set the number of event loop threads to be used by the Vert.x instance. + * @param workerPoolSize Set the maximum number of worker threads to be used by the Vert.x instance. * @param blockedThreadCheckInterval Sets the value of blocked thread check period, in [io.vertx.core.VertxOptions].

The default value of [io.vertx.core.VertxOptions] is - * @param blockedThreadCheckIntervalUnit Set the time unit of blockedThreadCheckInterval. + * @param maxEventLoopExecuteTime Sets the value of max event loop execute time, in [io.vertx.core.VertxOptions].

The default value of [io.vertx.core.VertxOptions]is + * @param maxWorkerExecuteTime Sets the value of max worker execute time, in [io.vertx.core.VertxOptions].

The default value of [io.vertx.core.VertxOptions] is * @param clusterManager Programmatically set the cluster manager to be used when clustering.

Only valid if clustered = true.

Normally Vert.x will look on the classpath for a cluster manager, but if you want to set one programmatically you can use this method. - * @param disableTCCL Configures whether Vert.x sets the [io.vertx.core.Context] classloader as the thread context classloader on actions executed on that [io.vertx.core.Context]. When a [io.vertx.core.Context] is created the current thread classloader is captured and associated with this classloader. Likewise when a Verticle is created, the Verticle's [io.vertx.core.Context] classloader is set to the current thread classloader unless this classloader is overriden by [io.vertx.core.DeploymentOptions]. This setting overrides the (legacy) system property vertx.disableTCCL and provides control at the Vertx instance level. - * @param eventBusOptions Sets the event bus configuration to configure the host, port, ssl... - * @param eventLoopPoolSize Set the number of event loop threads to be used by the Vert.x instance. - * @param fileSystemOptions Set the file system options + * @param internalBlockingPoolSize Set the value of internal blocking pool size * @param haEnabled Set whether HA will be enabled on the Vert.x instance. + * @param quorumSize Set the quorum size to be used when HA is enabled. * @param haGroup Set the HA group to be used when HA is enabled. - * @param internalBlockingPoolSize Set the value of internal blocking pool size - * @param maxEventLoopExecuteTime Sets the value of max event loop execute time, in [io.vertx.core.VertxOptions].

The default value of [io.vertx.core.VertxOptions]is - * @param maxEventLoopExecuteTimeUnit Set the time unit of maxEventLoopExecuteTime. - * @param maxWorkerExecuteTime Sets the value of max worker execute time, in [io.vertx.core.VertxOptions].

The default value of [io.vertx.core.VertxOptions] is - * @param maxWorkerExecuteTimeUnit Set the time unit of maxWorkerExecuteTime. * @param metricsOptions Set the metrics options + * @param fileSystemOptions Set the file system options + * @param warningExceptionTime Set the threshold value above this, the blocked warning contains a stack trace. in [io.vertx.core.VertxOptions]. The default value of [io.vertx.core.VertxOptions] is + * @param eventBusOptions Sets the event bus configuration to configure the host, port, ssl... + * @param addressResolverOptions Sets the address resolver configuration to configure resolving DNS servers, cache TTL, etc... * @param preferNativeTransport Set wether to prefer the native transport to the JDK transport. - * @param quorumSize Set the quorum size to be used when HA is enabled. + * @param maxEventLoopExecuteTimeUnit Set the time unit of maxEventLoopExecuteTime. + * @param maxWorkerExecuteTimeUnit Set the time unit of maxWorkerExecuteTime. + * @param warningExceptionTimeUnit Set the time unit of warningExceptionTime. + * @param blockedThreadCheckIntervalUnit Set the time unit of blockedThreadCheckInterval. * @param tracingOptions Set the tracing options + * @param disableTCCL Configures whether Vert.x sets the [io.vertx.core.Context] classloader as the thread context classloader on actions executed on that [io.vertx.core.Context]. When a [io.vertx.core.Context] is created the current thread classloader is captured and associated with this classloader. Likewise when a Verticle is created, the Verticle's [io.vertx.core.Context] classloader is set to the current thread classloader unless this classloader is overriden by [io.vertx.core.DeploymentOptions]. This setting overrides the (legacy) system property vertx.disableTCCL and provides control at the Vertx instance level. * @param useDaemonThread Mark the vertx thread as daemon thread or user thread.

For keeping the old behavior, the default value is false instead of null. - * @param warningExceptionTime Set the threshold value above this, the blocked warning contains a stack trace. in [io.vertx.core.VertxOptions]. The default value of [io.vertx.core.VertxOptions] is - * @param warningExceptionTimeUnit Set the time unit of warningExceptionTime. - * @param workerPoolSize Set the maximum number of worker threads to be used by the Vert.x instance. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.VertxOptions original] using Vert.x codegen. */ fun vertxOptionsOf( - addressResolverOptions: io.vertx.core.dns.AddressResolverOptions? = null, + eventLoopPoolSize: Int? = null, + workerPoolSize: Int? = null, blockedThreadCheckInterval: Long? = null, - blockedThreadCheckIntervalUnit: TimeUnit? = null, + maxEventLoopExecuteTime: Long? = null, + maxWorkerExecuteTime: Long? = null, clusterManager: io.vertx.core.spi.cluster.ClusterManager? = null, - disableTCCL: Boolean? = null, - eventBusOptions: io.vertx.core.eventbus.EventBusOptions? = null, - eventLoopPoolSize: Int? = null, - fileSystemOptions: io.vertx.core.file.FileSystemOptions? = null, + internalBlockingPoolSize: Int? = null, haEnabled: Boolean? = null, + quorumSize: Int? = null, haGroup: String? = null, - internalBlockingPoolSize: Int? = null, - maxEventLoopExecuteTime: Long? = null, - maxEventLoopExecuteTimeUnit: TimeUnit? = null, - maxWorkerExecuteTime: Long? = null, - maxWorkerExecuteTimeUnit: TimeUnit? = null, metricsOptions: io.vertx.core.metrics.MetricsOptions? = null, - preferNativeTransport: Boolean? = null, - quorumSize: Int? = null, - tracingOptions: io.vertx.core.tracing.TracingOptions? = null, - useDaemonThread: Boolean? = null, + fileSystemOptions: io.vertx.core.file.FileSystemOptions? = null, warningExceptionTime: Long? = null, + eventBusOptions: io.vertx.core.eventbus.EventBusOptions? = null, + addressResolverOptions: io.vertx.core.dns.AddressResolverOptions? = null, + preferNativeTransport: Boolean? = null, + maxEventLoopExecuteTimeUnit: TimeUnit? = null, + maxWorkerExecuteTimeUnit: TimeUnit? = null, warningExceptionTimeUnit: TimeUnit? = null, - workerPoolSize: Int? = null): VertxOptions = io.vertx.core.VertxOptions().apply { + blockedThreadCheckIntervalUnit: TimeUnit? = null, + tracingOptions: io.vertx.core.tracing.TracingOptions? = null, + disableTCCL: Boolean? = null, + useDaemonThread: Boolean? = null): VertxOptions = io.vertx.core.VertxOptions().apply { - if (addressResolverOptions != null) { - this.setAddressResolverOptions(addressResolverOptions) + if (eventLoopPoolSize != null) { + this.setEventLoopPoolSize(eventLoopPoolSize) + } + if (workerPoolSize != null) { + this.setWorkerPoolSize(workerPoolSize) } if (blockedThreadCheckInterval != null) { this.setBlockedThreadCheckInterval(blockedThreadCheckInterval) } - if (blockedThreadCheckIntervalUnit != null) { - this.setBlockedThreadCheckIntervalUnit(blockedThreadCheckIntervalUnit) + if (maxEventLoopExecuteTime != null) { + this.setMaxEventLoopExecuteTime(maxEventLoopExecuteTime) + } + if (maxWorkerExecuteTime != null) { + this.setMaxWorkerExecuteTime(maxWorkerExecuteTime) } if (clusterManager != null) { this.setClusterManager(clusterManager) } - if (disableTCCL != null) { - this.setDisableTCCL(disableTCCL) + if (internalBlockingPoolSize != null) { + this.setInternalBlockingPoolSize(internalBlockingPoolSize) } - if (eventBusOptions != null) { - this.setEventBusOptions(eventBusOptions) + if (haEnabled != null) { + this.setHAEnabled(haEnabled) } - if (eventLoopPoolSize != null) { - this.setEventLoopPoolSize(eventLoopPoolSize) + if (quorumSize != null) { + this.setQuorumSize(quorumSize) + } + if (haGroup != null) { + this.setHAGroup(haGroup) + } + if (metricsOptions != null) { + this.setMetricsOptions(metricsOptions) } if (fileSystemOptions != null) { this.setFileSystemOptions(fileSystemOptions) } - if (haEnabled != null) { - this.setHAEnabled(haEnabled) + if (warningExceptionTime != null) { + this.setWarningExceptionTime(warningExceptionTime) } - if (haGroup != null) { - this.setHAGroup(haGroup) + if (eventBusOptions != null) { + this.setEventBusOptions(eventBusOptions) } - if (internalBlockingPoolSize != null) { - this.setInternalBlockingPoolSize(internalBlockingPoolSize) + if (addressResolverOptions != null) { + this.setAddressResolverOptions(addressResolverOptions) } - if (maxEventLoopExecuteTime != null) { - this.setMaxEventLoopExecuteTime(maxEventLoopExecuteTime) + if (preferNativeTransport != null) { + this.setPreferNativeTransport(preferNativeTransport) } if (maxEventLoopExecuteTimeUnit != null) { this.setMaxEventLoopExecuteTimeUnit(maxEventLoopExecuteTimeUnit) } - if (maxWorkerExecuteTime != null) { - this.setMaxWorkerExecuteTime(maxWorkerExecuteTime) - } if (maxWorkerExecuteTimeUnit != null) { this.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit) } - if (metricsOptions != null) { - this.setMetricsOptions(metricsOptions) - } - if (preferNativeTransport != null) { - this.setPreferNativeTransport(preferNativeTransport) + if (warningExceptionTimeUnit != null) { + this.setWarningExceptionTimeUnit(warningExceptionTimeUnit) } - if (quorumSize != null) { - this.setQuorumSize(quorumSize) + if (blockedThreadCheckIntervalUnit != null) { + this.setBlockedThreadCheckIntervalUnit(blockedThreadCheckIntervalUnit) } if (tracingOptions != null) { this.setTracingOptions(tracingOptions) } + if (disableTCCL != null) { + this.setDisableTCCL(disableTCCL) + } if (useDaemonThread != null) { this.setUseDaemonThread(useDaemonThread) } - if (warningExceptionTime != null) { - this.setWarningExceptionTime(warningExceptionTime) - } - if (warningExceptionTimeUnit != null) { - this.setWarningExceptionTimeUnit(warningExceptionTimeUnit) - } - if (workerPoolSize != null) { - this.setWorkerPoolSize(workerPoolSize) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/WorkerPoolOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/WorkerPoolOptions.kt new file mode 100644 index 00000000..004099b7 --- /dev/null +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/WorkerPoolOptions.kt @@ -0,0 +1,53 @@ +/* + * Copyright 2019 Red Hat, Inc. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + */ +package io.vertx.kotlin.core + +import io.vertx.core.WorkerPoolOptions +import java.util.concurrent.TimeUnit + +/** + * A function providing a DSL for building [io.vertx.core.WorkerPoolOptions] objects. + * + * Worker pool options. + * + * @param name Set the worker pool name to use. + * @param size Set the maximum number of worker threads to be used by the pool. + * @param maxExecuteTime Sets the value of max worker execute time, in [io.vertx.core.DeploymentOptions].

The default value of [io.vertx.core.DeploymentOptions] is + * @param maxExecuteTimeUnit Set the time unit of [io.vertx.core.WorkerPoolOptions] + * + *

+ * NOTE: This function has been automatically generated from the [io.vertx.core.WorkerPoolOptions original] using Vert.x codegen. + */ +fun workerPoolOptionsOf( + name: String? = null, + size: Int? = null, + maxExecuteTime: Long? = null, + maxExecuteTimeUnit: TimeUnit? = null): WorkerPoolOptions = io.vertx.core.WorkerPoolOptions().apply { + + if (name != null) { + this.setName(name) + } + if (size != null) { + this.setSize(size) + } + if (maxExecuteTime != null) { + this.setMaxExecuteTime(maxExecuteTime) + } + if (maxExecuteTimeUnit != null) { + this.setMaxExecuteTimeUnit(maxExecuteTimeUnit) + } +} + diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Argument.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Argument.kt deleted file mode 100644 index 46485ae5..00000000 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Argument.kt +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Apache License v2.0 which accompanies this distribution. - * - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * The Apache License v2.0 is available at - * http://www.opensource.org/licenses/apache2.0.php - * - * You may elect to redistribute this code under either of these licenses. - */ -package io.vertx.kotlin.core.cli - -import io.vertx.core.cli.Argument - -/** - * A function providing a DSL for building [io.vertx.core.cli.Argument] objects. - * - * Defines a command line argument. Unlike options, argument don't have names and are identified using an index. The - * first index is 0 (because we are in the computer world). - * - * @param argName Sets the argument name of this [io.vertx.core.cli.Argument]. - * @param defaultValue Sets the default value of this [io.vertx.core.cli.Argument]. - * @param description Sets the description of the [io.vertx.core.cli.Argument]. - * @param hidden Sets whether or not the current [io.vertx.core.cli.Argument] is hidden. - * @param index Sets the argument index. - * @param multiValued Sets whether or not the argument can receive several values. Only the last argument can receive several values. - * @param required Sets whether or not the current [io.vertx.core.cli.Argument] is required. - * - *

- * NOTE: This function has been automatically generated from the [io.vertx.core.cli.Argument original] using Vert.x codegen. - */ -fun argumentOf( - argName: String? = null, - defaultValue: String? = null, - description: String? = null, - hidden: Boolean? = null, - index: Int? = null, - multiValued: Boolean? = null, - required: Boolean? = null): Argument = io.vertx.core.cli.Argument().apply { - - if (argName != null) { - this.setArgName(argName) - } - if (defaultValue != null) { - this.setDefaultValue(defaultValue) - } - if (description != null) { - this.setDescription(description) - } - if (hidden != null) { - this.setHidden(hidden) - } - if (index != null) { - this.setIndex(index) - } - if (multiValued != null) { - this.setMultiValued(multiValued) - } - if (required != null) { - this.setRequired(required) - } -} - diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Option.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Option.kt deleted file mode 100644 index 80a00418..00000000 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/cli/Option.kt +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Apache License v2.0 which accompanies this distribution. - * - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * The Apache License v2.0 is available at - * http://www.opensource.org/licenses/apache2.0.php - * - * You may elect to redistribute this code under either of these licenses. - */ -package io.vertx.kotlin.core.cli - -import io.vertx.core.cli.Option - -/** - * A function providing a DSL for building [io.vertx.core.cli.Option] objects. - * - * Models command line options. Options are values passed to a command line interface using -x or --x. Supported - * syntaxes depend on the parser. - *

- * Short name is generally used with a single dash, while long name requires a double-dash. - * - * @param argName Sets te arg name for this option. - * @param choices Sets the list of values accepted by this option. If the value set by the user does not match once of these values, a [io.vertx.core.cli.InvalidValueException] exception is thrown. - * @param defaultValue Sets the default value of this option - * @param description Sets te description of this option. - * @param flag Configures the current [io.vertx.core.cli.Option] to be a flag. It will be evaluated to true if it's found in the command line. If you need a flag that may receive a value, use, in this order:

   option.setFlag(true).setSingleValued(true) 
- * @param help Sets whether or not this option is a "help" option - * @param hidden Sets whether or not this option should be hidden - * @param longName Sets the long name of this option. - * @param multiValued Sets whether or not this option can receive several values. - * @param required Sets whether or not this option is mandatory. - * @param shortName Sets the short name of this option. - * @param singleValued Sets whether or not this option can receive a value. - * - *

- * NOTE: This function has been automatically generated from the [io.vertx.core.cli.Option original] using Vert.x codegen. - */ -fun optionOf( - argName: String? = null, - choices: Iterable? = null, - defaultValue: String? = null, - description: String? = null, - flag: Boolean? = null, - help: Boolean? = null, - hidden: Boolean? = null, - longName: String? = null, - multiValued: Boolean? = null, - required: Boolean? = null, - shortName: String? = null, - singleValued: Boolean? = null): Option = io.vertx.core.cli.Option().apply { - - if (argName != null) { - this.setArgName(argName) - } - if (choices != null) { - this.setChoices(choices.toSet()) - } - if (defaultValue != null) { - this.setDefaultValue(defaultValue) - } - if (description != null) { - this.setDescription(description) - } - if (flag != null) { - this.setFlag(flag) - } - if (help != null) { - this.setHelp(help) - } - if (hidden != null) { - this.setHidden(hidden) - } - if (longName != null) { - this.setLongName(longName) - } - if (multiValued != null) { - this.setMultiValued(multiValued) - } - if (required != null) { - this.setRequired(required) - } - if (shortName != null) { - this.setShortName(shortName) - } - if (singleValued != null) { - this.setSingleValued(singleValued) - } -} - diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/datagram/DatagramSocketOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/datagram/DatagramSocketOptions.kt index 74d00590..e3814669 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/datagram/DatagramSocketOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/datagram/DatagramSocketOptions.kt @@ -23,62 +23,44 @@ import io.netty.handler.logging.ByteBufFormat * * Options used to configure a datagram socket. * - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param broadcast Set if the socket can send or receive broadcast packets - * @param ipV6 Set if IP v6 should be used - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param loopbackModeDisabled Set if loopback mode is disabled - * @param multicastNetworkInterface Set the multicast network interface address - * @param multicastTimeToLive Set the multicast ttl value - * @param receiveBufferSize Set the TCP receive buffer size * @param reuseAddress Set the value of reuse address + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. + * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. * @param reusePort Set the value of reuse port.

This is only supported by native transports. * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size * @param trafficClass Set the value of traffic class + * @param broadcast Set if the socket can send or receive broadcast packets + * @param loopbackModeDisabled Set if loopback mode is disabled + * @param multicastTimeToLive Set the multicast ttl value + * @param multicastNetworkInterface Set the multicast network interface address + * @param ipV6 Set if IP v6 should be used * *

* NOTE: This function has been automatically generated from the [io.vertx.core.datagram.DatagramSocketOptions original] using Vert.x codegen. */ fun datagramSocketOptionsOf( + reuseAddress: Boolean? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, + reusePort: Boolean? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + trafficClass: Int? = null, broadcast: Boolean? = null, - ipV6: Boolean? = null, - logActivity: Boolean? = null, loopbackModeDisabled: Boolean? = null, - multicastNetworkInterface: String? = null, multicastTimeToLive: Int? = null, - receiveBufferSize: Int? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - trafficClass: Int? = null): DatagramSocketOptions = io.vertx.core.datagram.DatagramSocketOptions().apply { + multicastNetworkInterface: String? = null, + ipV6: Boolean? = null): DatagramSocketOptions = io.vertx.core.datagram.DatagramSocketOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (broadcast != null) { - this.setBroadcast(broadcast) - } - if (ipV6 != null) { - this.setIpV6(ipV6) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } if (logActivity != null) { this.setLogActivity(logActivity) } - if (loopbackModeDisabled != null) { - this.setLoopbackModeDisabled(loopbackModeDisabled) - } - if (multicastNetworkInterface != null) { - this.setMulticastNetworkInterface(multicastNetworkInterface) - } - if (multicastTimeToLive != null) { - this.setMulticastTimeToLive(multicastTimeToLive) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } if (reusePort != null) { this.setReusePort(reusePort) @@ -86,8 +68,26 @@ fun datagramSocketOptionsOf( if (sendBufferSize != null) { this.setSendBufferSize(sendBufferSize) } + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) + } if (trafficClass != null) { this.setTrafficClass(trafficClass) } + if (broadcast != null) { + this.setBroadcast(broadcast) + } + if (loopbackModeDisabled != null) { + this.setLoopbackModeDisabled(loopbackModeDisabled) + } + if (multicastTimeToLive != null) { + this.setMulticastTimeToLive(multicastTimeToLive) + } + if (multicastNetworkInterface != null) { + this.setMulticastNetworkInterface(multicastNetworkInterface) + } + if (ipV6 != null) { + this.setIpV6(ipV6) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/AddressResolverOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/AddressResolverOptions.kt index d4463f7f..3f3ad755 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/AddressResolverOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/AddressResolverOptions.kt @@ -23,81 +23,86 @@ import io.vertx.core.dns.AddressResolverOptions * Configuration options for Vert.x hostname resolver. The resolver uses the local hosts file and performs * DNS A and AAAA queries. * - * @param cacheMaxTimeToLive Set the cache maximum TTL value in seconds. After successful resolution IP addresses are cached with their DNS response TTL, use this to set a maximum value to all responses TTL. - * @param cacheMinTimeToLive Set the cache minimum TTL value in seconds. After resolution successful IP addresses are cached with their DNS response TTL, use this to set a minimum value to all responses TTL. - * @param cacheNegativeTimeToLive Set the negative cache TTL value in seconds. After a failed hostname resolution, DNS queries won't be retried for a period of time equals to the negative TTL. This allows to reduce the response time of negative replies and reduce the amount of messages to DNS servers. * @param hostsPath Set the path of an alternate hosts configuration file to use instead of the one provided by the os.

The default value is null, so the operating system hosts config is used. * @param hostsValue Set an alternate hosts configuration file to use instead of the one provided by the os.

The value should contain the hosts content literaly, for instance 127.0.0.1 localhost

The default value is null, so the operating system hosts config is used. - * @param maxQueries Set the maximum number of queries when an hostname is resolved. - * @param ndots Set the ndots value used when resolving using search domains, the default value is -1 which determines the value from the OS on Linux or uses the value 1. + * @param hostsRefreshPeriod Set the hosts configuration refresh period in millis, 0 disables it.

The resolver caches the hosts configuration [io.vertx.core.dns.AddressResolverOptions] after it has read it. When the content of this file can change, setting a positive refresh period will load the configuration file again when necessary. + * @param servers Set the list of DNS server addresses, an address is the IP of the dns server, followed by an optional colon and a port, e.g 8.8.8.8 or {code 192.168.0.1:40000}. When the list is empty, the resolver will use the list of the system DNS server addresses from the environment, if that list cannot be retrieved it will use Google's public DNS servers "8.8.8.8" and "8.8.4.4". * @param optResourceEnabled Set to true to enable the automatic inclusion in DNS queries of an optional record that hints the remote DNS server about how much data the resolver can read per response. + * @param cacheMinTimeToLive Set the cache minimum TTL value in seconds. After resolution successful IP addresses are cached with their DNS response TTL, use this to set a minimum value to all responses TTL. + * @param cacheMaxTimeToLive Set the cache maximum TTL value in seconds. After successful resolution IP addresses are cached with their DNS response TTL, use this to set a maximum value to all responses TTL. + * @param cacheNegativeTimeToLive Set the negative cache TTL value in seconds. After a failed hostname resolution, DNS queries won't be retried for a period of time equals to the negative TTL. This allows to reduce the response time of negative replies and reduce the amount of messages to DNS servers. * @param queryTimeout Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed. + * @param maxQueries Set the maximum number of queries when an hostname is resolved. * @param rdFlag Set the DNS queries Recursion Desired flag value. + * @param searchDomains Set the lists of DNS search domains.

When the search domain list is null, the effective search domain list will be populated using the system DNS search domains. + * @param ndots Set the ndots value used when resolving using search domains, the default value is -1 which determines the value from the OS on Linux or uses the value 1. * @param rotateServers Set to true to enable round-robin selection of the dns server to use. It spreads the query load among the servers and avoids all lookup to hit the first server of the list. * @param roundRobinInetAddress Set to true to enable round-robin inet address selection of the ip address to use. - * @param searchDomains Set the lists of DNS search domains.

When the search domain list is null, the effective search domain list will be populated using the system DNS search domains. - * @param servers Set the list of DNS server addresses, an address is the IP of the dns server, followed by an optional colon and a port, e.g 8.8.8.8 or {code 192.168.0.1:40000}. When the list is empty, the resolver will use the list of the system DNS server addresses from the environment, if that list cannot be retrieved it will use Google's public DNS servers "8.8.8.8" and "8.8.4.4". * *

* NOTE: This function has been automatically generated from the [io.vertx.core.dns.AddressResolverOptions original] using Vert.x codegen. */ fun addressResolverOptionsOf( - cacheMaxTimeToLive: Int? = null, - cacheMinTimeToLive: Int? = null, - cacheNegativeTimeToLive: Int? = null, hostsPath: String? = null, hostsValue: io.vertx.core.buffer.Buffer? = null, - maxQueries: Int? = null, - ndots: Int? = null, + hostsRefreshPeriod: Int? = null, + servers: Iterable? = null, optResourceEnabled: Boolean? = null, + cacheMinTimeToLive: Int? = null, + cacheMaxTimeToLive: Int? = null, + cacheNegativeTimeToLive: Int? = null, queryTimeout: Long? = null, + maxQueries: Int? = null, rdFlag: Boolean? = null, - rotateServers: Boolean? = null, - roundRobinInetAddress: Boolean? = null, searchDomains: Iterable? = null, - servers: Iterable? = null): AddressResolverOptions = io.vertx.core.dns.AddressResolverOptions().apply { + ndots: Int? = null, + rotateServers: Boolean? = null, + roundRobinInetAddress: Boolean? = null): AddressResolverOptions = io.vertx.core.dns.AddressResolverOptions().apply { - if (cacheMaxTimeToLive != null) { - this.setCacheMaxTimeToLive(cacheMaxTimeToLive) - } - if (cacheMinTimeToLive != null) { - this.setCacheMinTimeToLive(cacheMinTimeToLive) - } - if (cacheNegativeTimeToLive != null) { - this.setCacheNegativeTimeToLive(cacheNegativeTimeToLive) - } if (hostsPath != null) { this.setHostsPath(hostsPath) } if (hostsValue != null) { this.setHostsValue(hostsValue) } - if (maxQueries != null) { - this.setMaxQueries(maxQueries) + if (hostsRefreshPeriod != null) { + this.setHostsRefreshPeriod(hostsRefreshPeriod) } - if (ndots != null) { - this.setNdots(ndots) + if (servers != null) { + this.setServers(servers.toList()) } if (optResourceEnabled != null) { this.setOptResourceEnabled(optResourceEnabled) } + if (cacheMinTimeToLive != null) { + this.setCacheMinTimeToLive(cacheMinTimeToLive) + } + if (cacheMaxTimeToLive != null) { + this.setCacheMaxTimeToLive(cacheMaxTimeToLive) + } + if (cacheNegativeTimeToLive != null) { + this.setCacheNegativeTimeToLive(cacheNegativeTimeToLive) + } if (queryTimeout != null) { this.setQueryTimeout(queryTimeout) } + if (maxQueries != null) { + this.setMaxQueries(maxQueries) + } if (rdFlag != null) { this.setRdFlag(rdFlag) } + if (searchDomains != null) { + this.setSearchDomains(searchDomains.toList()) + } + if (ndots != null) { + this.setNdots(ndots) + } if (rotateServers != null) { this.setRotateServers(rotateServers) } if (roundRobinInetAddress != null) { this.setRoundRobinInetAddress(roundRobinInetAddress) } - if (searchDomains != null) { - this.setSearchDomains(searchDomains.toList()) - } - if (servers != null) { - this.setServers(servers.toList()) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/DnsClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/DnsClientOptions.kt index c87479fb..d75e5aeb 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/DnsClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/dns/DnsClientOptions.kt @@ -23,38 +23,38 @@ import io.netty.handler.logging.ByteBufFormat * * Configuration options for Vert.x DNS client. * - * @param activityLogFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param host Set the host name to be used by this client in requests. - * @param logActivity Set to true to enable network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param port Set the port to be used by this client in requests. + * @param host Set the host name to be used by this client in requests. * @param queryTimeout Set the query timeout in milliseconds, i.e the amount of time after a query is considered to be failed. + * @param logActivity Set to true to enable network activity logging: Netty's pipeline is configured for logging on Netty's logger. + * @param activityLogFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. * @param recursionDesired Set whether or not recursion is desired * *

* NOTE: This function has been automatically generated from the [io.vertx.core.dns.DnsClientOptions original] using Vert.x codegen. */ fun dnsClientOptionsOf( - activityLogFormat: ByteBufFormat? = null, - host: String? = null, - logActivity: Boolean? = null, port: Int? = null, + host: String? = null, queryTimeout: Long? = null, + logActivity: Boolean? = null, + activityLogFormat: ByteBufFormat? = null, recursionDesired: Boolean? = null): DnsClientOptions = io.vertx.core.dns.DnsClientOptions().apply { - if (activityLogFormat != null) { - this.setActivityLogFormat(activityLogFormat) + if (port != null) { + this.setPort(port) } if (host != null) { this.setHost(host) } + if (queryTimeout != null) { + this.setQueryTimeout(queryTimeout) + } if (logActivity != null) { this.setLogActivity(logActivity) } - if (port != null) { - this.setPort(port) - } - if (queryTimeout != null) { - this.setQueryTimeout(queryTimeout) + if (activityLogFormat != null) { + this.setActivityLogFormat(activityLogFormat) } if (recursionDesired != null) { this.setRecursionDesired(recursionDesired) diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/DeliveryOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/DeliveryOptions.kt index 27368eb5..44fd430f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/DeliveryOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/DeliveryOptions.kt @@ -26,22 +26,25 @@ import io.vertx.core.tracing.TracingPolicy * Delivery options allow to configure delivery timeout and message codec name, and to provide any headers * that you wish to send with the message. * + * @param sendTimeout Set the send timeout. * @param codecName Set the codec name. * @param headers Add a message header.

Message headers can be sent with any message and will be accessible with [io.vertx.core.eventbus.Message] at the recipient. * @param localOnly Whether a message should be delivered to local consumers only. Defaults to false.

This option is effective in clustered mode only and does not apply to reply messages. - * @param sendTimeout Set the send timeout. * @param tracingPolicy Set the tracing policy when Vert.x has tracing enabled. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.eventbus.DeliveryOptions original] using Vert.x codegen. */ fun deliveryOptionsOf( + sendTimeout: Long? = null, codecName: String? = null, headers: Map? = null, localOnly: Boolean? = null, - sendTimeout: Long? = null, tracingPolicy: TracingPolicy? = null): DeliveryOptions = io.vertx.core.eventbus.DeliveryOptions().apply { + if (sendTimeout != null) { + this.setSendTimeout(sendTimeout) + } if (codecName != null) { this.setCodecName(codecName) } @@ -53,9 +56,6 @@ fun deliveryOptionsOf( if (localOnly != null) { this.setLocalOnly(localOnly) } - if (sendTimeout != null) { - this.setSendTimeout(sendTimeout) - } if (tracingPolicy != null) { this.setTracingPolicy(tracingPolicy) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/EventBusOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/EventBusOptions.kt index 0cb437ef..978f6e72 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/EventBusOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/eventbus/EventBusOptions.kt @@ -31,220 +31,217 @@ import java.util.concurrent.TimeUnit * * Options to configure the event bus. * - * @param acceptBacklog Set the accept back log. + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param clientAuth Set whether client auth is required - * @param clusterNodeMetadata Set information about this node when Vert.x is clustered.

The data may be used by the [io.vertx.core.spi.cluster.NodeSelector] to select a node for a given message. For example, it could be used to implement a partioning strategy.

The default [io.vertx.core.spi.cluster.NodeSelector] does not use the node metadata. - * @param clusterPingInterval Set the value of cluster ping interval, in ms. - * @param clusterPingReplyInterval Set the value of cluster ping reply interval, in ms. - * @param clusterPublicHost Set the public facing hostname to be used for clustering. Sometimes, e.g. when running on certain clouds, the local address the server listens on for clustering is not the same address that other nodes connect to it at, as the OS / cloud infrastructure does some kind of proxying. If this is the case you can specify a public hostname which is different from the hostname the server listens at.

The default value is null which means use the same as the cluster hostname. - * @param clusterPublicPort See [io.vertx.core.eventbus.EventBusOptions] for an explanation. - * @param connectTimeout Sets the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param host Sets the host. Defaults to null.

When the clustered eventbus starts, it tries to bind to the provided host. If host is null, then it tries to bind to the same host as the underlying cluster manager. As a last resort, an address will be picked among the available network interfaces. + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.eventbus.EventBusOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.eventbus.EventBusOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.eventbus.EventBusOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Sets the port. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.eventbus.EventBusOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reconnectAttempts Sets the value of reconnect attempts. - * @param reconnectInterval Set the reconnect interval. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param clientAuth Set whether client auth is required + * @param acceptBacklog Set the accept back log. + * @param host Sets the host. Defaults to null.

When the clustered eventbus starts, it tries to bind to the provided host. If host is null, then it tries to bind to the same host as the underlying cluster manager. As a last resort, an address will be picked among the available network interfaces. + * @param port Sets the port. + * @param reconnectAttempts Sets the value of reconnect attempts. + * @param reconnectInterval Set the reconnect interval. * @param trustAll Set whether all server certificates should be trusted. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.eventbus.EventBusOptions] + * @param connectTimeout Sets the connect timeout + * @param clusterPingInterval Set the value of cluster ping interval, in ms. + * @param clusterPingReplyInterval Set the value of cluster ping reply interval, in ms. + * @param clusterPublicHost Set the public facing hostname to be used for clustering. Sometimes, e.g. when running on certain clouds, the local address the server listens on for clustering is not the same address that other nodes connect to it at, as the OS / cloud infrastructure does some kind of proxying. If this is the case you can specify a public hostname which is different from the hostname the server listens at.

The default value is null which means use the same as the cluster hostname. + * @param clusterPublicPort See [io.vertx.core.eventbus.EventBusOptions] for an explanation. + * @param clusterNodeMetadata Set information about this node when Vert.x is clustered.

The data may be used by the [io.vertx.core.spi.cluster.NodeSelector] to select a node for a given message. For example, it could be used to implement a partioning strategy.

The default [io.vertx.core.spi.cluster.NodeSelector] does not use the node metadata. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.eventbus.EventBusOptions original] using Vert.x codegen. */ fun eventBusOptionsOf( - acceptBacklog: Int? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - clientAuth: ClientAuth? = null, - clusterNodeMetadata: io.vertx.core.json.JsonObject? = null, - clusterPingInterval: Long? = null, - clusterPingReplyInterval: Long? = null, - clusterPublicHost: String? = null, - clusterPublicPort: Int? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - host: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reconnectAttempts: Int? = null, - reconnectInterval: Long? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + clientAuth: ClientAuth? = null, + acceptBacklog: Int? = null, + host: String? = null, + port: Int? = null, + reconnectAttempts: Int? = null, + reconnectInterval: Long? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - writeIdleTimeout: Int? = null): EventBusOptions = io.vertx.core.eventbus.EventBusOptions().apply { + connectTimeout: Int? = null, + clusterPingInterval: Long? = null, + clusterPingReplyInterval: Long? = null, + clusterPublicHost: String? = null, + clusterPublicPort: Int? = null, + clusterNodeMetadata: io.vertx.core.json.JsonObject? = null): EventBusOptions = io.vertx.core.eventbus.EventBusOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) - } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (clientAuth != null) { - this.setClientAuth(clientAuth) - } - if (clusterNodeMetadata != null) { - this.setClusterNodeMetadata(clusterNodeMetadata) - } - if (clusterPingInterval != null) { - this.setClusterPingInterval(clusterPingInterval) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (clusterPingReplyInterval != null) { - this.setClusterPingReplyInterval(clusterPingReplyInterval) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (clusterPublicHost != null) { - this.setClusterPublicHost(clusterPublicHost) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (clusterPublicPort != null) { - this.setClusterPublicPort(clusterPublicPort) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (reusePort != null) { + this.setReusePort(reusePort) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (host != null) { - this.setHost(host) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (port != null) { - this.setPort(port) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (reconnectAttempts != null) { - this.setReconnectAttempts(reconnectAttempts) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (reconnectInterval != null) { - this.setReconnectInterval(reconnectInterval) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) + } + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) + } + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -252,41 +249,44 @@ fun eventBusOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (clientAuth != null) { + this.setClientAuth(clientAuth) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (host != null) { + this.setHost(host) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (port != null) { + this.setPort(port) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (reconnectAttempts != null) { + this.setReconnectAttempts(reconnectAttempts) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (reconnectInterval != null) { + this.setReconnectInterval(reconnectInterval) } if (trustAll != null) { this.setTrustAll(trustAll) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (clusterPingInterval != null) { + this.setClusterPingInterval(clusterPingInterval) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (clusterPingReplyInterval != null) { + this.setClusterPingReplyInterval(clusterPingReplyInterval) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (clusterPublicHost != null) { + this.setClusterPublicHost(clusterPublicHost) + } + if (clusterPublicPort != null) { + this.setClusterPublicPort(clusterPublicPort) + } + if (clusterNodeMetadata != null) { + this.setClusterNodeMetadata(clusterNodeMetadata) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/CopyOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/CopyOptions.kt index 85ff18b5..1cbb4667 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/CopyOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/CopyOptions.kt @@ -22,31 +22,31 @@ import io.vertx.core.file.CopyOptions * * Describes the copy (and move) options. * - * @param atomicMove Whether move should be performed as an atomic filesystem operation. Defaults to false. + * @param replaceExisting Whether an existing file, empty directory, or link should be replaced. Defaults to false. * @param copyAttributes Whether the file attributes should be copied. Defaults to false. + * @param atomicMove Whether move should be performed as an atomic filesystem operation. Defaults to false. * @param nofollowLinks Whether symbolic links should not be followed during copy or move operations. Defaults to false. - * @param replaceExisting Whether an existing file, empty directory, or link should be replaced. Defaults to false. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.file.CopyOptions original] using Vert.x codegen. */ fun copyOptionsOf( - atomicMove: Boolean? = null, + replaceExisting: Boolean? = null, copyAttributes: Boolean? = null, - nofollowLinks: Boolean? = null, - replaceExisting: Boolean? = null): CopyOptions = io.vertx.core.file.CopyOptions().apply { + atomicMove: Boolean? = null, + nofollowLinks: Boolean? = null): CopyOptions = io.vertx.core.file.CopyOptions().apply { - if (atomicMove != null) { - this.setAtomicMove(atomicMove) + if (replaceExisting != null) { + this.setReplaceExisting(replaceExisting) } if (copyAttributes != null) { this.setCopyAttributes(copyAttributes) } + if (atomicMove != null) { + this.setAtomicMove(atomicMove) + } if (nofollowLinks != null) { this.setNofollowLinks(nofollowLinks) } - if (replaceExisting != null) { - this.setReplaceExisting(replaceExisting) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/FileSystemOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/FileSystemOptions.kt index 8c865327..f23d9d32 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/FileSystemOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/FileSystemOptions.kt @@ -24,25 +24,25 @@ import io.vertx.core.file.FileSystemOptions * those specific implementations. * * @param classPathResolvingEnabled When vert.x cannot find the file on the filesystem it tries to resolve the file from the class path when this is set to true. - * @param fileCacheDir When vert.x reads a file that is packaged with the application it gets extracted to this directory first and subsequent reads will use the extracted file to get better IO performance. * @param fileCachingEnabled Set to true to cache files on the real file system when the filesystem performs class path resolving. + * @param fileCacheDir When vert.x reads a file that is packaged with the application it gets extracted to this directory first and subsequent reads will use the extracted file to get better IO performance. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.file.FileSystemOptions original] using Vert.x codegen. */ fun fileSystemOptionsOf( classPathResolvingEnabled: Boolean? = null, - fileCacheDir: String? = null, - fileCachingEnabled: Boolean? = null): FileSystemOptions = io.vertx.core.file.FileSystemOptions().apply { + fileCachingEnabled: Boolean? = null, + fileCacheDir: String? = null): FileSystemOptions = io.vertx.core.file.FileSystemOptions().apply { if (classPathResolvingEnabled != null) { this.setClassPathResolvingEnabled(classPathResolvingEnabled) } - if (fileCacheDir != null) { - this.setFileCacheDir(fileCacheDir) - } if (fileCachingEnabled != null) { this.setFileCachingEnabled(fileCachingEnabled) } + if (fileCacheDir != null) { + this.setFileCacheDir(fileCacheDir) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/OpenOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/OpenOptions.kt index 8cdf9bfd..d3ca30fe 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/OpenOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/file/OpenOptions.kt @@ -22,36 +22,42 @@ import io.vertx.core.file.OpenOptions * * Describes how an [io.vertx.core.file.AsyncFile] should be opened. * - * @param append Whether the file should be opened in append mode. Defaults to false. + * @param perms Set the permissions string + * @param read Set whether the file is to be opened for reading + * @param write Set whether the file is to be opened for writing * @param create Set whether the file should be created if it does not already exist. * @param createNew Set whether the file should be created and fail if it does exist already. * @param deleteOnClose Set whether the file should be deleted when it's closed, or the JVM is shutdown. - * @param dsync Set whether every write to the file's content will be written synchronously to the underlying hardware. - * @param perms Set the permissions string - * @param read Set whether the file is to be opened for reading + * @param truncateExisting Set whether the file should be truncated to zero length on opening if it exists and is opened for write * @param sparse Set whether a hint should be provided that the file to created is sparse * @param sync Set whether every write to the file's content and meta-data will be written synchronously to the underlying hardware. - * @param truncateExisting Set whether the file should be truncated to zero length on opening if it exists and is opened for write - * @param write Set whether the file is to be opened for writing + * @param dsync Set whether every write to the file's content will be written synchronously to the underlying hardware. + * @param append Whether the file should be opened in append mode. Defaults to false. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.file.OpenOptions original] using Vert.x codegen. */ fun openOptionsOf( - append: Boolean? = null, + perms: String? = null, + read: Boolean? = null, + write: Boolean? = null, create: Boolean? = null, createNew: Boolean? = null, deleteOnClose: Boolean? = null, - dsync: Boolean? = null, - perms: String? = null, - read: Boolean? = null, + truncateExisting: Boolean? = null, sparse: Boolean? = null, sync: Boolean? = null, - truncateExisting: Boolean? = null, - write: Boolean? = null): OpenOptions = io.vertx.core.file.OpenOptions().apply { + dsync: Boolean? = null, + append: Boolean? = null): OpenOptions = io.vertx.core.file.OpenOptions().apply { - if (append != null) { - this.setAppend(append) + if (perms != null) { + this.setPerms(perms) + } + if (read != null) { + this.setRead(read) + } + if (write != null) { + this.setWrite(write) } if (create != null) { this.setCreate(create) @@ -62,14 +68,8 @@ fun openOptionsOf( if (deleteOnClose != null) { this.setDeleteOnClose(deleteOnClose) } - if (dsync != null) { - this.setDsync(dsync) - } - if (perms != null) { - this.setPerms(perms) - } - if (read != null) { - this.setRead(read) + if (truncateExisting != null) { + this.setTruncateExisting(truncateExisting) } if (sparse != null) { this.setSparse(sparse) @@ -77,11 +77,11 @@ fun openOptionsOf( if (sync != null) { this.setSync(sync) } - if (truncateExisting != null) { - this.setTruncateExisting(truncateExisting) + if (dsync != null) { + this.setDsync(dsync) } - if (write != null) { - this.setWrite(write) + if (append != null) { + this.setAppend(append) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/GoAway.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/GoAway.kt index 7a23d740..05231e4c 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/GoAway.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/GoAway.kt @@ -22,26 +22,26 @@ import io.vertx.core.http.GoAway * * A frame. * - * @param debugData Set the additional debug data * @param errorCode * @param lastStreamId Set the last stream id. + * @param debugData Set the additional debug data * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.GoAway original] using Vert.x codegen. */ fun goAwayOf( - debugData: io.vertx.core.buffer.Buffer? = null, errorCode: Long? = null, - lastStreamId: Int? = null): GoAway = io.vertx.core.http.GoAway().apply { + lastStreamId: Int? = null, + debugData: io.vertx.core.buffer.Buffer? = null): GoAway = io.vertx.core.http.GoAway().apply { - if (debugData != null) { - this.setDebugData(debugData) - } if (errorCode != null) { this.setErrorCode(errorCode) } if (lastStreamId != null) { this.setLastStreamId(lastStreamId) } + if (debugData != null) { + this.setDebugData(debugData) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/Http2Settings.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/Http2Settings.kt index 4ca1772b..30d4bea1 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/Http2Settings.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/Http2Settings.kt @@ -26,40 +26,40 @@ import io.vertx.core.http.Http2Settings * protocol extensions. * * @param headerTableSize Set HTTP/2 setting. - * @param initialWindowSize Set the HTTP/2 setting + * @param pushEnabled Set the HTTP/2 setting * @param maxConcurrentStreams Set the HTTP/2 setting + * @param initialWindowSize Set the HTTP/2 setting * @param maxFrameSize Set the HTTP/2 setting * @param maxHeaderListSize Set the HTTP/2 setting - * @param pushEnabled Set the HTTP/2 setting * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.Http2Settings original] using Vert.x codegen. */ fun http2SettingsOf( headerTableSize: Long? = null, - initialWindowSize: Int? = null, + pushEnabled: Boolean? = null, maxConcurrentStreams: Long? = null, + initialWindowSize: Int? = null, maxFrameSize: Int? = null, - maxHeaderListSize: Long? = null, - pushEnabled: Boolean? = null): Http2Settings = io.vertx.core.http.Http2Settings().apply { + maxHeaderListSize: Long? = null): Http2Settings = io.vertx.core.http.Http2Settings().apply { if (headerTableSize != null) { this.setHeaderTableSize(headerTableSize) } - if (initialWindowSize != null) { - this.setInitialWindowSize(initialWindowSize) + if (pushEnabled != null) { + this.setPushEnabled(pushEnabled) } if (maxConcurrentStreams != null) { this.setMaxConcurrentStreams(maxConcurrentStreams) } + if (initialWindowSize != null) { + this.setInitialWindowSize(initialWindowSize) + } if (maxFrameSize != null) { this.setMaxFrameSize(maxFrameSize) } if (maxHeaderListSize != null) { this.setMaxHeaderListSize(maxHeaderListSize) } - if (pushEnabled != null) { - this.setPushEnabled(pushEnabled) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpClientOptions.kt index 41b44645..9c1ce47d 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpClientOptions.kt @@ -34,432 +34,357 @@ import java.util.concurrent.TimeUnit * * Options describing how an [io.vertx.core.http.HttpClient] will make connections. * + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.core.http.HttpClientOptions]:

- * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. - * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. - * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. - * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). - * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. - * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by [io.vertx.core.http.Http2Settings], so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. - * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param http2MaxPoolSize Set the maximum pool size for HTTP/2 connections - * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpClientOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpClientOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. - * @param jdkSslEngineOptions - * @param keepAlive Set whether keep alive is enabled on the client - * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxChunkSize Set the maximum HTTP chunk size - * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . - * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") - * @param maxPoolSize Set the maximum pool size for connections - * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. - * @param 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. - * @param maxWebSocketFrameSize Set the max WebSocket frame size - * @param maxWebSocketMessageSize Set the max WebSocket message size - * @param maxWebSockets Set the max number of WebSockets per endpoint. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param name Set the client name, used when the client is shared, otherwise ignored. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param pipelining Set whether pipe-lining is enabled on the client - * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. - * @param poolCleanerPeriod 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. - * @param poolEventLoopSize Set the number of event-loop the pool use.

The default size is 0. - * @param protocolVersion Set the protocol version. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sendUnmaskedFrames Set true when the client wants to skip frame masking.

You may want to set it true on server by server WebSocket communication: in this case you are by passing RFC6455 protocol.

It's false as default. - * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param tryUseCompression Set whether compression is enabled - * @param tryUsePerFrameWebSocketCompression Set whether the client will offer the WebSocket per-frame deflate compression extension. - * @param tryUsePerMessageWebSocketCompression Set whether the client will offer the WebSocket per-message deflate compression extension. - * @param useAlpn Set the ALPN usage. + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param keyCertOptions Set the key/cert options. + * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. + * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by [io.vertx.core.http.Http2Settings], so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. + * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param keepAlive Set whether keep alive is enabled on the client + * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param pipelining Set whether pipe-lining is enabled on the client + * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. * @param verifyHost Set whether hostname verification is enabled - * @param webSocketClosingTimeout Set the amount of time a client WebSocket will wait until it closes the TCP connection after receiving a close frame.

When a WebSocket is closed, the server should close the TCP connection. This timeout will close the TCP connection on the client when it expires.

Set to 0L closes the TCP connection immediately after receiving the close frame.

Set to a negative value to disable it. - * @param webSocketCompressionAllowClientNoContext Set whether the client_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param webSocketCompressionLevel Set the WebSocket deflate compression level. - * @param webSocketCompressionRequestServerNoContext Set whether the server_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpClientOptions] + * @param tryUseCompression Set whether compression is enabled + * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. + * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. + * @param protocolVersion Set the protocol version. + * @param maxChunkSize Set the maximum HTTP chunk size + * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") + * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . + * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. + * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.core.http.HttpClientOptions]:

+ * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). + * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. + * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. + * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. + * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. + * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. + * @param name Set the client name, used when the client is shared, otherwise ignored. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.HttpClientOptions original] using Vert.x codegen. */ fun httpClientOptionsOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - alpnVersions: Iterable? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - decoderInitialBufferSize: Int? = null, - defaultHost: String? = null, - defaultPort: Int? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - forceSni: Boolean? = null, - http2ClearTextUpgrade: Boolean? = null, - http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, - http2ConnectionWindowSize: Int? = null, - http2KeepAliveTimeout: Int? = null, - http2MaxPoolSize: Int? = null, - http2MultiplexingLimit: Int? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - initialSettings: io.vertx.core.http.Http2Settings? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keepAlive: Boolean? = null, - keepAliveTimeout: Int? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - maxChunkSize: Int? = null, - maxHeaderSize: Int? = null, - maxInitialLineLength: Int? = null, - maxPoolSize: Int? = null, - maxRedirects: Int? = null, - maxWaitQueueSize: Int? = null, - maxWebSocketFrameSize: Int? = null, - maxWebSocketMessageSize: Int? = null, - maxWebSockets: Int? = null, - metricsName: String? = null, - name: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - pipelining: Boolean? = null, - pipeliningLimit: Int? = null, - poolCleanerPeriod: Int? = null, - poolEventLoopSize: Int? = null, - protocolVersion: HttpVersion? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sendUnmaskedFrames: Boolean? = null, - shared: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - tryUseCompression: Boolean? = null, - tryUsePerFrameWebSocketCompression: Boolean? = null, - tryUsePerMessageWebSocketCompression: Boolean? = null, - useAlpn: Boolean? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + http2MultiplexingLimit: Int? = null, + http2ConnectionWindowSize: Int? = null, + http2KeepAliveTimeout: Int? = null, + keepAlive: Boolean? = null, + keepAliveTimeout: Int? = null, + pipelining: Boolean? = null, + pipeliningLimit: Int? = null, verifyHost: Boolean? = null, - webSocketClosingTimeout: Int? = null, - webSocketCompressionAllowClientNoContext: Boolean? = null, - webSocketCompressionLevel: Int? = null, - webSocketCompressionRequestServerNoContext: Boolean? = null, - writeIdleTimeout: Int? = null): HttpClientOptions = io.vertx.core.http.HttpClientOptions().apply { + tryUseCompression: Boolean? = null, + defaultHost: String? = null, + defaultPort: Int? = null, + protocolVersion: HttpVersion? = null, + maxChunkSize: Int? = null, + maxInitialLineLength: Int? = null, + maxHeaderSize: Int? = null, + initialSettings: io.vertx.core.http.Http2Settings? = null, + alpnVersions: Iterable? = null, + http2ClearTextUpgrade: Boolean? = null, + http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, + maxRedirects: Int? = null, + forceSni: Boolean? = null, + decoderInitialBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, + shared: Boolean? = null, + name: String? = null): HttpClientOptions = io.vertx.core.http.HttpClientOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (alpnVersions != null) { - this.setAlpnVersions(alpnVersions.toList()) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (decoderInitialBufferSize != null) { - this.setDecoderInitialBufferSize(decoderInitialBufferSize) - } - if (defaultHost != null) { - this.setDefaultHost(defaultHost) - } - if (defaultPort != null) { - this.setDefaultPort(defaultPort) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (forceSni != null) { - this.setForceSni(forceSni) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (http2ClearTextUpgrade != null) { - this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (http2ClearTextUpgradeWithPreflightRequest != null) { - this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (http2ConnectionWindowSize != null) { - this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (http2KeepAliveTimeout != null) { - this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (http2MaxPoolSize != null) { - this.setHttp2MaxPoolSize(http2MaxPoolSize) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (http2MultiplexingLimit != null) { - this.setHttp2MultiplexingLimit(http2MultiplexingLimit) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (initialSettings != null) { - this.setInitialSettings(initialSettings) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (keepAlive != null) { - this.setKeepAlive(keepAlive) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (keepAliveTimeout != null) { - this.setKeepAliveTimeout(keepAliveTimeout) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxChunkSize != null) { - this.setMaxChunkSize(maxChunkSize) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (maxHeaderSize != null) { - this.setMaxHeaderSize(maxHeaderSize) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (maxInitialLineLength != null) { - this.setMaxInitialLineLength(maxInitialLineLength) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (maxPoolSize != null) { - this.setMaxPoolSize(maxPoolSize) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxRedirects != null) { - this.setMaxRedirects(maxRedirects) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxWaitQueueSize != null) { - this.setMaxWaitQueueSize(maxWaitQueueSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (maxWebSocketFrameSize != null) { - this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (maxWebSocketMessageSize != null) { - this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (maxWebSockets != null) { - this.setMaxWebSockets(maxWebSockets) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (metricsName != null) { - this.setMetricsName(metricsName) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (name != null) { - this.setName(name) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pipelining != null) { - this.setPipelining(pipelining) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pipeliningLimit != null) { - this.setPipeliningLimit(pipeliningLimit) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) } - if (poolCleanerPeriod != null) { - this.setPoolCleanerPeriod(poolCleanerPeriod) + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (poolEventLoopSize != null) { - this.setPoolEventLoopSize(poolEventLoopSize) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (protocolVersion != null) { - this.setProtocolVersion(protocolVersion) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) + } + if (metricsName != null) { + this.setMetricsName(metricsName) } if (proxyOptions != null) { this.setProxyOptions(proxyOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) - } - if (sendUnmaskedFrames != null) { - this.setSendUnmaskedFrames(sendUnmaskedFrames) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (shared != null) { - this.setShared(shared) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (ssl != null) { - this.setSsl(ssl) + if (http2MultiplexingLimit != null) { + this.setHttp2MultiplexingLimit(http2MultiplexingLimit) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (http2ConnectionWindowSize != null) { + this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (http2KeepAliveTimeout != null) { + this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (keepAlive != null) { + this.setKeepAlive(keepAlive) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (keepAliveTimeout != null) { + this.setKeepAliveTimeout(keepAliveTimeout) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (pipelining != null) { + this.setPipelining(pipelining) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (pipeliningLimit != null) { + this.setPipeliningLimit(pipeliningLimit) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (verifyHost != null) { + this.setVerifyHost(verifyHost) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (tryUseCompression != null) { + this.setTryUseCompression(tryUseCompression) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (defaultHost != null) { + this.setDefaultHost(defaultHost) } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) + if (defaultPort != null) { + this.setDefaultPort(defaultPort) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (protocolVersion != null) { + this.setProtocolVersion(protocolVersion) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (maxChunkSize != null) { + this.setMaxChunkSize(maxChunkSize) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (maxInitialLineLength != null) { + this.setMaxInitialLineLength(maxInitialLineLength) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (maxHeaderSize != null) { + this.setMaxHeaderSize(maxHeaderSize) } - if (tryUseCompression != null) { - this.setTryUseCompression(tryUseCompression) + if (initialSettings != null) { + this.setInitialSettings(initialSettings) } - if (tryUsePerFrameWebSocketCompression != null) { - this.setTryUsePerFrameWebSocketCompression(tryUsePerFrameWebSocketCompression) + if (alpnVersions != null) { + this.setAlpnVersions(alpnVersions.toList()) } - if (tryUsePerMessageWebSocketCompression != null) { - this.setTryUsePerMessageWebSocketCompression(tryUsePerMessageWebSocketCompression) + if (http2ClearTextUpgrade != null) { + this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (http2ClearTextUpgradeWithPreflightRequest != null) { + this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) } - if (verifyHost != null) { - this.setVerifyHost(verifyHost) + if (maxRedirects != null) { + this.setMaxRedirects(maxRedirects) } - if (webSocketClosingTimeout != null) { - this.setWebSocketClosingTimeout(webSocketClosingTimeout) + if (forceSni != null) { + this.setForceSni(forceSni) } - if (webSocketCompressionAllowClientNoContext != null) { - this.setWebSocketCompressionAllowClientNoContext(webSocketCompressionAllowClientNoContext) + if (decoderInitialBufferSize != null) { + this.setDecoderInitialBufferSize(decoderInitialBufferSize) } - if (webSocketCompressionLevel != null) { - this.setWebSocketCompressionLevel(webSocketCompressionLevel) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } - if (webSocketCompressionRequestServerNoContext != null) { - this.setWebSocketCompressionRequestServerNoContext(webSocketCompressionRequestServerNoContext) + if (shared != null) { + this.setShared(shared) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (name != null) { + this.setName(name) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpServerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpServerOptions.kt index 36f0b438..29d9d61b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpServerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/HttpServerOptions.kt @@ -35,377 +35,377 @@ import java.util.concurrent.TimeUnit * * Represents options used by an [io.vertx.core.http.HttpServer] instance * - * @param acceptBacklog Set the accept back log - * @param acceptUnmaskedFrames Set true when the server accepts unmasked frame. As default Server doesn't accept unmasked frame, you can bypass this behaviour (RFC 6455) setting true. It's set to false as default. + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation. - * @param clientAuth Set whether client auth is required - * @param compressionLevel This method allows to set the compression level to be used in http1.x/2 response bodies when compression support is turned on (@see setCompressionSupported) and the client advertises to support deflate/gzip compression in the Accept-Encoding header default value is : 6 (Netty legacy) The compression level determines how much the data is compressed on a scale from 1 to 9, where '9' is trying to achieve the maximum compression ratio while '1' instead is giving priority to speed instead of compression ratio using some algorithm optimizations and skipping pedantic loops that usually gives just little improvements While one can think that best value is always the maximum compression ratio, there's a trade-off to consider: the most compressed level requires the most computational work to compress/decompress data, e.g. more dictionary lookups and loops. E.g. you have it set fairly high on a high-volume website, you may experience performance degradation and latency on resource serving due to CPU overload, and, however - as the computational work is required also client side while decompressing - setting an higher compression level can result in an overall higher page load time especially nowadays when many clients are handled mobile devices with a low CPU profile. see also: http://www.gzip.org/algorithm.txt - * @param compressionSupported Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header) - * @param compressors Set the list of compressor to use instead of using the default gzip/deflate [io.vertx.core.http.HttpServerOptions] configuration.

This is only active when [io.vertx.core.http.HttpServerOptions] is true. - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param decoderInitialBufferSize Set the initial buffer size for the HTTP decoder - * @param decompressionSupported Set whether the server supports decompression - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param handle100ContinueAutomatically Set whether 100 Continue should be handled automatically - * @param host Set the host - * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by [io.vertx.core.http.Http2Settings], so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param initialSettings Set the HTTP/2 connection settings immediatly sent by the server when a client connects. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxChunkSize Set the maximum HTTP chunk size that [io.vertx.core.http.HttpServerRequest] will receive - * @param maxFormAttributeSize Set the maximum size of a form attribute. Set to -1 to allow unlimited length - * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . - * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0") - * @param maxWebSocketFrameSize Set the maximum WebSocket frames size - * @param maxWebSocketMessageSize Set the maximum WebSocket message size - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param perFrameWebSocketCompressionSupported Enable or disable support for the WebSocket per-frame deflate compression extension. - * @param perMessageWebSocketCompressionSupported Enable or disable support for WebSocket per-message deflate compression extension. * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Set the port - * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. - * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param registerWebSocketWriteHandlers Whether write-handlers for server websockets should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param registerWriteHandler Has no effect on HTTP server options. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sni Set whether the server supports Server Name Indiciation - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the server behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param acceptBacklog Set the accept back log + * @param port Set the port + * @param host Set the host + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation * @param useProxyProtocol Set whether the server uses the HA Proxy protocol - * @param webSocketAllowServerNoContext Set whether the WebSocket server will accept the server_no_context_takeover parameter of the per-message deflate compression extension offered by the client. - * @param webSocketClosingTimeout Set the amount of time a server WebSocket will wait until it closes the TCP connection after sending a close frame.

When a server closes a WebSocket, it should wait the client close frame to close the TCP connection. This timeout will close the TCP connection on the server when it expires. When the TCP connection is closed receiving the close frame, the [io.vertx.core.http.WebSocket] instead of the [io.vertx.core.http.WebSocket] will be called.

Set to 0L closes the TCP connection immediately after sending the close frame.

Set to a negative value to disable it. + * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. + * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. + * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. + * @param keyCertOptions Set the key/cert options. + * @param compressionSupported Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header) + * @param compressionLevel This method allows to set the compression level to be used in http1.x/2 response bodies when compression support is turned on (@see setCompressionSupported) and the client advertises to support deflate/gzip compression in the Accept-Encoding header default value is : 6 (Netty legacy) The compression level determines how much the data is compressed on a scale from 1 to 9, where '9' is trying to achieve the maximum compression ratio while '1' instead is giving priority to speed instead of compression ratio using some algorithm optimizations and skipping pedantic loops that usually gives just little improvements While one can think that best value is always the maximum compression ratio, there's a trade-off to consider: the most compressed level requires the most computational work to compress/decompress data, e.g. more dictionary lookups and loops. E.g. you have it set fairly high on a high-volume website, you may experience performance degradation and latency on resource serving due to CPU overload, and, however - as the computational work is required also client side while decompressing - setting an higher compression level can result in an overall higher page load time especially nowadays when many clients are handled mobile devices with a low CPU profile. see also: http://www.gzip.org/algorithm.txt + * @param compressors Set the list of compressor to use instead of using the default gzip/deflate [io.vertx.core.http.HttpServerOptions] configuration.

This is only active when [io.vertx.core.http.HttpServerOptions] is true. + * @param acceptUnmaskedFrames Set true when the server accepts unmasked frame. As default Server doesn't accept unmasked frame, you can bypass this behaviour (RFC 6455) setting true. It's set to false as default. + * @param maxWebSocketFrameSize Set the maximum WebSocket frames size + * @param maxWebSocketMessageSize Set the maximum WebSocket message size + * @param webSocketSubProtocols Set the WebSocket list of sub-protocol supported by the server. + * @param handle100ContinueAutomatically Set whether 100 Continue should be handled automatically + * @param maxChunkSize Set the maximum HTTP chunk size that [io.vertx.core.http.HttpServerRequest] will receive + * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0") + * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . + * @param maxFormAttributeSize Set the maximum size of a form attribute. Set to -1 to allow unlimited length + * @param initialSettings Set the HTTP/2 connection settings immediatly sent by the server when a client connects. + * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation. + * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by [io.vertx.core.http.Http2Settings], so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. + * @param decompressionSupported Set whether the server supports decompression + * @param decoderInitialBufferSize Set the initial buffer size for the HTTP decoder + * @param perFrameWebSocketCompressionSupported Enable or disable support for the WebSocket per-frame deflate compression extension. + * @param perMessageWebSocketCompressionSupported Enable or disable support for WebSocket per-message deflate compression extension. * @param webSocketCompressionLevel Set the WebSocket compression level. + * @param webSocketAllowServerNoContext Set whether the WebSocket server will accept the server_no_context_takeover parameter of the per-message deflate compression extension offered by the client. * @param webSocketPreferredClientNoContext Set whether the WebSocket server will accept the client_no_context_takeover parameter of the per-message deflate compression extension offered by the client. - * @param webSocketSubProtocols Set the WebSocket list of sub-protocol supported by the server. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param webSocketClosingTimeout Set the amount of time a server WebSocket will wait until it closes the TCP connection after sending a close frame.

When a server closes a WebSocket, it should wait the client close frame to close the TCP connection. This timeout will close the TCP connection on the server when it expires. When the TCP connection is closed receiving the close frame, the [io.vertx.core.http.WebSocket] instead of the [io.vertx.core.http.WebSocket] will be called.

Set to 0L closes the TCP connection immediately after sending the close frame.

Set to a negative value to disable it. + * @param tracingPolicy Set the tracing policy for the server behavior when Vert.x has tracing enabled. + * @param registerWriteHandler Has no effect on HTTP server options. + * @param registerWebSocketWriteHandlers Whether write-handlers for server websockets should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.HttpServerOptions original] using Vert.x codegen. */ fun httpServerOptionsOf( - acceptBacklog: Int? = null, - acceptUnmaskedFrames: Boolean? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - alpnVersions: Iterable? = null, - clientAuth: ClientAuth? = null, - compressionLevel: Int? = null, - compressionSupported: Boolean? = null, - compressors: Iterable? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - decoderInitialBufferSize: Int? = null, - decompressionSupported: Boolean? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - handle100ContinueAutomatically: Boolean? = null, - host: String? = null, - http2ConnectionWindowSize: Int? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - initialSettings: io.vertx.core.http.Http2Settings? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - maxChunkSize: Int? = null, - maxFormAttributeSize: Int? = null, - maxHeaderSize: Int? = null, - maxInitialLineLength: Int? = null, - maxWebSocketFrameSize: Int? = null, - maxWebSocketMessageSize: Int? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - perFrameWebSocketCompressionSupported: Boolean? = null, - perMessageWebSocketCompressionSupported: Boolean? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyProtocolTimeout: Long? = null, - proxyProtocolTimeoutUnit: TimeUnit? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - registerWebSocketWriteHandlers: Boolean? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sni: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + acceptBacklog: Int? = null, + port: Int? = null, + host: String? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, useProxyProtocol: Boolean? = null, - webSocketAllowServerNoContext: Boolean? = null, - webSocketClosingTimeout: Int? = null, + proxyProtocolTimeout: Long? = null, + proxyProtocolTimeoutUnit: TimeUnit? = null, + trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + compressionSupported: Boolean? = null, + compressionLevel: Int? = null, + compressors: Iterable? = null, + acceptUnmaskedFrames: Boolean? = null, + maxWebSocketFrameSize: Int? = null, + maxWebSocketMessageSize: Int? = null, + webSocketSubProtocols: Iterable? = null, + handle100ContinueAutomatically: Boolean? = null, + maxChunkSize: Int? = null, + maxInitialLineLength: Int? = null, + maxHeaderSize: Int? = null, + maxFormAttributeSize: Int? = null, + initialSettings: io.vertx.core.http.Http2Settings? = null, + alpnVersions: Iterable? = null, + http2ConnectionWindowSize: Int? = null, + decompressionSupported: Boolean? = null, + decoderInitialBufferSize: Int? = null, + perFrameWebSocketCompressionSupported: Boolean? = null, + perMessageWebSocketCompressionSupported: Boolean? = null, webSocketCompressionLevel: Int? = null, + webSocketAllowServerNoContext: Boolean? = null, webSocketPreferredClientNoContext: Boolean? = null, - webSocketSubProtocols: Iterable? = null, - writeIdleTimeout: Int? = null): HttpServerOptions = io.vertx.core.http.HttpServerOptions().apply { + webSocketClosingTimeout: Int? = null, + tracingPolicy: TracingPolicy? = null, + registerWriteHandler: Boolean? = null, + registerWebSocketWriteHandlers: Boolean? = null): HttpServerOptions = io.vertx.core.http.HttpServerOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) - } - if (acceptUnmaskedFrames != null) { - this.setAcceptUnmaskedFrames(acceptUnmaskedFrames) - } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (alpnVersions != null) { - this.setAlpnVersions(alpnVersions.toList()) - } - if (clientAuth != null) { - this.setClientAuth(clientAuth) - } - if (compressionLevel != null) { - this.setCompressionLevel(compressionLevel) - } - if (compressionSupported != null) { - this.setCompressionSupported(compressionSupported) - } - if (compressors != null) { - this.setCompressors(compressors.toList()) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (decoderInitialBufferSize != null) { - this.setDecoderInitialBufferSize(decoderInitialBufferSize) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (decompressionSupported != null) { - this.setDecompressionSupported(decompressionSupported) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (handle100ContinueAutomatically != null) { - this.setHandle100ContinueAutomatically(handle100ContinueAutomatically) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (http2ConnectionWindowSize != null) { - this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (initialSettings != null) { - this.setInitialSettings(initialSettings) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (maxChunkSize != null) { - this.setMaxChunkSize(maxChunkSize) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (maxFormAttributeSize != null) { - this.setMaxFormAttributeSize(maxFormAttributeSize) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (maxHeaderSize != null) { - this.setMaxHeaderSize(maxHeaderSize) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxInitialLineLength != null) { - this.setMaxInitialLineLength(maxInitialLineLength) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxWebSocketFrameSize != null) { - this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (maxWebSocketMessageSize != null) { - this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } + } + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } + } + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } + } + if (useAlpn != null) { + this.setUseAlpn(useAlpn) + } + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) + } + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (perFrameWebSocketCompressionSupported != null) { - this.setPerFrameWebSocketCompressionSupported(perFrameWebSocketCompressionSupported) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (perMessageWebSocketCompressionSupported != null) { - this.setPerMessageWebSocketCompressionSupported(perMessageWebSocketCompressionSupported) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) + } + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + } + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) } if (port != null) { this.setPort(port) } - if (proxyProtocolTimeout != null) { - this.setProxyProtocolTimeout(proxyProtocolTimeout) + if (host != null) { + this.setHost(host) } - if (proxyProtocolTimeoutUnit != null) { - this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) + if (clientAuth != null) { + this.setClientAuth(clientAuth) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (sni != null) { + this.setSni(sni) } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (useProxyProtocol != null) { + this.setUseProxyProtocol(useProxyProtocol) } - if (registerWebSocketWriteHandlers != null) { - this.setRegisterWebSocketWriteHandlers(registerWebSocketWriteHandlers) + if (proxyProtocolTimeout != null) { + this.setProxyProtocolTimeout(proxyProtocolTimeout) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (proxyProtocolTimeoutUnit != null) { + this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (trafficShapingOptions != null) { + this.setTrafficShapingOptions(trafficShapingOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (compressionSupported != null) { + this.setCompressionSupported(compressionSupported) } - if (sni != null) { - this.setSni(sni) + if (compressionLevel != null) { + this.setCompressionLevel(compressionLevel) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (compressors != null) { + this.setCompressors(compressors.toList()) } - if (ssl != null) { - this.setSsl(ssl) + if (acceptUnmaskedFrames != null) { + this.setAcceptUnmaskedFrames(acceptUnmaskedFrames) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (maxWebSocketFrameSize != null) { + this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (maxWebSocketMessageSize != null) { + this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (webSocketSubProtocols != null) { + this.setWebSocketSubProtocols(webSocketSubProtocols.toList()) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (handle100ContinueAutomatically != null) { + this.setHandle100ContinueAutomatically(handle100ContinueAutomatically) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (maxChunkSize != null) { + this.setMaxChunkSize(maxChunkSize) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (maxInitialLineLength != null) { + this.setMaxInitialLineLength(maxInitialLineLength) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (maxHeaderSize != null) { + this.setMaxHeaderSize(maxHeaderSize) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (maxFormAttributeSize != null) { + this.setMaxFormAttributeSize(maxFormAttributeSize) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (initialSettings != null) { + this.setInitialSettings(initialSettings) } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) + if (alpnVersions != null) { + this.setAlpnVersions(alpnVersions.toList()) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (http2ConnectionWindowSize != null) { + this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) } - if (trafficShapingOptions != null) { - this.setTrafficShapingOptions(trafficShapingOptions) + if (decompressionSupported != null) { + this.setDecompressionSupported(decompressionSupported) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (decoderInitialBufferSize != null) { + this.setDecoderInitialBufferSize(decoderInitialBufferSize) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (perFrameWebSocketCompressionSupported != null) { + this.setPerFrameWebSocketCompressionSupported(perFrameWebSocketCompressionSupported) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (perMessageWebSocketCompressionSupported != null) { + this.setPerMessageWebSocketCompressionSupported(perMessageWebSocketCompressionSupported) } - if (useProxyProtocol != null) { - this.setUseProxyProtocol(useProxyProtocol) + if (webSocketCompressionLevel != null) { + this.setWebSocketCompressionLevel(webSocketCompressionLevel) } if (webSocketAllowServerNoContext != null) { this.setWebSocketAllowServerNoContext(webSocketAllowServerNoContext) } + if (webSocketPreferredClientNoContext != null) { + this.setWebSocketPreferredClientNoContext(webSocketPreferredClientNoContext) + } if (webSocketClosingTimeout != null) { this.setWebSocketClosingTimeout(webSocketClosingTimeout) } - if (webSocketCompressionLevel != null) { - this.setWebSocketCompressionLevel(webSocketCompressionLevel) - } - if (webSocketPreferredClientNoContext != null) { - this.setWebSocketPreferredClientNoContext(webSocketPreferredClientNoContext) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } - if (webSocketSubProtocols != null) { - this.setWebSocketSubProtocols(webSocketSubProtocols.toList()) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (registerWebSocketWriteHandlers != null) { + this.setRegisterWebSocketWriteHandlers(registerWebSocketWriteHandlers) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/PoolOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/PoolOptions.kt new file mode 100644 index 00000000..fdb1f5d7 --- /dev/null +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/PoolOptions.kt @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Red Hat, Inc. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + */ +package io.vertx.kotlin.core.http + +import io.vertx.core.http.PoolOptions + +/** + * A function providing a DSL for building [io.vertx.core.http.PoolOptions] objects. + * + * Options configuring a [io.vertx.core.http.HttpClient] pool. + * + * @param http1MaxSize Set the maximum pool size for HTTP/1.x connections + * @param http2MaxSize Set the maximum pool size for HTTP/2 connections + * @param 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. + * @param eventLoopSize Set the number of event-loop the pool use.

The default size is 0. + * @param 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. + * + *

+ * NOTE: This function has been automatically generated from the [io.vertx.core.http.PoolOptions original] using Vert.x codegen. + */ +fun poolOptionsOf( + http1MaxSize: Int? = null, + http2MaxSize: Int? = null, + cleanerPeriod: Int? = null, + eventLoopSize: Int? = null, + maxWaitQueueSize: Int? = null): PoolOptions = io.vertx.core.http.PoolOptions().apply { + + if (http1MaxSize != null) { + this.setHttp1MaxSize(http1MaxSize) + } + if (http2MaxSize != null) { + this.setHttp2MaxSize(http2MaxSize) + } + if (cleanerPeriod != null) { + this.setCleanerPeriod(cleanerPeriod) + } + if (eventLoopSize != null) { + this.setEventLoopSize(eventLoopSize) + } + if (maxWaitQueueSize != null) { + this.setMaxWaitQueueSize(maxWaitQueueSize) + } +} + diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/RequestOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/RequestOptions.kt index 9adf0624..6dafc73e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/RequestOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/RequestOptions.kt @@ -23,37 +23,37 @@ import io.vertx.core.net.ProxyOptions * * Options describing how an [io.vertx.core.http.HttpClient] will connect to make a request. * - * @param absoluteURI Parse an absolute URI to use, this will update the ssl, host, port and uri fields. - * @param followRedirects Set whether to follow HTTP redirect - * @param host Set the host name to be used by the client request. - * @param port Set the port to be used by the client request. * @param proxyOptions Override the [io.vertx.core.http.HttpClientOptions] proxy options for connections. * @param server Set the server address to be used by the client request.

When the server address is null, the address will be resolved after the host property by the Vert.x resolver.

Use this when you want to connect to a specific server address without name resolution. + * @param host Set the host name to be used by the client request. + * @param port Set the port to be used by the client request. * @param ssl Set whether SSL/TLS is enabled. + * @param uri Set the request relative URI. + * @param followRedirects Set whether to follow HTTP redirect * @param timeout Sets the amount of time after which if the request does not return any data within the timeout period an [java.util.concurrent.TimeoutException] will be passed to the exception handler and the request will be closed. + * @param absoluteURI Parse an absolute URI to use, this will update the ssl, host, port and uri fields. * @param traceOperation Override the operation the tracer use for this request. When no operation is set, the HTTP method is used instead. - * @param uri Set the request relative URI. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.RequestOptions original] using Vert.x codegen. */ fun requestOptionsOf( - absoluteURI: String? = null, - followRedirects: Boolean? = null, - host: String? = null, - port: Int? = null, proxyOptions: io.vertx.core.net.ProxyOptions? = null, server: io.vertx.core.net.SocketAddress? = null, + host: String? = null, + port: Int? = null, ssl: Boolean? = null, + uri: String? = null, + followRedirects: Boolean? = null, timeout: Long? = null, - traceOperation: String? = null, - uri: String? = null): RequestOptions = io.vertx.core.http.RequestOptions().apply { + absoluteURI: String? = null, + traceOperation: String? = null): RequestOptions = io.vertx.core.http.RequestOptions().apply { - if (absoluteURI != null) { - this.setAbsoluteURI(absoluteURI) + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) } - if (followRedirects != null) { - this.setFollowRedirects(followRedirects) + if (server != null) { + this.setServer(server) } if (host != null) { this.setHost(host) @@ -61,23 +61,23 @@ fun requestOptionsOf( if (port != null) { this.setPort(port) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (server != null) { - this.setServer(server) - } if (ssl != null) { this.setSsl(ssl) } + if (uri != null) { + this.setURI(uri) + } + if (followRedirects != null) { + this.setFollowRedirects(followRedirects) + } if (timeout != null) { this.setTimeout(timeout) } + if (absoluteURI != null) { + this.setAbsoluteURI(absoluteURI) + } if (traceOperation != null) { this.setTraceOperation(traceOperation) } - if (uri != null) { - this.setURI(uri) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/StreamPriority.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/StreamPriority.kt index 50d9b784..aa9da6ea 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/StreamPriority.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/StreamPriority.kt @@ -22,26 +22,26 @@ import io.vertx.core.http.StreamPriority * * This class represents HTTP/2 stream priority defined in RFC 7540 clause 5.3 * + * @param weight Set the priority weight. * @param dependency Set the priority dependency value. * @param exclusive Set the priority exclusive value. - * @param weight Set the priority weight. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.StreamPriority original] using Vert.x codegen. */ fun streamPriorityOf( + weight: Short? = null, dependency: Int? = null, - exclusive: Boolean? = null, - weight: Short? = null): StreamPriority = io.vertx.core.http.StreamPriority().apply { + exclusive: Boolean? = null): StreamPriority = io.vertx.core.http.StreamPriority().apply { + if (weight != null) { + this.setWeight(weight) + } if (dependency != null) { this.setDependency(dependency) } if (exclusive != null) { this.setExclusive(exclusive) } - if (weight != null) { - this.setWeight(weight) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketClientOptions.kt new file mode 100644 index 00000000..b4872165 --- /dev/null +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketClientOptions.kt @@ -0,0 +1,270 @@ +/* + * Copyright 2019 Red Hat, Inc. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + */ +package io.vertx.kotlin.core.http + +import io.vertx.core.http.WebSocketClientOptions +import io.netty.handler.logging.ByteBufFormat +import io.vertx.core.net.JdkSSLEngineOptions +import io.vertx.core.net.JksOptions +import io.vertx.core.net.OpenSSLEngineOptions +import io.vertx.core.net.PemKeyCertOptions +import io.vertx.core.net.PemTrustOptions +import io.vertx.core.net.PfxOptions +import io.vertx.core.net.ProxyOptions +import java.util.concurrent.TimeUnit + +fun webSocketClientOptionsOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, + activityLogDataFormat: ByteBufFormat? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, + idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, + idleTimeoutUnit: TimeUnit? = null, + ssl: Boolean? = null, + keyStoreOptions: io.vertx.core.net.JksOptions? = null, + pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, + pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, + sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, + tcpFastOpen: Boolean? = null, + tcpCork: Boolean? = null, + tcpQuickAck: Boolean? = null, + tcpUserTimeout: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + trustAll: Boolean? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + defaultHost: String? = null, + defaultPort: Int? = null, + verifyHost: Boolean? = null, + sendUnmaskedFrames: Boolean? = null, + maxFrameSize: Int? = null, + maxMessageSize: Int? = null, + maxConnections: Int? = null, + tryUsePerFrameCompression: Boolean? = null, + tryUsePerMessageCompression: Boolean? = null, + compressionLevel: Int? = null, + compressionAllowClientNoContext: Boolean? = null, + compressionRequestServerNoContext: Boolean? = null, + closingTimeout: Int? = null, + shared: Boolean? = null, + name: String? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): WebSocketClientOptions = io.vertx.core.http.WebSocketClientOptions().apply { + + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) + } + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) + } + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) + } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) + } + if (logActivity != null) { + this.setLogActivity(logActivity) + } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) + } + if (reusePort != null) { + this.setReusePort(reusePort) + } + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) + } + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) + } + if (idleTimeout != null) { + this.setIdleTimeout(idleTimeout) + } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) + } + if (ssl != null) { + this.setSsl(ssl) + } + if (keyStoreOptions != null) { + this.setKeyStoreOptions(keyStoreOptions) + } + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) + } + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) + } + if (trustOptions != null) { + this.setTrustOptions(trustOptions) + } + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) + } + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) + } + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) + } + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } + } + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } + } + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } + } + if (useAlpn != null) { + this.setUseAlpn(useAlpn) + } + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) + } + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) + } + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) + } + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) + } + if (tcpCork != null) { + this.setTcpCork(tcpCork) + } + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) + } + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) + } + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + } + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) + } + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + } + if (trustAll != null) { + this.setTrustAll(trustAll) + } + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) + } + if (metricsName != null) { + this.setMetricsName(metricsName) + } + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) + } + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) + } + if (localAddress != null) { + this.setLocalAddress(localAddress) + } + if (defaultHost != null) { + this.setDefaultHost(defaultHost) + } + if (defaultPort != null) { + this.setDefaultPort(defaultPort) + } + if (verifyHost != null) { + this.setVerifyHost(verifyHost) + } + if (sendUnmaskedFrames != null) { + this.setSendUnmaskedFrames(sendUnmaskedFrames) + } + if (maxFrameSize != null) { + this.setMaxFrameSize(maxFrameSize) + } + if (maxMessageSize != null) { + this.setMaxMessageSize(maxMessageSize) + } + if (maxConnections != null) { + this.setMaxConnections(maxConnections) + } + if (tryUsePerFrameCompression != null) { + this.setTryUsePerFrameCompression(tryUsePerFrameCompression) + } + if (tryUsePerMessageCompression != null) { + this.setTryUsePerMessageCompression(tryUsePerMessageCompression) + } + if (compressionLevel != null) { + this.setCompressionLevel(compressionLevel) + } + if (compressionAllowClientNoContext != null) { + this.setCompressionAllowClientNoContext(compressionAllowClientNoContext) + } + if (compressionRequestServerNoContext != null) { + this.setCompressionRequestServerNoContext(compressionRequestServerNoContext) + } + if (closingTimeout != null) { + this.setClosingTimeout(closingTimeout) + } + if (shared != null) { + this.setShared(shared) + } + if (name != null) { + this.setName(name) + } + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) + } +} + diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketConnectOptions.kt index 7cab717b..c2cdb380 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/http/WebSocketConnectOptions.kt @@ -16,6 +16,7 @@ package io.vertx.kotlin.core.http import io.vertx.core.http.WebSocketConnectOptions +import io.vertx.core.http.HttpMethod import io.vertx.core.http.WebsocketVersion import io.vertx.core.net.ProxyOptions @@ -24,55 +25,46 @@ import io.vertx.core.net.ProxyOptions * * Options describing how an [io.vertx.core.http.HttpClient] connect a [io.vertx.core.http.WebSocket]. * - * @param absoluteURI Parse an absolute URI to use, this will update the ssl, host, port and uri fields. - * @param allowOriginHeader Set whether to add the origin header to the WebSocket handshake request, enabled by default.

Set to false when a server does not accept WebSocket with an origin header. - * @param followRedirects Set whether to follow HTTP redirect - * @param headers Add a request header. + * @param server Set the server address to be used by the client request.

When the server address is null, the address will be resolved after the host property by the Vert.x resolver.

Use this when you want to connect to a specific server address without name resolution. * @param host Set the host name to be used by the client request. * @param port Set the port to be used by the client request. - * @param proxyOptions Override the [io.vertx.core.http.HttpClientOptions] proxy options for connections. - * @param registerWriteHandlers Whether write-handlers should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param server Set the server address to be used by the client request.

When the server address is null, the address will be resolved after the host property by the Vert.x resolver.

Use this when you want to connect to a specific server address without name resolution. * @param ssl Set whether SSL/TLS is enabled. - * @param subProtocols Set the WebSocket sub protocols to use. + * @param uri Set the request relative URI. + * @param followRedirects Set whether to follow HTTP redirect * @param timeout Sets the amount of time after which if the WebSocket handshake does not happen within the timeout period an will be passed to the exception handler and the connection will be closed. * @param traceOperation Override the operation the tracer use for this request. When no operation is set, the HTTP method is used instead. - * @param uri Set the request relative URI. * @param version Set the WebSocket version. + * @param subProtocols Set the WebSocket sub protocols to use. + * @param proxyOptions Override the [io.vertx.core.http.HttpClientOptions] proxy options for connections. + * @param allowOriginHeader Set whether to add the origin header to the WebSocket handshake request, enabled by default.

Set to false when a server does not accept WebSocket with an origin header. + * @param headers Add a request header. + * @param method Set the HTTP method to be used by the client request. + * @param absoluteURI Like [io.vertx.core.http.WebSocketConnectOptions] but using an parameter. + * @param registerWriteHandlers Whether write-handlers should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.http.WebSocketConnectOptions original] using Vert.x codegen. */ fun webSocketConnectOptionsOf( - absoluteURI: String? = null, - allowOriginHeader: Boolean? = null, - followRedirects: Boolean? = null, - headers: Map? = null, + server: io.vertx.core.net.SocketAddress? = null, host: String? = null, port: Int? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - registerWriteHandlers: Boolean? = null, - server: io.vertx.core.net.SocketAddress? = null, ssl: Boolean? = null, - subProtocols: Iterable? = null, + uri: String? = null, + followRedirects: Boolean? = null, timeout: Long? = null, traceOperation: String? = null, - uri: String? = null, - version: WebsocketVersion? = null): WebSocketConnectOptions = io.vertx.core.http.WebSocketConnectOptions().apply { + version: WebsocketVersion? = null, + subProtocols: Iterable? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + allowOriginHeader: Boolean? = null, + headers: Map? = null, + method: io.vertx.core.http.HttpMethod? = null, + absoluteURI: java.net.URL? = null, + registerWriteHandlers: Boolean? = null): WebSocketConnectOptions = io.vertx.core.http.WebSocketConnectOptions().apply { - if (absoluteURI != null) { - this.setAbsoluteURI(absoluteURI) - } - if (allowOriginHeader != null) { - this.setAllowOriginHeader(allowOriginHeader) - } - if (followRedirects != null) { - this.setFollowRedirects(followRedirects) - } - if (headers != null) { - for (item in headers) { - this.addHeader(item.key, item.value) - } + if (server != null) { + this.setServer(server) } if (host != null) { this.setHost(host) @@ -80,20 +72,14 @@ fun webSocketConnectOptionsOf( if (port != null) { this.setPort(port) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (registerWriteHandlers != null) { - this.setRegisterWriteHandlers(registerWriteHandlers) - } - if (server != null) { - this.setServer(server) - } if (ssl != null) { this.setSsl(ssl) } - if (subProtocols != null) { - this.setSubProtocols(subProtocols.toList()) + if (uri != null) { + this.setURI(uri) + } + if (followRedirects != null) { + this.setFollowRedirects(followRedirects) } if (timeout != null) { this.setTimeout(timeout) @@ -101,11 +87,31 @@ fun webSocketConnectOptionsOf( if (traceOperation != null) { this.setTraceOperation(traceOperation) } - if (uri != null) { - this.setURI(uri) - } if (version != null) { this.setVersion(version) } + if (subProtocols != null) { + this.setSubProtocols(subProtocols.toList()) + } + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) + } + if (allowOriginHeader != null) { + this.setAllowOriginHeader(allowOriginHeader) + } + if (headers != null) { + for (item in headers) { + this.addHeader(item.key, item.value) + } + } + if (method != null) { + this.setMethod(method) + } + if (absoluteURI != null) { + this.setAbsoluteURI(absoluteURI) + } + if (registerWriteHandlers != null) { + this.setRegisterWriteHandlers(registerWriteHandlers) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ClientSSLOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ClientSSLOptions.kt new file mode 100644 index 00000000..eef26ec4 --- /dev/null +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ClientSSLOptions.kt @@ -0,0 +1,99 @@ +/* + * Copyright 2019 Red Hat, Inc. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + */ +package io.vertx.kotlin.core.net + +import io.vertx.core.net.ClientSSLOptions +import java.util.concurrent.TimeUnit + +/** + * A function providing a DSL for building [io.vertx.core.net.ClientSSLOptions] objects. + * + * Client SSL options. + * + * @param trustOptions Set the trust options. + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval + * @param trustAll Set whether all server certificates should be trusted + * @param keyCertOptions Set the key/cert options. + * + *

+ * NOTE: This function has been automatically generated from the [io.vertx.core.net.ClientSSLOptions original] using Vert.x codegen. + */ +fun clientSSLOptionsOf( + trustOptions: io.vertx.core.net.TrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + applicationLayerProtocols: Iterable? = null, + hostnameVerificationAlgorithm: String? = null, + trustAll: Boolean? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): ClientSSLOptions = io.vertx.core.net.ClientSSLOptions().apply { + + if (trustOptions != null) { + this.setTrustOptions(trustOptions) + } + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } + } + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } + } + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } + } + if (useAlpn != null) { + this.setUseAlpn(useAlpn) + } + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + } + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) + } + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + } + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) + } + if (hostnameVerificationAlgorithm != null) { + this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + } + if (trustAll != null) { + this.setTrustAll(trustAll) + } + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) + } +} + diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ConnectOptions.kt new file mode 100644 index 00000000..5b793c4a --- /dev/null +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ConnectOptions.kt @@ -0,0 +1,69 @@ +/* + * Copyright 2019 Red Hat, Inc. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + */ +package io.vertx.kotlin.core.net + +import io.vertx.core.net.ConnectOptions +import io.vertx.core.net.ClientSSLOptions +import io.vertx.core.net.ProxyOptions + +/** + * A function providing a DSL for building [io.vertx.core.net.ConnectOptions] objects. + * + * Options for configuring how to connect to a TCP server. + * + * @param host Set the host name to be used by the client connection. + * @param port Set the port to be used by the client connection. + * @param remoteAddress Set the remote address to be used by the client connection.

When the server address is null, the address will be resolved after the [io.vertx.core.net.ConnectOptions] property by the Vert.x resolver and the [io.vertx.core.net.ConnectOptions] will be used.

Use this when you want to connect to a specific server address without name resolution or use a domain socket. + * @param sniServerName Set the SNI server name to use. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.

When none is provided, the [io.vertx.core.net.NetClientOptions] proxy options will be used instead. + * @param ssl Set whether SSL/TLS is enabled. + * @param sslOptions Set the SSL options to use.

When none is provided, the [io.vertx.core.net.NetClientOptions] SSL options will be used instead. + * + *

+ * NOTE: This function has been automatically generated from the [io.vertx.core.net.ConnectOptions original] using Vert.x codegen. + */ +fun connectOptionsOf( + host: String? = null, + port: Int? = null, + remoteAddress: io.vertx.core.net.SocketAddress? = null, + sniServerName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + ssl: Boolean? = null, + sslOptions: io.vertx.core.net.ClientSSLOptions? = null): ConnectOptions = io.vertx.core.net.ConnectOptions().apply { + + if (host != null) { + this.setHost(host) + } + if (port != null) { + this.setPort(port) + } + if (remoteAddress != null) { + this.setRemoteAddress(remoteAddress) + } + if (sniServerName != null) { + this.setSniServerName(sniServerName) + } + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) + } + if (ssl != null) { + this.setSsl(ssl) + } + if (sslOptions != null) { + this.setSslOptions(sslOptions) + } +} + diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/JksOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/JksOptions.kt index bbc662be..91b70b53 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/JksOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/JksOptions.kt @@ -22,28 +22,22 @@ import io.vertx.core.net.JksOptions * * Key or trust store options configuring private key and/or certificates based on Java Keystore files. * - * @param alias Set the alias for a server certificate when the keystore has more than one. - * @param aliasPassword Set the password for the server certificate designated by [io.vertx.core.net.KeyStoreOptionsBase]. * @param password Set the password for the key store * @param path Set the path to the key store * @param value Set the key store as a buffer + * @param alias Set the alias for a server certificate when the keystore has more than one. + * @param aliasPassword Set the password for the server certificate designated by [io.vertx.core.net.KeyStoreOptionsBase]. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.JksOptions original] using Vert.x codegen. */ fun jksOptionsOf( - alias: String? = null, - aliasPassword: String? = null, password: String? = null, path: String? = null, - value: io.vertx.core.buffer.Buffer? = null): JksOptions = io.vertx.core.net.JksOptions().apply { + value: io.vertx.core.buffer.Buffer? = null, + alias: String? = null, + aliasPassword: String? = null): JksOptions = io.vertx.core.net.JksOptions().apply { - if (alias != null) { - this.setAlias(alias) - } - if (aliasPassword != null) { - this.setAliasPassword(aliasPassword) - } if (password != null) { this.setPassword(password) } @@ -53,5 +47,11 @@ fun jksOptionsOf( if (value != null) { this.setValue(value) } + if (alias != null) { + this.setAlias(alias) + } + if (aliasPassword != null) { + this.setAliasPassword(aliasPassword) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/KeyStoreOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/KeyStoreOptions.kt index fb430698..1e1cd9ae 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/KeyStoreOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/KeyStoreOptions.kt @@ -49,46 +49,46 @@ import io.vertx.core.net.KeyStoreOptions * options.setKeyCertOptions(new JksOptions().setPath("/mykeystore.jks").setPassword("foo")); * * - * @param alias Set the alias for a server certificate when the keystore has more than one. - * @param aliasPassword Set the password for the server certificate designated by [io.vertx.core.net.KeyStoreOptionsBase]. * @param password Set the password for the key store * @param path Set the path to the key store + * @param value Set the key store as a buffer + * @param alias Set the alias for a server certificate when the keystore has more than one. + * @param aliasPassword Set the password for the server certificate designated by [io.vertx.core.net.KeyStoreOptionsBase]. * @param provider Set the store provider. * @param type Set the store type. - * @param value Set the key store as a buffer * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.KeyStoreOptions original] using Vert.x codegen. */ fun keyStoreOptionsOf( - alias: String? = null, - aliasPassword: String? = null, password: String? = null, path: String? = null, + value: io.vertx.core.buffer.Buffer? = null, + alias: String? = null, + aliasPassword: String? = null, provider: String? = null, - type: String? = null, - value: io.vertx.core.buffer.Buffer? = null): KeyStoreOptions = io.vertx.core.net.KeyStoreOptions().apply { + type: String? = null): KeyStoreOptions = io.vertx.core.net.KeyStoreOptions().apply { - if (alias != null) { - this.setAlias(alias) - } - if (aliasPassword != null) { - this.setAliasPassword(aliasPassword) - } if (password != null) { this.setPassword(password) } if (path != null) { this.setPath(path) } + if (value != null) { + this.setValue(value) + } + if (alias != null) { + this.setAlias(alias) + } + if (aliasPassword != null) { + this.setAliasPassword(aliasPassword) + } if (provider != null) { this.setProvider(provider) } if (type != null) { this.setType(type) } - if (value != null) { - this.setValue(value) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetClientOptions.kt index 81fb6ea3..f2040b0c 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetClientOptions.kt @@ -31,215 +31,215 @@ import java.util.concurrent.TimeUnit * * Options for configuring a [io.vertx.core.net.NetClient]. * + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reconnectAttempts Set the value of reconnect attempts - * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param keyCertOptions Set the key/cert options. + * @param reconnectAttempts Set the value of reconnect attempts + * @param reconnectInterval Set the reconnect interval + * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.NetClientOptions original] using Vert.x codegen. */ fun netClientOptionsOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - hostnameVerificationAlgorithm: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reconnectAttempts: Int? = null, - reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - writeIdleTimeout: Int? = null): NetClientOptions = io.vertx.core.net.NetClientOptions().apply { + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + reconnectAttempts: Int? = null, + reconnectInterval: Long? = null, + hostnameVerificationAlgorithm: String? = null, + applicationLayerProtocols: Iterable? = null, + registerWriteHandler: Boolean? = null): NetClientOptions = io.vertx.core.net.NetClientOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) + } + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (reconnectAttempts != null) { - this.setReconnectAttempts(reconnectAttempts) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (reconnectInterval != null) { - this.setReconnectInterval(reconnectInterval) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) + } + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -247,41 +247,41 @@ fun netClientOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (metricsName != null) { + this.setMetricsName(metricsName) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (reconnectAttempts != null) { + this.setReconnectAttempts(reconnectAttempts) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (reconnectInterval != null) { + this.setReconnectInterval(reconnectInterval) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (hostnameVerificationAlgorithm != null) { + this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetServerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetServerOptions.kt index 3b2c475b..646ce59f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetServerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/NetServerOptions.kt @@ -32,207 +32,213 @@ import java.util.concurrent.TimeUnit * * Options for configuring a [io.vertx.core.net.NetServer]. * - * @param acceptBacklog Set the accept back log + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param clientAuth Set whether client auth is required - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param host Set the host + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Set the port - * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. - * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sni Set whether the server supports Server Name Indiciation - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class - * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param keyCertOptions Set the key/cert options. + * @param acceptBacklog Set the accept back log + * @param port Set the port + * @param host Set the host + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation * @param useProxyProtocol Set whether the server uses the HA Proxy protocol - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. + * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. + * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.NetServerOptions original] using Vert.x codegen. */ fun netServerOptionsOf( - acceptBacklog: Int? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - clientAuth: ClientAuth? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - host: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyProtocolTimeout: Long? = null, - proxyProtocolTimeoutUnit: TimeUnit? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sni: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, - trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + acceptBacklog: Int? = null, + port: Int? = null, + host: String? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, useProxyProtocol: Boolean? = null, - writeIdleTimeout: Int? = null): NetServerOptions = io.vertx.core.net.NetServerOptions().apply { + proxyProtocolTimeout: Long? = null, + proxyProtocolTimeoutUnit: TimeUnit? = null, + trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, + registerWriteHandler: Boolean? = null): NetServerOptions = io.vertx.core.net.NetServerOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (clientAuth != null) { - this.setClientAuth(clientAuth) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (host != null) { - this.setHost(host) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) + } + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (port != null) { - this.setPort(port) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (proxyProtocolTimeout != null) { - this.setProxyProtocolTimeout(proxyProtocolTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (proxyProtocolTimeoutUnit != null) { - this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (sni != null) { - this.setSni(sni) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -240,44 +246,38 @@ fun netServerOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (port != null) { + this.setPort(port) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (host != null) { + this.setHost(host) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (clientAuth != null) { + this.setClientAuth(clientAuth) } - if (trafficShapingOptions != null) { - this.setTrafficShapingOptions(trafficShapingOptions) + if (sni != null) { + this.setSni(sni) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (useProxyProtocol != null) { + this.setUseProxyProtocol(useProxyProtocol) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (proxyProtocolTimeout != null) { + this.setProxyProtocolTimeout(proxyProtocolTimeout) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (proxyProtocolTimeoutUnit != null) { + this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) } - if (useProxyProtocol != null) { - this.setUseProxyProtocol(useProxyProtocol) + if (trafficShapingOptions != null) { + this.setTrafficShapingOptions(trafficShapingOptions) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/OpenSSLEngineOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/OpenSSLEngineOptions.kt index b7fa180c..a5344e12 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/OpenSSLEngineOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/OpenSSLEngineOptions.kt @@ -22,21 +22,21 @@ import io.vertx.core.net.OpenSSLEngineOptions * * Configures a [io.vertx.core.net.TCPSSLOptions] to use OpenSsl. * - * @param sessionCacheEnabled Set whether session cache is enabled in open SSL session server context * @param useWorkerThread Set the thread pool to use for SSL blocking operations. + * @param sessionCacheEnabled Set whether session cache is enabled in open SSL session server context * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.OpenSSLEngineOptions original] using Vert.x codegen. */ fun openSSLEngineOptionsOf( - sessionCacheEnabled: Boolean? = null, - useWorkerThread: Boolean? = null): OpenSSLEngineOptions = io.vertx.core.net.OpenSSLEngineOptions().apply { + useWorkerThread: Boolean? = null, + sessionCacheEnabled: Boolean? = null): OpenSSLEngineOptions = io.vertx.core.net.OpenSSLEngineOptions().apply { - if (sessionCacheEnabled != null) { - this.setSessionCacheEnabled(sessionCacheEnabled) - } if (useWorkerThread != null) { this.setUseWorkerThread(useWorkerThread) } + if (sessionCacheEnabled != null) { + this.setSessionCacheEnabled(sessionCacheEnabled) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PemKeyCertOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PemKeyCertOptions.kt index 2393c013..ea7c2462 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PemKeyCertOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PemKeyCertOptions.kt @@ -83,40 +83,28 @@ import io.vertx.core.net.PemKeyCertOptions * .addKeyPath("/mykey2.pem").addCertPath("/mycert2.pem")); * * - * @param certPath Set the path of the first certificate, replacing the previous certificates paths - * @param certPaths Set all the paths to the certificates files - * @param certValue Set the first certificate as a buffer, replacing the previous certificates buffers - * @param certValues Set all the certificates as a list of buffer * @param keyPath Set the path of the first key file, replacing the keys paths * @param keyPaths Set all the paths to the keys files * @param keyValue Set the first key a a buffer, replacing the previous keys buffers * @param keyValues Set all the keys as a list of buffer + * @param certPath Set the path of the first certificate, replacing the previous certificates paths + * @param certPaths Set all the paths to the certificates files + * @param certValue Set the first certificate as a buffer, replacing the previous certificates buffers + * @param certValues Set all the certificates as a list of buffer * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.PemKeyCertOptions original] using Vert.x codegen. */ fun pemKeyCertOptionsOf( - certPath: String? = null, - certPaths: Iterable? = null, - certValue: io.vertx.core.buffer.Buffer? = null, - certValues: Iterable? = null, keyPath: String? = null, keyPaths: Iterable? = null, keyValue: io.vertx.core.buffer.Buffer? = null, - keyValues: Iterable? = null): PemKeyCertOptions = io.vertx.core.net.PemKeyCertOptions().apply { + keyValues: Iterable? = null, + certPath: String? = null, + certPaths: Iterable? = null, + certValue: io.vertx.core.buffer.Buffer? = null, + certValues: Iterable? = null): PemKeyCertOptions = io.vertx.core.net.PemKeyCertOptions().apply { - if (certPath != null) { - this.setCertPath(certPath) - } - if (certPaths != null) { - this.setCertPaths(certPaths.toList()) - } - if (certValue != null) { - this.setCertValue(certValue) - } - if (certValues != null) { - this.setCertValues(certValues.toList()) - } if (keyPath != null) { this.setKeyPath(keyPath) } @@ -129,5 +117,17 @@ fun pemKeyCertOptionsOf( if (keyValues != null) { this.setKeyValues(keyValues.toList()) } + if (certPath != null) { + this.setCertPath(certPath) + } + if (certPaths != null) { + this.setCertPaths(certPaths.toList()) + } + if (certValue != null) { + this.setCertValue(certValue) + } + if (certValues != null) { + this.setCertValues(certValues.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PfxOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PfxOptions.kt index 8b7d1a1e..debf735b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PfxOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/PfxOptions.kt @@ -22,28 +22,22 @@ import io.vertx.core.net.PfxOptions * * Key or trust store options configuring private key and/or certificates based on PKCS#12 files. * - * @param alias Set the alias for a server certificate when the keystore has more than one. - * @param aliasPassword Set the password for the server certificate designated by [io.vertx.core.net.KeyStoreOptionsBase]. * @param password Set the password for the key store * @param path Set the path to the key store * @param value Set the key store as a buffer + * @param alias Set the alias for a server certificate when the keystore has more than one. + * @param aliasPassword Set the password for the server certificate designated by [io.vertx.core.net.KeyStoreOptionsBase]. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.PfxOptions original] using Vert.x codegen. */ fun pfxOptionsOf( - alias: String? = null, - aliasPassword: String? = null, password: String? = null, path: String? = null, - value: io.vertx.core.buffer.Buffer? = null): PfxOptions = io.vertx.core.net.PfxOptions().apply { + value: io.vertx.core.buffer.Buffer? = null, + alias: String? = null, + aliasPassword: String? = null): PfxOptions = io.vertx.core.net.PfxOptions().apply { - if (alias != null) { - this.setAlias(alias) - } - if (aliasPassword != null) { - this.setAliasPassword(aliasPassword) - } if (password != null) { this.setPassword(password) } @@ -53,5 +47,11 @@ fun pfxOptionsOf( if (value != null) { this.setValue(value) } + if (alias != null) { + this.setAlias(alias) + } + if (aliasPassword != null) { + this.setAliasPassword(aliasPassword) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ProxyOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ProxyOptions.kt index 6a3eb1ef..26ba3115 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ProxyOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ProxyOptions.kt @@ -24,35 +24,35 @@ import io.vertx.core.net.ProxyType * Proxy options for a net client or a net client. * * @param host Set proxy host. - * @param password Set proxy password. * @param port Set proxy port. - * @param type Set proxy type.

ProxyType can be HTTP, SOCKS4 and SOCKS5 * @param username Set proxy username. + * @param password Set proxy password. + * @param type Set proxy type.

ProxyType can be HTTP, SOCKS4 and SOCKS5 * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.ProxyOptions original] using Vert.x codegen. */ fun proxyOptionsOf( host: String? = null, - password: String? = null, port: Int? = null, - type: ProxyType? = null, - username: String? = null): ProxyOptions = io.vertx.core.net.ProxyOptions().apply { + username: String? = null, + password: String? = null, + type: ProxyType? = null): ProxyOptions = io.vertx.core.net.ProxyOptions().apply { if (host != null) { this.setHost(host) } - if (password != null) { - this.setPassword(password) - } if (port != null) { this.setPort(port) } - if (type != null) { - this.setType(type) - } if (username != null) { this.setUsername(username) } + if (password != null) { + this.setPassword(password) + } + if (type != null) { + this.setType(type) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/SSLOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/SSLOptions.kt index 315ff06f..a175315a 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/SSLOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/SSLOptions.kt @@ -21,30 +21,40 @@ import java.util.concurrent.TimeUnit /** * A function providing a DSL for building [io.vertx.core.net.SSLOptions] objects. * - * SSL options + * Client/Server SSL options. * + * @param trustOptions Set the trust options. + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. * @param crlPaths Add a CRL path * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param useAlpn Set the ALPN usage. * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param trustOptions Set the trust options. - * @param useAlpn Set the ALPN usage. + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.SSLOptions original] using Vert.x codegen. */ fun sslOptionsOf( + trustOptions: io.vertx.core.net.TrustOptions? = null, + enabledCipherSuites: Iterable? = null, crlPaths: Iterable? = null, crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, + useAlpn: Boolean? = null, enabledSecureTransportProtocols: Iterable? = null, sslHandshakeTimeout: Long? = null, sslHandshakeTimeoutUnit: TimeUnit? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - useAlpn: Boolean? = null): SSLOptions = io.vertx.core.net.SSLOptions().apply { + applicationLayerProtocols: Iterable? = null): SSLOptions = io.vertx.core.net.SSLOptions().apply { + if (trustOptions != null) { + this.setTrustOptions(trustOptions) + } + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } + } if (crlPaths != null) { for (item in crlPaths) { this.addCrlPath(item) @@ -55,10 +65,8 @@ fun sslOptionsOf( this.addCrlValue(item) } } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } if (enabledSecureTransportProtocols != null) { this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) @@ -69,11 +77,8 @@ fun sslOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ServerSSLOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ServerSSLOptions.kt new file mode 100644 index 00000000..47bb5311 --- /dev/null +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/ServerSSLOptions.kt @@ -0,0 +1,100 @@ +/* + * Copyright 2019 Red Hat, Inc. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + */ +package io.vertx.kotlin.core.net + +import io.vertx.core.net.ServerSSLOptions +import io.vertx.core.http.ClientAuth +import java.util.concurrent.TimeUnit + +/** + * A function providing a DSL for building [io.vertx.core.net.ServerSSLOptions] objects. + * + * Server SSL options. + * + * @param trustOptions Set the trust options. + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation + * @param keyCertOptions Set the key/cert options. + * + *

+ * NOTE: This function has been automatically generated from the [io.vertx.core.net.ServerSSLOptions original] using Vert.x codegen. + */ +fun serverSSLOptionsOf( + trustOptions: io.vertx.core.net.TrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + applicationLayerProtocols: Iterable? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): ServerSSLOptions = io.vertx.core.net.ServerSSLOptions().apply { + + if (trustOptions != null) { + this.setTrustOptions(trustOptions) + } + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } + } + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } + } + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } + } + if (useAlpn != null) { + this.setUseAlpn(useAlpn) + } + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + } + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) + } + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + } + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) + } + if (clientAuth != null) { + this.setClientAuth(clientAuth) + } + if (sni != null) { + this.setSni(sni) + } + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) + } +} + diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/TrafficShapingOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/TrafficShapingOptions.kt index ae36c3b9..93b2d0f2 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/TrafficShapingOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/core/net/TrafficShapingOptions.kt @@ -23,43 +23,43 @@ import java.util.concurrent.TimeUnit * * Options describing how [io.netty.handler.traffic.GlobalTrafficShapingHandler] will handle traffic shaping. * - * @param checkIntervalForStats Set the delay between two computations of performances for channels or 0 if no stats are to be computed - * @param checkIntervalForStatsTimeUnit Set time unit for check interval for stats. * @param inboundGlobalBandwidth Set bandwidth limit in bytes per second for inbound connections + * @param outboundGlobalBandwidth Set bandwidth limit in bytes per second for outbound connections * @param maxDelayToWait Set the maximum delay to wait in case of traffic excess * @param maxDelayToWaitUnit Set the maximum delay to wait time unit - * @param outboundGlobalBandwidth Set bandwidth limit in bytes per second for outbound connections + * @param checkIntervalForStats Set the delay between two computations of performances for channels or 0 if no stats are to be computed + * @param checkIntervalForStatsTimeUnit Set time unit for check interval for stats. * @param peakOutboundGlobalBandwidth Set the maximum global write size in bytes per second allowed in the buffer globally for all channels before write suspended is set. Default value is 400 MB * *

* NOTE: This function has been automatically generated from the [io.vertx.core.net.TrafficShapingOptions original] using Vert.x codegen. */ fun trafficShapingOptionsOf( - checkIntervalForStats: Long? = null, - checkIntervalForStatsTimeUnit: TimeUnit? = null, inboundGlobalBandwidth: Long? = null, + outboundGlobalBandwidth: Long? = null, maxDelayToWait: Long? = null, maxDelayToWaitUnit: TimeUnit? = null, - outboundGlobalBandwidth: Long? = null, + checkIntervalForStats: Long? = null, + checkIntervalForStatsTimeUnit: TimeUnit? = null, peakOutboundGlobalBandwidth: Long? = null): TrafficShapingOptions = io.vertx.core.net.TrafficShapingOptions().apply { - if (checkIntervalForStats != null) { - this.setCheckIntervalForStats(checkIntervalForStats) - } - if (checkIntervalForStatsTimeUnit != null) { - this.setCheckIntervalForStatsTimeUnit(checkIntervalForStatsTimeUnit) - } if (inboundGlobalBandwidth != null) { this.setInboundGlobalBandwidth(inboundGlobalBandwidth) } + if (outboundGlobalBandwidth != null) { + this.setOutboundGlobalBandwidth(outboundGlobalBandwidth) + } if (maxDelayToWait != null) { this.setMaxDelayToWait(maxDelayToWait) } if (maxDelayToWaitUnit != null) { this.setMaxDelayToWaitUnit(maxDelayToWaitUnit) } - if (outboundGlobalBandwidth != null) { - this.setOutboundGlobalBandwidth(outboundGlobalBandwidth) + if (checkIntervalForStats != null) { + this.setCheckIntervalForStats(checkIntervalForStats) + } + if (checkIntervalForStatsTimeUnit != null) { + this.setCheckIntervalForStatsTimeUnit(checkIntervalForStatsTimeUnit) } if (peakOutboundGlobalBandwidth != null) { this.setPeakOutboundGlobalBandwidth(peakOutboundGlobalBandwidth) diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/db2client/DB2ConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/db2client/DB2ConnectOptions.kt index ae74ca73..3dbff741 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/db2client/DB2ConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/db2client/DB2ConnectOptions.kt @@ -16,248 +16,74 @@ package io.vertx.kotlin.db2client import io.vertx.db2client.DB2ConnectOptions -import io.netty.handler.logging.ByteBufFormat -import io.vertx.core.net.JdkSSLEngineOptions -import io.vertx.core.net.JksOptions -import io.vertx.core.net.OpenSSLEngineOptions -import io.vertx.core.net.PemKeyCertOptions -import io.vertx.core.net.PemTrustOptions -import io.vertx.core.net.PfxOptions -import io.vertx.core.net.ProxyOptions +import io.vertx.core.net.ClientSSLOptions import io.vertx.core.tracing.TracingPolicy -import java.util.concurrent.TimeUnit /** * A function providing a DSL for building [io.vertx.db2client.DB2ConnectOptions] objects. * - * Connect options for configuring [io.vertx.db2client.DB2Connection] or [io.vertx.db2client.DB2Pool]. + * Connect options for configuring [io.vertx.db2client.DB2Connection] or [io.vertx.db2client.DB2Builder]. * - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param cachePreparedStatements Set whether prepared statements cache should be enabled. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param database Specify the default database for the connection. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. * @param host Specify the host for connecting to the server. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String - * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param password Specify the user password to be used for the authentication. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format * @param port Specify the port for connecting to the server. + * @param user Specify the user account to be used for the authentication. + * @param password Specify the user password to be used for the authentication. + * @param database Specify the default database for the connection. + * @param cachePreparedStatements Set whether prepared statements cache should be enabled. * @param preparedStatementCacheMaxSize Set the maximum number of prepared statements that the connection will cache. - * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.db2client.DB2ConnectOptions]. * @param properties Set properties for this client, which will be sent to server at the connection start. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. * @param reconnectAttempts Set the value of reconnect attempts * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled + * @param sslOptions + * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.db2client.DB2ConnectOptions]. * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param user Specify the user account to be used for the authentication. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] * *

* NOTE: This function has been automatically generated from the [io.vertx.db2client.DB2ConnectOptions original] using Vert.x codegen. */ fun db2ConnectOptionsOf( - activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - cachePreparedStatements: Boolean? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - database: String? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, host: String? = null, - hostnameVerificationAlgorithm: String? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, port: Int? = null, + user: String? = null, + password: String? = null, + database: String? = null, + cachePreparedStatements: Boolean? = null, preparedStatementCacheMaxSize: Int? = null, - preparedStatementCacheSqlLimit: Int? = null, properties: Map? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - user: String? = null, - writeIdleTimeout: Int? = null): DB2ConnectOptions = io.vertx.db2client.DB2ConnectOptions().apply { + sslOptions: io.vertx.core.net.ClientSSLOptions? = null, + preparedStatementCacheSqlLimit: Int? = null, + ssl: Boolean? = null): DB2ConnectOptions = io.vertx.db2client.DB2ConnectOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (cachePreparedStatements != null) { - this.setCachePreparedStatements(cachePreparedStatements) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (database != null) { - this.setDatabase(database) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } - } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) - } if (host != null) { this.setHost(host) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) - } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) - } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) - } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) - } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (port != null) { + this.setPort(port) } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (user != null) { + this.setUser(user) } if (password != null) { this.setPassword(password) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) - } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) - } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (database != null) { + this.setDatabase(database) } - if (port != null) { - this.setPort(port) + if (cachePreparedStatements != null) { + this.setCachePreparedStatements(cachePreparedStatements) } if (preparedStatementCacheMaxSize != null) { this.setPreparedStatementCacheMaxSize(preparedStatementCacheMaxSize) } - if (preparedStatementCacheSqlLimit != null) { - this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) - } if (properties != null) { this.setProperties(properties) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) @@ -265,74 +91,14 @@ fun db2ConnectOptionsOf( if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (sslOptions != null) { + this.setSslOptions(sslOptions) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (preparedStatementCacheSqlLimit != null) { + this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) } if (ssl != null) { this.setSsl(ssl) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) - } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) - } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) - } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) - } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) - } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) - } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) - } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) - } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trustAll != null) { - this.setTrustAll(trustAll) - } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) - } - if (user != null) { - this.setUser(user) - } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/JWTOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/JWTOptions.kt index 9b6f196a..ceccdf83 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/JWTOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/JWTOptions.kt @@ -18,22 +18,40 @@ package io.vertx.kotlin.ext.auth import io.vertx.ext.auth.JWTOptions fun jwtOptionsOf( + leeway: Int? = null, + ignoreExpiration: Boolean? = null, algorithm: String? = null, + header: io.vertx.core.json.JsonObject? = null, + noTimestamp: Boolean? = null, + expiresInSeconds: Int? = null, + expiresInMinutes: Int? = null, audience: Iterable? = null, audiences: Iterable? = null, - expiresInMinutes: Int? = null, - expiresInSeconds: Int? = null, - header: io.vertx.core.json.JsonObject? = null, - ignoreExpiration: Boolean? = null, issuer: String? = null, - leeway: Int? = null, - noTimestamp: Boolean? = null, - nonceAlgorithm: String? = null, - subject: String? = null): JWTOptions = io.vertx.ext.auth.JWTOptions().apply { + subject: String? = null, + nonceAlgorithm: String? = null): JWTOptions = io.vertx.ext.auth.JWTOptions().apply { + if (leeway != null) { + this.setLeeway(leeway) + } + if (ignoreExpiration != null) { + this.setIgnoreExpiration(ignoreExpiration) + } if (algorithm != null) { this.setAlgorithm(algorithm) } + if (header != null) { + this.setHeader(header) + } + if (noTimestamp != null) { + this.setNoTimestamp(noTimestamp) + } + if (expiresInSeconds != null) { + this.setExpiresInSeconds(expiresInSeconds) + } + if (expiresInMinutes != null) { + this.setExpiresInMinutes(expiresInMinutes) + } if (audience != null) { this.setAudience(audience.toList()) } @@ -42,32 +60,14 @@ fun jwtOptionsOf( this.addAudience(item) } } - if (expiresInMinutes != null) { - this.setExpiresInMinutes(expiresInMinutes) - } - if (expiresInSeconds != null) { - this.setExpiresInSeconds(expiresInSeconds) - } - if (header != null) { - this.setHeader(header) - } - if (ignoreExpiration != null) { - this.setIgnoreExpiration(ignoreExpiration) - } if (issuer != null) { this.setIssuer(issuer) } - if (leeway != null) { - this.setLeeway(leeway) - } - if (noTimestamp != null) { - this.setNoTimestamp(noTimestamp) + if (subject != null) { + this.setSubject(subject) } if (nonceAlgorithm != null) { this.setNonceAlgorithm(nonceAlgorithm) } - if (subject != null) { - this.setSubject(subject) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/KeyStoreOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/KeyStoreOptions.kt index bcfa0580..cb6dfa6b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/KeyStoreOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/KeyStoreOptions.kt @@ -26,36 +26,36 @@ import io.vertx.ext.auth.KeyStoreOptions * This extension sets the default type to the runtime keystore type (for compatibility, reasons) * plus it allows the configuration of password per key using [io.vertx.ext.auth.KeyStoreOptions]. * + * @param type + * @param provider * @param password - * @param passwordProtection * @param path - * @param provider - * @param type + * @param passwordProtection * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.KeyStoreOptions original] using Vert.x codegen. */ fun keyStoreOptionsOf( + type: String? = null, + provider: String? = null, password: String? = null, - passwordProtection: Map? = null, path: String? = null, - provider: String? = null, - type: String? = null): KeyStoreOptions = io.vertx.ext.auth.KeyStoreOptions().apply { + passwordProtection: Map? = null): KeyStoreOptions = io.vertx.ext.auth.KeyStoreOptions().apply { + if (type != null) { + this.setType(type) + } + if (provider != null) { + this.setProvider(provider) + } if (password != null) { this.setPassword(password) } - if (passwordProtection != null) { - this.setPasswordProtection(passwordProtection) - } if (path != null) { this.setPath(path) } - if (provider != null) { - this.setProvider(provider) - } - if (type != null) { - this.setType(type) + if (passwordProtection != null) { + this.setPasswordProtection(passwordProtection) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/authentication/TokenCredentials.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/authentication/TokenCredentials.kt index 90cb3acf..8b972b82 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/authentication/TokenCredentials.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/authentication/TokenCredentials.kt @@ -23,21 +23,21 @@ import io.vertx.ext.auth.authentication.TokenCredentials * Credentials used by any [io.vertx.ext.auth.authentication.AuthenticationProvider] that requires Tokens, such as OAuth2 or JWT * to perform its authentication * - * @param scopes * @param token + * @param scopes * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.authentication.TokenCredentials original] using Vert.x codegen. */ fun tokenCredentialsOf( - scopes: Iterable? = null, - token: String? = null): TokenCredentials = io.vertx.ext.auth.authentication.TokenCredentials().apply { + token: String? = null, + scopes: Iterable? = null): TokenCredentials = io.vertx.ext.auth.authentication.TokenCredentials().apply { - if (scopes != null) { - this.setScopes(scopes.toList()) - } if (token != null) { this.setToken(token) } + if (scopes != null) { + this.setScopes(scopes.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htdigest/HtdigestCredentials.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htdigest/HtdigestCredentials.kt index aaf2f4a7..045e2379 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htdigest/HtdigestCredentials.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htdigest/HtdigestCredentials.kt @@ -22,36 +22,42 @@ import io.vertx.ext.auth.htdigest.HtdigestCredentials * * Credentials specific to the [io.vertx.ext.auth.htdigest.HtdigestAuth] authentication provider * + * @param password + * @param username * @param algorithm * @param cnonce * @param method * @param nc * @param nonce * @param opaque - * @param password * @param qop * @param realm * @param response * @param uri - * @param username * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.htdigest.HtdigestCredentials original] using Vert.x codegen. */ fun htdigestCredentialsOf( + password: String? = null, + username: String? = null, algorithm: String? = null, cnonce: String? = null, method: String? = null, nc: String? = null, nonce: String? = null, opaque: String? = null, - password: String? = null, qop: String? = null, realm: String? = null, response: String? = null, - uri: String? = null, - username: String? = null): HtdigestCredentials = io.vertx.ext.auth.htdigest.HtdigestCredentials().apply { + uri: String? = null): HtdigestCredentials = io.vertx.ext.auth.htdigest.HtdigestCredentials().apply { + if (password != null) { + this.setPassword(password) + } + if (username != null) { + this.setUsername(username) + } if (algorithm != null) { this.setAlgorithm(algorithm) } @@ -70,9 +76,6 @@ fun htdigestCredentialsOf( if (opaque != null) { this.setOpaque(opaque) } - if (password != null) { - this.setPassword(password) - } if (qop != null) { this.setQop(qop) } @@ -85,8 +88,5 @@ fun htdigestCredentialsOf( if (uri != null) { this.setUri(uri) } - if (username != null) { - this.setUsername(username) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htpasswd/HtpasswdAuthOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htpasswd/HtpasswdAuthOptions.kt index df31abf3..0172f2fa 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htpasswd/HtpasswdAuthOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/htpasswd/HtpasswdAuthOptions.kt @@ -22,21 +22,21 @@ import io.vertx.ext.auth.htpasswd.HtpasswdAuthOptions * * Options configuring htpasswd authentication. * - * @param htpasswdFile * @param plainTextEnabled + * @param htpasswdFile * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.htpasswd.HtpasswdAuthOptions original] using Vert.x codegen. */ fun htpasswdAuthOptionsOf( - htpasswdFile: String? = null, - plainTextEnabled: Boolean? = null): HtpasswdAuthOptions = io.vertx.ext.auth.htpasswd.HtpasswdAuthOptions().apply { + plainTextEnabled: Boolean? = null, + htpasswdFile: String? = null): HtpasswdAuthOptions = io.vertx.ext.auth.htpasswd.HtpasswdAuthOptions().apply { - if (htpasswdFile != null) { - this.setHtpasswdFile(htpasswdFile) - } if (plainTextEnabled != null) { this.setPlainTextEnabled(plainTextEnabled) } + if (htpasswdFile != null) { + this.setHtpasswdFile(htpasswdFile) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/jwt/JWTAuthOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/jwt/JWTAuthOptions.kt index 22a5de87..dd061508 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/jwt/JWTAuthOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/jwt/JWTAuthOptions.kt @@ -25,31 +25,31 @@ import io.vertx.ext.auth.PubSecKeyOptions * * Options describing how an JWT Auth should behave. * - * @param jwks - * @param jwtOptions * @param keyStore * @param pubSecKeys + * @param jwtOptions + * @param jwks * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.jwt.JWTAuthOptions original] using Vert.x codegen. */ fun jwtAuthOptionsOf( - jwks: Iterable? = null, - jwtOptions: io.vertx.ext.auth.JWTOptions? = null, keyStore: io.vertx.ext.auth.KeyStoreOptions? = null, - pubSecKeys: Iterable? = null): JWTAuthOptions = io.vertx.ext.auth.jwt.JWTAuthOptions().apply { + pubSecKeys: Iterable? = null, + jwtOptions: io.vertx.ext.auth.JWTOptions? = null, + jwks: Iterable? = null): JWTAuthOptions = io.vertx.ext.auth.jwt.JWTAuthOptions().apply { - if (jwks != null) { - this.setJwks(jwks.toList()) - } - if (jwtOptions != null) { - this.setJWTOptions(jwtOptions) - } if (keyStore != null) { this.setKeyStore(keyStore) } if (pubSecKeys != null) { this.setPubSecKeys(pubSecKeys.toList()) } + if (jwtOptions != null) { + this.setJWTOptions(jwtOptions) + } + if (jwks != null) { + this.setJwks(jwks.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/ldap/LdapAuthenticationOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/ldap/LdapAuthenticationOptions.kt index dc0ea538..7285385e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/ldap/LdapAuthenticationOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/ldap/LdapAuthenticationOptions.kt @@ -23,30 +23,30 @@ import io.vertx.ext.auth.ldap.LdapAuthenticationOptions * Ldap auth configuration options * * @param authenticationMechanism sets the authentication mechanism. default to 'simple' if not set - * @param authenticationQuery Set the query to use to authenticate a user. This is used to determine the actual lookup to use when looking up a user with a particular id. An example is `uid={0},ou=users,dc=foo,dc=com` - Note that the element `{0}` is substituted with the user id to create the actual lookup. * @param referral Set the referral property. Default to 'follow' if not set * @param url Set the url to the LDAP server. The url must start with `ldap://` and a port must be specified. + * @param authenticationQuery Set the query to use to authenticate a user. This is used to determine the actual lookup to use when looking up a user with a particular id. An example is `uid={0},ou=users,dc=foo,dc=com` - Note that the element `{0}` is substituted with the user id to create the actual lookup. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.ldap.LdapAuthenticationOptions original] using Vert.x codegen. */ fun ldapAuthenticationOptionsOf( authenticationMechanism: String? = null, - authenticationQuery: String? = null, referral: String? = null, - url: String? = null): LdapAuthenticationOptions = io.vertx.ext.auth.ldap.LdapAuthenticationOptions().apply { + url: String? = null, + authenticationQuery: String? = null): LdapAuthenticationOptions = io.vertx.ext.auth.ldap.LdapAuthenticationOptions().apply { if (authenticationMechanism != null) { this.setAuthenticationMechanism(authenticationMechanism) } - if (authenticationQuery != null) { - this.setAuthenticationQuery(authenticationQuery) - } if (referral != null) { this.setReferral(referral) } if (url != null) { this.setUrl(url) } + if (authenticationQuery != null) { + this.setAuthenticationQuery(authenticationQuery) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2AuthorizationURL.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2AuthorizationURL.kt index 607b48b7..b0184b53 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2AuthorizationURL.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2AuthorizationURL.kt @@ -22,30 +22,36 @@ import io.vertx.ext.auth.oauth2.OAuth2AuthorizationURL * * TypeSafe DataObject for passing needed parameters for [io.vertx.ext.auth.oauth2.OAuth2Auth] * - * @param additionalParameters Set the additional parameters - * @param codeChallenge PKCE code challenge - * @param codeChallengeMethod PKCE code challenge method - * @param loginHint Hint on login name for IdP UI - * @param prompt Hint on kind of IdP prompt * @param redirectUri Set the redirect URI * @param scopes Set the scopes * @param state Set the state + * @param codeChallenge PKCE code challenge + * @param codeChallengeMethod PKCE code challenge method + * @param prompt Hint on kind of IdP prompt + * @param loginHint Hint on login name for IdP UI + * @param additionalParameters Set the additional parameters * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.oauth2.OAuth2AuthorizationURL original] using Vert.x codegen. */ fun oAuth2AuthorizationURLOf( - additionalParameters: Map? = null, + redirectUri: String? = null, + scopes: Iterable? = null, + state: String? = null, codeChallenge: String? = null, codeChallengeMethod: String? = null, - loginHint: String? = null, prompt: String? = null, - redirectUri: String? = null, - scopes: Iterable? = null, - state: String? = null): OAuth2AuthorizationURL = io.vertx.ext.auth.oauth2.OAuth2AuthorizationURL().apply { + loginHint: String? = null, + additionalParameters: Map? = null): OAuth2AuthorizationURL = io.vertx.ext.auth.oauth2.OAuth2AuthorizationURL().apply { - if (additionalParameters != null) { - this.setAdditionalParameters(additionalParameters) + if (redirectUri != null) { + this.setRedirectUri(redirectUri) + } + if (scopes != null) { + this.setScopes(scopes.toList()) + } + if (state != null) { + this.setState(state) } if (codeChallenge != null) { this.setCodeChallenge(codeChallenge) @@ -53,20 +59,14 @@ fun oAuth2AuthorizationURLOf( if (codeChallengeMethod != null) { this.setCodeChallengeMethod(codeChallengeMethod) } - if (loginHint != null) { - this.setLoginHint(loginHint) - } if (prompt != null) { this.setPrompt(prompt) } - if (redirectUri != null) { - this.setRedirectUri(redirectUri) - } - if (scopes != null) { - this.setScopes(scopes.toList()) + if (loginHint != null) { + this.setLoginHint(loginHint) } - if (state != null) { - this.setState(state) + if (additionalParameters != null) { + this.setAdditionalParameters(additionalParameters) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2Options.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2Options.kt index 9c93bcc9..765838de 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2Options.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/OAuth2Options.kt @@ -25,72 +25,75 @@ import io.vertx.ext.auth.PubSecKeyOptions * * Options describing how an OAuth2 will make connections. * + * @param site Root URL for the provider without trailing slashes * @param authorizationPath Get the Oauth2 authorization resource path. e.g.: /oauth/authorize - * @param clientAssertion - * @param clientAssertionType + * @param tokenPath Get the Oauth2 token resource path. e.g.: /oauth/token + * @param revocationPath Set the Oauth2 revocation resource path. e.g.: /oauth/revoke * @param clientId Set the provider client id * @param clientSecret Set the provider client secret - * @param extraParameters Set extra parameters to be sent to the provider on each request + * @param useBasicAuthorization + * @param clientAssertionType + * @param clientAssertion + * @param userAgent Set a custom user agent to use when communicating to a provider * @param headers Set custom headers to be sent with every request to the provider - * @param httpClientOptions - * @param introspectionPath Set the provider token introspection resource path - * @param jwkMaxAgeInSeconds -1 means no rotation for JWKs - * @param jwkPath - * @param jwks Sets the initial local JWKs - * @param jwtOptions - * @param logoutPath Set the provider logout path * @param pubSecKeys The provider PubSec key options - * @param revocationPath Set the Oauth2 revocation resource path. e.g.: /oauth/revoke + * @param logoutPath Set the provider logout path + * @param userInfoPath Set the provider userInfo resource path * @param scopeSeparator Set the provider scope separator - * @param site Root URL for the provider without trailing slashes - * @param supportedGrantTypes The provider supported grant types - * @param tenant Sets an optional tenant. Tenants are used in some OpenID servers as placeholders for the URLs. The tenant should be set prior to any URL as it affects the way the URLs will be stored.

Some provders may name this differently, for example: `realm`. - * @param tokenPath Get the Oauth2 token resource path. e.g.: /oauth/token - * @param useBasicAuthorization - * @param userAgent Set a custom user agent to use when communicating to a provider + * @param extraParameters Set extra parameters to be sent to the provider on each request + * @param introspectionPath Set the provider token introspection resource path * @param userInfoParameters Set custom parameters to be sent during the userInfo resource request - * @param userInfoPath Set the provider userInfo resource path + * @param jwkPath + * @param jwtOptions * @param validateIssuer + * @param tenant Sets an optional tenant. Tenants are used in some OpenID servers as placeholders for the URLs. The tenant should be set prior to any URL as it affects the way the URLs will be stored.

Some provders may name this differently, for example: `realm`. + * @param supportedGrantTypes The provider supported grant types + * @param httpClientOptions + * @param jwkMaxAgeInSeconds -1 means no rotation for JWKs + * @param jwks Sets the initial local JWKs * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.oauth2.OAuth2Options original] using Vert.x codegen. */ fun oAuth2OptionsOf( + site: String? = null, authorizationPath: String? = null, - clientAssertion: String? = null, - clientAssertionType: String? = null, + tokenPath: String? = null, + revocationPath: String? = null, clientId: String? = null, clientSecret: String? = null, - extraParameters: io.vertx.core.json.JsonObject? = null, + useBasicAuthorization: Boolean? = null, + clientAssertionType: String? = null, + clientAssertion: String? = null, + userAgent: String? = null, headers: io.vertx.core.json.JsonObject? = null, - httpClientOptions: io.vertx.core.http.HttpClientOptions? = null, + pubSecKeys: Iterable? = null, + logoutPath: String? = null, + userInfoPath: String? = null, + scopeSeparator: String? = null, + extraParameters: io.vertx.core.json.JsonObject? = null, introspectionPath: String? = null, - jwkMaxAgeInSeconds: Long? = null, + userInfoParameters: io.vertx.core.json.JsonObject? = null, jwkPath: String? = null, - jwks: Iterable? = null, jwtOptions: io.vertx.ext.auth.JWTOptions? = null, - logoutPath: String? = null, - pubSecKeys: Iterable? = null, - revocationPath: String? = null, - scopeSeparator: String? = null, - site: String? = null, - supportedGrantTypes: Iterable? = null, + validateIssuer: Boolean? = null, tenant: String? = null, - tokenPath: String? = null, - useBasicAuthorization: Boolean? = null, - userAgent: String? = null, - userInfoParameters: io.vertx.core.json.JsonObject? = null, - userInfoPath: String? = null, - validateIssuer: Boolean? = null): OAuth2Options = io.vertx.ext.auth.oauth2.OAuth2Options().apply { + supportedGrantTypes: Iterable? = null, + httpClientOptions: io.vertx.core.http.HttpClientOptions? = null, + jwkMaxAgeInSeconds: Long? = null, + jwks: Iterable? = null): OAuth2Options = io.vertx.ext.auth.oauth2.OAuth2Options().apply { + if (site != null) { + this.setSite(site) + } if (authorizationPath != null) { this.setAuthorizationPath(authorizationPath) } - if (clientAssertion != null) { - this.setClientAssertion(clientAssertion) + if (tokenPath != null) { + this.setTokenPath(tokenPath) } - if (clientAssertionType != null) { - this.setClientAssertionType(clientAssertionType) + if (revocationPath != null) { + this.setRevocationPath(revocationPath) } if (clientId != null) { this.setClientId(clientId) @@ -98,68 +101,65 @@ fun oAuth2OptionsOf( if (clientSecret != null) { this.setClientSecret(clientSecret) } - if (extraParameters != null) { - this.setExtraParameters(extraParameters) + if (useBasicAuthorization != null) { + this.setUseBasicAuthorization(useBasicAuthorization) + } + if (clientAssertionType != null) { + this.setClientAssertionType(clientAssertionType) + } + if (clientAssertion != null) { + this.setClientAssertion(clientAssertion) + } + if (userAgent != null) { + this.setUserAgent(userAgent) } if (headers != null) { this.setHeaders(headers) } - if (httpClientOptions != null) { - this.setHttpClientOptions(httpClientOptions) + if (pubSecKeys != null) { + this.setPubSecKeys(pubSecKeys.toList()) + } + if (logoutPath != null) { + this.setLogoutPath(logoutPath) + } + if (userInfoPath != null) { + this.setUserInfoPath(userInfoPath) + } + if (scopeSeparator != null) { + this.setScopeSeparator(scopeSeparator) + } + if (extraParameters != null) { + this.setExtraParameters(extraParameters) } if (introspectionPath != null) { this.setIntrospectionPath(introspectionPath) } - if (jwkMaxAgeInSeconds != null) { - this.setJwkMaxAgeInSeconds(jwkMaxAgeInSeconds) + if (userInfoParameters != null) { + this.setUserInfoParameters(userInfoParameters) } if (jwkPath != null) { this.setJwkPath(jwkPath) } - if (jwks != null) { - this.setJwks(jwks.toList()) - } if (jwtOptions != null) { this.setJWTOptions(jwtOptions) } - if (logoutPath != null) { - this.setLogoutPath(logoutPath) - } - if (pubSecKeys != null) { - this.setPubSecKeys(pubSecKeys.toList()) - } - if (revocationPath != null) { - this.setRevocationPath(revocationPath) - } - if (scopeSeparator != null) { - this.setScopeSeparator(scopeSeparator) - } - if (site != null) { - this.setSite(site) - } - if (supportedGrantTypes != null) { - this.setSupportedGrantTypes(supportedGrantTypes.toList()) + if (validateIssuer != null) { + this.setValidateIssuer(validateIssuer) } if (tenant != null) { this.setTenant(tenant) } - if (tokenPath != null) { - this.setTokenPath(tokenPath) - } - if (useBasicAuthorization != null) { - this.setUseBasicAuthorization(useBasicAuthorization) - } - if (userAgent != null) { - this.setUserAgent(userAgent) + if (supportedGrantTypes != null) { + this.setSupportedGrantTypes(supportedGrantTypes.toList()) } - if (userInfoParameters != null) { - this.setUserInfoParameters(userInfoParameters) + if (httpClientOptions != null) { + this.setHttpClientOptions(httpClientOptions) } - if (userInfoPath != null) { - this.setUserInfoPath(userInfoPath) + if (jwkMaxAgeInSeconds != null) { + this.setJwkMaxAgeInSeconds(jwkMaxAgeInSeconds) } - if (validateIssuer != null) { - this.setValidateIssuer(validateIssuer) + if (jwks != null) { + this.setJwks(jwks.toList()) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/Oauth2Credentials.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/Oauth2Credentials.kt index d8bfebc7..4e77e8e0 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/Oauth2Credentials.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/oauth2/Oauth2Credentials.kt @@ -23,56 +23,56 @@ import io.vertx.ext.auth.oauth2.OAuth2FlowType * * Credentials specific to the [io.vertx.ext.auth.oauth2.OAuth2Auth] provider * - * @param assertion * @param code + * @param redirectUri * @param codeVerifier - * @param flow + * @param scopes * @param jwt + * @param assertion * @param password - * @param redirectUri - * @param scopes * @param username + * @param flow * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.oauth2.Oauth2Credentials original] using Vert.x codegen. */ fun oauth2CredentialsOf( - assertion: String? = null, code: String? = null, + redirectUri: String? = null, codeVerifier: String? = null, - flow: OAuth2FlowType? = null, + scopes: Iterable? = null, jwt: io.vertx.core.json.JsonObject? = null, + assertion: String? = null, password: String? = null, - redirectUri: String? = null, - scopes: Iterable? = null, - username: String? = null): Oauth2Credentials = io.vertx.ext.auth.oauth2.Oauth2Credentials().apply { + username: String? = null, + flow: OAuth2FlowType? = null): Oauth2Credentials = io.vertx.ext.auth.oauth2.Oauth2Credentials().apply { - if (assertion != null) { - this.setAssertion(assertion) - } if (code != null) { this.setCode(code) } + if (redirectUri != null) { + this.setRedirectUri(redirectUri) + } if (codeVerifier != null) { this.setCodeVerifier(codeVerifier) } - if (flow != null) { - this.setFlow(flow) + if (scopes != null) { + this.setScopes(scopes.toList()) } if (jwt != null) { this.setJwt(jwt) } + if (assertion != null) { + this.setAssertion(assertion) + } if (password != null) { this.setPassword(password) } - if (redirectUri != null) { - this.setRedirectUri(redirectUri) - } - if (scopes != null) { - this.setScopes(scopes.toList()) - } if (username != null) { this.setUsername(username) } + if (flow != null) { + this.setFlow(flow) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/sqlclient/SqlAuthorizationOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/sqlclient/SqlAuthorizationOptions.kt index 413d3e18..d2299544 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/sqlclient/SqlAuthorizationOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/sqlclient/SqlAuthorizationOptions.kt @@ -22,21 +22,21 @@ import io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions * * Options configuring JDBC authentication. * - * @param permissionsQuery Set the permissions query to use. Use this if you want to override the default permissions query. * @param rolesQuery Set the roles query to use. Use this if you want to override the default roles query. + * @param permissionsQuery Set the permissions query to use. Use this if you want to override the default permissions query. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions original] using Vert.x codegen. */ fun sqlAuthorizationOptionsOf( - permissionsQuery: String? = null, - rolesQuery: String? = null): SqlAuthorizationOptions = io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions().apply { + rolesQuery: String? = null, + permissionsQuery: String? = null): SqlAuthorizationOptions = io.vertx.ext.auth.sqlclient.SqlAuthorizationOptions().apply { - if (permissionsQuery != null) { - this.setPermissionsQuery(permissionsQuery) - } if (rolesQuery != null) { this.setRolesQuery(rolesQuery) } + if (permissionsQuery != null) { + this.setPermissionsQuery(permissionsQuery) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/Authenticator.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/Authenticator.kt index 438074a4..83bb3735 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/Authenticator.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/Authenticator.kt @@ -23,41 +23,47 @@ import io.vertx.ext.auth.webauthn.AttestationCertificates * * Data Object representing an authenticator at rest. * - * @param aaguid - * @param attestationCertificates - * @param counter + * @param userName + * @param type * @param credID + * @param publicKey + * @param counter + * @param attestationCertificates * @param flags * @param fmt - * @param publicKey - * @param type - * @param userName + * @param aaguid * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.webauthn.Authenticator original] using Vert.x codegen. */ fun authenticatorOf( - aaguid: String? = null, - attestationCertificates: io.vertx.ext.auth.webauthn.AttestationCertificates? = null, - counter: Long? = null, + userName: String? = null, + type: String? = null, credID: String? = null, + publicKey: String? = null, + counter: Long? = null, + attestationCertificates: io.vertx.ext.auth.webauthn.AttestationCertificates? = null, flags: Int? = null, fmt: String? = null, - publicKey: String? = null, - type: String? = null, - userName: String? = null): Authenticator = io.vertx.ext.auth.webauthn.Authenticator().apply { + aaguid: String? = null): Authenticator = io.vertx.ext.auth.webauthn.Authenticator().apply { - if (aaguid != null) { - this.setAaguid(aaguid) + if (userName != null) { + this.setUserName(userName) } - if (attestationCertificates != null) { - this.setAttestationCertificates(attestationCertificates) + if (type != null) { + this.setType(type) + } + if (credID != null) { + this.setCredID(credID) + } + if (publicKey != null) { + this.setPublicKey(publicKey) } if (counter != null) { this.setCounter(counter) } - if (credID != null) { - this.setCredID(credID) + if (attestationCertificates != null) { + this.setAttestationCertificates(attestationCertificates) } if (flags != null) { this.setFlags(flags) @@ -65,14 +71,8 @@ fun authenticatorOf( if (fmt != null) { this.setFmt(fmt) } - if (publicKey != null) { - this.setPublicKey(publicKey) - } - if (type != null) { - this.setType(type) - } - if (userName != null) { - this.setUserName(userName) + if (aaguid != null) { + this.setAaguid(aaguid) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnCredentials.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnCredentials.kt index f9acfb4a..1c153dca 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnCredentials.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnCredentials.kt @@ -19,25 +19,25 @@ import io.vertx.ext.auth.webauthn.WebAuthnCredentials fun webAuthnCredentialsOf( challenge: String? = null, - domain: String? = null, - origin: String? = null, + webauthn: io.vertx.core.json.JsonObject? = null, username: String? = null, - webauthn: io.vertx.core.json.JsonObject? = null): WebAuthnCredentials = io.vertx.ext.auth.webauthn.WebAuthnCredentials().apply { + origin: String? = null, + domain: String? = null): WebAuthnCredentials = io.vertx.ext.auth.webauthn.WebAuthnCredentials().apply { if (challenge != null) { this.setChallenge(challenge) } - if (domain != null) { - this.setDomain(domain) - } - if (origin != null) { - this.setOrigin(origin) + if (webauthn != null) { + this.setWebauthn(webauthn) } if (username != null) { this.setUsername(username) } - if (webauthn != null) { - this.setWebauthn(webauthn) + if (origin != null) { + this.setOrigin(origin) + } + if (domain != null) { + this.setDomain(domain) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnOptions.kt index 50dd8ca0..7944d5d0 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/auth/webauthn/WebAuthnOptions.kt @@ -29,66 +29,72 @@ import io.vertx.ext.auth.webauthn.UserVerification * * Configuration for the webauthn object * + * @param relyingParty + * @param transports * @param attestation + * @param residentKey + * @param pubKeyCredParams * @param authenticatorAttachment + * @param requireResidentKey + * @param userVerification + * @param timeoutInMilliseconds * @param challengeLength * @param extensions - * @param pubKeyCredParams - * @param relaxedSafetyNetIntegrityVeridict Set to true to allow SafetyNet attestation with a relaxed integrity veridict. When the relaxed value is true, the SafetyNet attestation will be accepted even if:

- * @param relyingParty - * @param requireResidentKey - * @param residentKey * @param rootCertificates * @param rootCrls Load a CRL, for example MDS3 certificate should use http://crl.globalsign.net/Root.crl - * @param timeoutInMilliseconds - * @param transports - * @param userVerification + * @param relaxedSafetyNetIntegrityVeridict Set to true to allow SafetyNet attestation with a relaxed integrity veridict. When the relaxed value is true, the SafetyNet attestation will be accepted even if: * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.auth.webauthn.WebAuthnOptions original] using Vert.x codegen. */ fun webAuthnOptionsOf( + relyingParty: io.vertx.ext.auth.webauthn.RelyingParty? = null, + transports: Iterable? = null, attestation: Attestation? = null, + residentKey: ResidentKey? = null, + pubKeyCredParams: Iterable? = null, authenticatorAttachment: AuthenticatorAttachment? = null, + requireResidentKey: Boolean? = null, + userVerification: UserVerification? = null, + timeoutInMilliseconds: Long? = null, challengeLength: Int? = null, extensions: io.vertx.core.json.JsonObject? = null, - pubKeyCredParams: Iterable? = null, - relaxedSafetyNetIntegrityVeridict: Boolean? = null, - relyingParty: io.vertx.ext.auth.webauthn.RelyingParty? = null, - requireResidentKey: Boolean? = null, - residentKey: ResidentKey? = null, rootCertificates: Map? = null, rootCrls: Iterable? = null, - timeoutInMilliseconds: Long? = null, - transports: Iterable? = null, - userVerification: UserVerification? = null): WebAuthnOptions = io.vertx.ext.auth.webauthn.WebAuthnOptions().apply { + relaxedSafetyNetIntegrityVeridict: Boolean? = null): WebAuthnOptions = io.vertx.ext.auth.webauthn.WebAuthnOptions().apply { - if (attestation != null) { - this.setAttestation(attestation) + if (relyingParty != null) { + this.setRelyingParty(relyingParty) } - if (authenticatorAttachment != null) { - this.setAuthenticatorAttachment(authenticatorAttachment) + if (transports != null) { + this.setTransports(transports.toList()) } - if (challengeLength != null) { - this.setChallengeLength(challengeLength) + if (attestation != null) { + this.setAttestation(attestation) } - if (extensions != null) { - this.setExtensions(extensions) + if (residentKey != null) { + this.setResidentKey(residentKey) } if (pubKeyCredParams != null) { this.setPubKeyCredParams(pubKeyCredParams.toList()) } - if (relaxedSafetyNetIntegrityVeridict != null) { - this.setRelaxedSafetyNetIntegrityVeridict(relaxedSafetyNetIntegrityVeridict) - } - if (relyingParty != null) { - this.setRelyingParty(relyingParty) + if (authenticatorAttachment != null) { + this.setAuthenticatorAttachment(authenticatorAttachment) } if (requireResidentKey != null) { this.setRequireResidentKey(requireResidentKey) } - if (residentKey != null) { - this.setResidentKey(residentKey) + if (userVerification != null) { + this.setUserVerification(userVerification) + } + if (timeoutInMilliseconds != null) { + this.setTimeoutInMilliseconds(timeoutInMilliseconds) + } + if (challengeLength != null) { + this.setChallengeLength(challengeLength) + } + if (extensions != null) { + this.setExtensions(extensions) } if (rootCertificates != null) { this.setRootCertificates(rootCertificates) @@ -96,14 +102,8 @@ fun webAuthnOptionsOf( if (rootCrls != null) { this.setRootCrls(rootCrls.toList()) } - if (timeoutInMilliseconds != null) { - this.setTimeoutInMilliseconds(timeoutInMilliseconds) - } - if (transports != null) { - this.setTransports(transports.toList()) - } - if (userVerification != null) { - this.setUserVerification(userVerification) + if (relaxedSafetyNetIntegrityVeridict != null) { + this.setRelaxedSafetyNetIntegrityVeridict(relaxedSafetyNetIntegrityVeridict) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/AclToken.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/AclToken.kt index 053a5b1a..0b6b7360 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/AclToken.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/AclToken.kt @@ -25,8 +25,8 @@ import io.vertx.ext.consul.AclTokenType * * @param id Set ID of token * @param name Set name of token - * @param rules Set rules for token * @param type Set type of token + * @param rules Set rules for token * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.AclToken original] using Vert.x codegen. @@ -34,8 +34,8 @@ import io.vertx.ext.consul.AclTokenType fun aclTokenOf( id: String? = null, name: String? = null, - rules: String? = null, - type: AclTokenType? = null): AclToken = io.vertx.ext.consul.AclToken().apply { + type: AclTokenType? = null, + rules: String? = null): AclToken = io.vertx.ext.consul.AclToken().apply { if (id != null) { this.setId(id) @@ -43,11 +43,11 @@ fun aclTokenOf( if (name != null) { this.setName(name) } - if (rules != null) { - this.setRules(rules) - } if (type != null) { this.setType(type) } + if (rules != null) { + this.setRules(rules) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Check.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Check.kt index 710699de..d64e766a 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Check.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Check.kt @@ -25,13 +25,13 @@ import io.vertx.ext.consul.CheckStatus * * @param id Set the ID of check * @param name Set the name of check - * @param node Set the name of node * @param nodeName Set the name of node Deprecated since consul 1.11, renamed to 'node'. Use [io.vertx.ext.consul.Check] ()} instead + * @param node Set the name of node + * @param status Set the status of check * @param notes Set the human-readable note of check * @param output Set the output of check * @param serviceId Set the ID of service with which this check associated * @param serviceName Set the name of service with which this check associated - * @param status Set the status of check * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Check original] using Vert.x codegen. @@ -39,13 +39,13 @@ import io.vertx.ext.consul.CheckStatus fun checkOf( id: String? = null, name: String? = null, - node: String? = null, nodeName: String? = null, + node: String? = null, + status: CheckStatus? = null, notes: String? = null, output: String? = null, serviceId: String? = null, - serviceName: String? = null, - status: CheckStatus? = null): Check = io.vertx.ext.consul.Check().apply { + serviceName: String? = null): Check = io.vertx.ext.consul.Check().apply { if (id != null) { this.setId(id) @@ -53,11 +53,14 @@ fun checkOf( if (name != null) { this.setName(name) } + if (nodeName != null) { + this.setNodeName(nodeName) + } if (node != null) { this.setNode(node) } - if (nodeName != null) { - this.setNodeName(nodeName) + if (status != null) { + this.setStatus(status) } if (notes != null) { this.setNotes(notes) @@ -71,8 +74,5 @@ fun checkOf( if (serviceName != null) { this.setServiceName(serviceName) } - if (status != null) { - this.setStatus(status) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckOptions.kt index 4827bc3f..df42bb4f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckOptions.kt @@ -23,42 +23,51 @@ import io.vertx.ext.consul.CheckStatus * * Options used to register checks in Consul. * - * @param deregisterAfter Set deregister timeout. This is optional field, which is a timeout in the same time format as Interval and TTL. If a check is associated with a service and has the critical state for more than this configured value, then its associated service (and all of its associated checks) will automatically be deregistered. The minimum timeout is 1 minute, and the process that reaps critical services runs every 30 seconds, so it may take slightly longer than the configured timeout to trigger the deregistration. This should generally be configured with a timeout that's much, much longer than any expected recoverable outage for the given service. + * @param serviceId Set the service ID to associate the registered check with an existing service provided by the agent. + * @param status Set the check status to specify the initial state of the health check. + * @param scriptArgs Set scriptArgs. Also you should set checking interval + * @param http Set HTTP address to check. Also you should set checking interval * @param grpc Specifies a gRPC check's endpoint that supports the standard gRPC health checking protocol. The state of the check will be updated at the given Interval by probing the configured endpoint. The endpoint must be represented as address:port/service * @param grpcTls Specifies whether to use TLS for this gRPC health check. If TLS is enabled, then by default, a valid TLS certificate is expected. Certificate verification can be turned off by setting TLSSkipVerify to true. - * @param http Set HTTP address to check. Also you should set checking interval - * @param id Set check ID + * @param tlsSkipVerify Specifies if the certificate for an HTTPS check should not be verified. + * @param ttl Set Time to Live of check. + * @param tcp Set TCP address to check. Also you should set checking interval * @param interval Set checking interval + * @param id Set check ID * @param name Set check name. This is mandatory field * @param notes Set check notes - * @param scriptArgs Set scriptArgs. Also you should set checking interval - * @param serviceId Set the service ID to associate the registered check with an existing service provided by the agent. - * @param status Set the check status to specify the initial state of the health check. - * @param tcp Set TCP address to check. Also you should set checking interval - * @param tlsSkipVerify Specifies if the certificate for an HTTPS check should not be verified. - * @param ttl Set Time to Live of check. + * @param deregisterAfter Set deregister timeout. This is optional field, which is a timeout in the same time format as Interval and TTL. If a check is associated with a service and has the critical state for more than this configured value, then its associated service (and all of its associated checks) will automatically be deregistered. The minimum timeout is 1 minute, and the process that reaps critical services runs every 30 seconds, so it may take slightly longer than the configured timeout to trigger the deregistration. This should generally be configured with a timeout that's much, much longer than any expected recoverable outage for the given service. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.CheckOptions original] using Vert.x codegen. */ fun checkOptionsOf( - deregisterAfter: String? = null, + serviceId: String? = null, + status: CheckStatus? = null, + scriptArgs: Iterable? = null, + http: String? = null, grpc: String? = null, grpcTls: Boolean? = null, - http: String? = null, - id: String? = null, + tlsSkipVerify: Boolean? = null, + ttl: String? = null, + tcp: String? = null, interval: String? = null, + id: String? = null, name: String? = null, notes: String? = null, - scriptArgs: Iterable? = null, - serviceId: String? = null, - status: CheckStatus? = null, - tcp: String? = null, - tlsSkipVerify: Boolean? = null, - ttl: String? = null): CheckOptions = io.vertx.ext.consul.CheckOptions().apply { + deregisterAfter: String? = null): CheckOptions = io.vertx.ext.consul.CheckOptions().apply { - if (deregisterAfter != null) { - this.setDeregisterAfter(deregisterAfter) + if (serviceId != null) { + this.setServiceId(serviceId) + } + if (status != null) { + this.setStatus(status) + } + if (scriptArgs != null) { + this.setScriptArgs(scriptArgs.toList()) + } + if (http != null) { + this.setHttp(http) } if (grpc != null) { this.setGrpc(grpc) @@ -66,38 +75,29 @@ fun checkOptionsOf( if (grpcTls != null) { this.setGrpcTls(grpcTls) } - if (http != null) { - this.setHttp(http) + if (tlsSkipVerify != null) { + this.setTlsSkipVerify(tlsSkipVerify) } - if (id != null) { - this.setId(id) + if (ttl != null) { + this.setTtl(ttl) + } + if (tcp != null) { + this.setTcp(tcp) } if (interval != null) { this.setInterval(interval) } + if (id != null) { + this.setId(id) + } if (name != null) { this.setName(name) } if (notes != null) { this.setNotes(notes) } - if (scriptArgs != null) { - this.setScriptArgs(scriptArgs.toList()) - } - if (serviceId != null) { - this.setServiceId(serviceId) - } - if (status != null) { - this.setStatus(status) - } - if (tcp != null) { - this.setTcp(tcp) - } - if (tlsSkipVerify != null) { - this.setTlsSkipVerify(tlsSkipVerify) - } - if (ttl != null) { - this.setTtl(ttl) + if (deregisterAfter != null) { + this.setDeregisterAfter(deregisterAfter) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckQueryOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckQueryOptions.kt index 6f43d3c1..0d7bdc2b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckQueryOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/CheckQueryOptions.kt @@ -23,36 +23,36 @@ import io.vertx.ext.consul.BlockingQueryOptions * * Options used to requesting list of checks * - * @param blockingOptions Set options for blocking query * @param dc Set an optional datacenter. This will default to the datacenter of the agent being queried * @param filter Set the expression to filter the queries results prior to returning the data - * @param near Set node name for sorting the list in ascending order based on the estimated round trip time from that node. * @param ns Sets the optional namespace to list checks. By default, the namespace will be inherited from the request's ACL token or will default to the default namespace. + * @param near Set node name for sorting the list in ascending order based on the estimated round trip time from that node. + * @param blockingOptions Set options for blocking query * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.CheckQueryOptions original] using Vert.x codegen. */ fun checkQueryOptionsOf( - blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null, dc: String? = null, filter: String? = null, + ns: String? = null, near: String? = null, - ns: String? = null): CheckQueryOptions = io.vertx.ext.consul.CheckQueryOptions().apply { + blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null): CheckQueryOptions = io.vertx.ext.consul.CheckQueryOptions().apply { - if (blockingOptions != null) { - this.setBlockingOptions(blockingOptions) - } if (dc != null) { this.setDc(dc) } if (filter != null) { this.setFilter(filter) } + if (ns != null) { + this.setNs(ns) + } if (near != null) { this.setNear(near) } - if (ns != null) { - this.setNs(ns) + if (blockingOptions != null) { + this.setBlockingOptions(blockingOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ConsulClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ConsulClientOptions.kt index 5b17a2ea..5f105b3b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ConsulClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ConsulClientOptions.kt @@ -35,467 +35,392 @@ import java.util.concurrent.TimeUnit * * Options used to create Consul client. * - * @param aclToken Set the ACL token. When provided, the client will use this token when making requests to the Consul by providing the "?token" query parameter. When not provided, the empty token, which maps to the 'anonymous' ACL policy, is used. + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.ext.consul.ConsulClientOptions]:

- * @param connectTimeout Set the connect timeout + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled + * @param idleTimeout Set the idle timeout, in seconds. zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.consul.ConsulClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.consul.ConsulClientOptions] + * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. + * @param ssl Set whether SSL/TLS is enabled + * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. + * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore + * @param pfxTrustOptions Set the trust options in pfx format + * @param pemTrustOptions Set the trust options. + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. * @param crlPaths Add a CRL path * @param crlValues Add a CRL value - * @param dc Set the datacenter name. When provided, the client will use it when making requests to the Consul by providing the "?dc" query parameter. When not provided, the datacenter of the consul agent is queried. - * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. - * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. - * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param useAlpn Set the ALPN usage. + * @param sslEngineOptions Set to use SSL engine implementation to use. + * @param jdkSslEngineOptions + * @param openSslEngineOptions + * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. + * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param followRedirects Configure the default behavior of the client to follow HTTP 30x redirections. - * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. - * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). - * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param trustAll Set whether all server certificates should be trusted + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param http2MaxPoolSize Set the maximum pool size for HTTP/2 connections - * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. - * @param idleTimeout Set the idle timeout, in seconds. zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. - * @param jdkSslEngineOptions * @param keepAlive Set whether keep alive is enabled on the client * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxChunkSize Set the maximum HTTP chunk size - * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . - * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") - * @param maxPoolSize Set the maximum pool size for connections - * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. - * @param 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. - * @param maxWebSocketFrameSize Set the max websocket frame size - * @param maxWebSocketMessageSize Set the max websocket message size - * @param maxWebSockets Set the max number of WebSockets per endpoint. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param name Set the client name, used when the client is shared, otherwise ignored. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options. - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format * @param pipelining Set whether pipe-lining is enabled on the client * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. - * @param poolCleanerPeriod 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. - * @param poolEventLoopSize Set the number of event-loop the pool use.

The default size is 0. + * @param verifyHost Set whether hostname verification is enabled + * @param tryUseCompression Set whether compression is enabled + * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. + * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. * @param protocolVersion Set the protocol version. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.consul.ConsulClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sendUnmaskedFrames Set true when the client wants to skip frame masking. You may want to set it true on server by server websocket communication: In this case you are by passing RFC6455 protocol. It's false as default. + * @param maxChunkSize Set the maximum HTTP chunk size + * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") + * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . + * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. + * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.ext.consul.ConsulClientOptions]:

+ * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). + * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. + * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. + * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. + * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. + * @param name Set the client name, used when the client is shared, otherwise ignored. + * @param userAgentEnabled Sets whether the Web Client should send a user agent header. Defaults to true. + * @param userAgent Sets the Web Client user agent header. Defaults to Vert.x-WebClient/<version>. + * @param followRedirects Configure the default behavior of the client to follow HTTP 30x redirections. * @param templateExpandOptions + * @param aclToken Set the ACL token. When provided, the client will use this token when making requests to the Consul by providing the "?token" query parameter. When not provided, the empty token, which maps to the 'anonymous' ACL policy, is used. + * @param dc Set the datacenter name. When provided, the client will use it when making requests to the Consul by providing the "?dc" query parameter. When not provided, the datacenter of the consul agent is queried. * @param timeout Sets the amount of time (in milliseconds) after which if the request does not return any data within the timeout period an failure will be passed to the handler and the request will be closed. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param tryUseCompression Set whether compression is enabled - * @param tryUsePerFrameWebSocketCompression Set whether the client will offer the WebSocket per-frame deflate compression extension. - * @param tryUsePerMessageWebSocketCompression Set whether the client will offer the WebSocket per-message deflate compression extension. - * @param useAlpn Set the ALPN usage. - * @param userAgent Sets the Web Client user agent header. Defaults to Vert.x-WebClient/<version>. - * @param userAgentEnabled Sets whether the Web Client should send a user agent header. Defaults to true. - * @param verifyHost Set whether hostname verification is enabled - * @param webSocketClosingTimeout Set the amount of time a client WebSocket will wait until it closes the TCP connection after receiving a close frame.

When a WebSocket is closed, the server should close the TCP connection. This timeout will close the TCP connection on the client when it expires.

Set to 0L closes the TCP connection immediately after receiving the close frame.

Set to a negative value to disable it. - * @param webSocketCompressionAllowClientNoContext Set whether the client_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param webSocketCompressionLevel Set the WebSocket deflate compression level. - * @param webSocketCompressionRequestServerNoContext Set whether the server_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.consul.ConsulClientOptions] + * @param keyCertOptions Set the key/cert options. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.ConsulClientOptions original] using Vert.x codegen. */ fun consulClientOptionsOf( - aclToken: String? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - alpnVersions: Iterable? = null, - connectTimeout: Int? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, + idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, + idleTimeoutUnit: TimeUnit? = null, + ssl: Boolean? = null, + keyStoreOptions: io.vertx.core.net.JksOptions? = null, + pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, + pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, crlPaths: Iterable? = null, crlValues: Iterable? = null, - dc: String? = null, - decoderInitialBufferSize: Int? = null, - defaultHost: String? = null, - defaultPort: Int? = null, - enabledCipherSuites: Iterable? = null, + useAlpn: Boolean? = null, + sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, + tcpFastOpen: Boolean? = null, + tcpCork: Boolean? = null, + tcpQuickAck: Boolean? = null, + tcpUserTimeout: Int? = null, enabledSecureTransportProtocols: Iterable? = null, - followRedirects: Boolean? = null, - forceSni: Boolean? = null, - http2ClearTextUpgrade: Boolean? = null, - http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + trustAll: Boolean? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + http2MultiplexingLimit: Int? = null, http2ConnectionWindowSize: Int? = null, http2KeepAliveTimeout: Int? = null, - http2MaxPoolSize: Int? = null, - http2MultiplexingLimit: Int? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - initialSettings: io.vertx.core.http.Http2Settings? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, keepAlive: Boolean? = null, keepAliveTimeout: Int? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - maxChunkSize: Int? = null, - maxHeaderSize: Int? = null, - maxInitialLineLength: Int? = null, - maxPoolSize: Int? = null, - maxRedirects: Int? = null, - maxWaitQueueSize: Int? = null, - maxWebSocketFrameSize: Int? = null, - maxWebSocketMessageSize: Int? = null, - maxWebSockets: Int? = null, - metricsName: String? = null, - name: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, pipelining: Boolean? = null, pipeliningLimit: Int? = null, - poolCleanerPeriod: Int? = null, - poolEventLoopSize: Int? = null, + verifyHost: Boolean? = null, + tryUseCompression: Boolean? = null, + defaultHost: String? = null, + defaultPort: Int? = null, protocolVersion: HttpVersion? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sendUnmaskedFrames: Boolean? = null, + maxChunkSize: Int? = null, + maxInitialLineLength: Int? = null, + maxHeaderSize: Int? = null, + initialSettings: io.vertx.core.http.Http2Settings? = null, + alpnVersions: Iterable? = null, + http2ClearTextUpgrade: Boolean? = null, + http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, + maxRedirects: Int? = null, + forceSni: Boolean? = null, + decoderInitialBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, shared: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, + name: String? = null, + userAgentEnabled: Boolean? = null, + userAgent: String? = null, + followRedirects: Boolean? = null, templateExpandOptions: io.vertx.uritemplate.ExpandOptions? = null, + aclToken: String? = null, + dc: String? = null, timeout: Long? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - tryUseCompression: Boolean? = null, - tryUsePerFrameWebSocketCompression: Boolean? = null, - tryUsePerMessageWebSocketCompression: Boolean? = null, - useAlpn: Boolean? = null, - userAgent: String? = null, - userAgentEnabled: Boolean? = null, - verifyHost: Boolean? = null, - webSocketClosingTimeout: Int? = null, - webSocketCompressionAllowClientNoContext: Boolean? = null, - webSocketCompressionLevel: Int? = null, - webSocketCompressionRequestServerNoContext: Boolean? = null, - writeIdleTimeout: Int? = null): ConsulClientOptions = io.vertx.ext.consul.ConsulClientOptions().apply { + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): ConsulClientOptions = io.vertx.ext.consul.ConsulClientOptions().apply { - if (aclToken != null) { - this.setAclToken(aclToken) - } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (alpnVersions != null) { - this.setAlpnVersions(alpnVersions.toList()) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (dc != null) { - this.setDc(dc) - } - if (decoderInitialBufferSize != null) { - this.setDecoderInitialBufferSize(decoderInitialBufferSize) - } - if (defaultHost != null) { - this.setDefaultHost(defaultHost) - } - if (defaultPort != null) { - this.setDefaultPort(defaultPort) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } - } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (followRedirects != null) { - this.setFollowRedirects(followRedirects) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (forceSni != null) { - this.setForceSni(forceSni) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (http2ClearTextUpgrade != null) { - this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (http2ClearTextUpgradeWithPreflightRequest != null) { - this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (http2ConnectionWindowSize != null) { - this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (http2KeepAliveTimeout != null) { - this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (http2MaxPoolSize != null) { - this.setHttp2MaxPoolSize(http2MaxPoolSize) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (http2MultiplexingLimit != null) { - this.setHttp2MultiplexingLimit(http2MultiplexingLimit) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (initialSettings != null) { - this.setInitialSettings(initialSettings) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (keepAlive != null) { - this.setKeepAlive(keepAlive) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (keepAliveTimeout != null) { - this.setKeepAliveTimeout(keepAliveTimeout) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxChunkSize != null) { - this.setMaxChunkSize(maxChunkSize) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (maxHeaderSize != null) { - this.setMaxHeaderSize(maxHeaderSize) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (maxInitialLineLength != null) { - this.setMaxInitialLineLength(maxInitialLineLength) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (maxPoolSize != null) { - this.setMaxPoolSize(maxPoolSize) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxRedirects != null) { - this.setMaxRedirects(maxRedirects) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxWaitQueueSize != null) { - this.setMaxWaitQueueSize(maxWaitQueueSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (maxWebSocketFrameSize != null) { - this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (maxWebSocketMessageSize != null) { - this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (maxWebSockets != null) { - this.setMaxWebSockets(maxWebSockets) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (metricsName != null) { - this.setMetricsName(metricsName) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (name != null) { - this.setName(name) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pipelining != null) { - this.setPipelining(pipelining) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pipeliningLimit != null) { - this.setPipeliningLimit(pipeliningLimit) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) + } + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (poolCleanerPeriod != null) { - this.setPoolCleanerPeriod(poolCleanerPeriod) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (poolEventLoopSize != null) { - this.setPoolEventLoopSize(poolEventLoopSize) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (protocolVersion != null) { - this.setProtocolVersion(protocolVersion) + if (metricsName != null) { + this.setMetricsName(metricsName) } if (proxyOptions != null) { this.setProxyOptions(proxyOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (http2MultiplexingLimit != null) { + this.setHttp2MultiplexingLimit(http2MultiplexingLimit) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (http2ConnectionWindowSize != null) { + this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) } - if (sendUnmaskedFrames != null) { - this.setSendUnmaskedFrames(sendUnmaskedFrames) + if (http2KeepAliveTimeout != null) { + this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) } - if (shared != null) { - this.setShared(shared) + if (keepAlive != null) { + this.setKeepAlive(keepAlive) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (keepAliveTimeout != null) { + this.setKeepAliveTimeout(keepAliveTimeout) } - if (ssl != null) { - this.setSsl(ssl) + if (pipelining != null) { + this.setPipelining(pipelining) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (pipeliningLimit != null) { + this.setPipeliningLimit(pipeliningLimit) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (verifyHost != null) { + this.setVerifyHost(verifyHost) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (tryUseCompression != null) { + this.setTryUseCompression(tryUseCompression) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (defaultHost != null) { + this.setDefaultHost(defaultHost) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (defaultPort != null) { + this.setDefaultPort(defaultPort) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (protocolVersion != null) { + this.setProtocolVersion(protocolVersion) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (maxChunkSize != null) { + this.setMaxChunkSize(maxChunkSize) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (maxInitialLineLength != null) { + this.setMaxInitialLineLength(maxInitialLineLength) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (maxHeaderSize != null) { + this.setMaxHeaderSize(maxHeaderSize) } - if (templateExpandOptions != null) { - this.setTemplateExpandOptions(templateExpandOptions) + if (initialSettings != null) { + this.setInitialSettings(initialSettings) } - if (timeout != null) { - this.setTimeout(timeout) + if (alpnVersions != null) { + this.setAlpnVersions(alpnVersions.toList()) } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) + if (http2ClearTextUpgrade != null) { + this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (http2ClearTextUpgradeWithPreflightRequest != null) { + this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (maxRedirects != null) { + this.setMaxRedirects(maxRedirects) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (forceSni != null) { + this.setForceSni(forceSni) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (decoderInitialBufferSize != null) { + this.setDecoderInitialBufferSize(decoderInitialBufferSize) } - if (tryUseCompression != null) { - this.setTryUseCompression(tryUseCompression) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } - if (tryUsePerFrameWebSocketCompression != null) { - this.setTryUsePerFrameWebSocketCompression(tryUsePerFrameWebSocketCompression) + if (shared != null) { + this.setShared(shared) } - if (tryUsePerMessageWebSocketCompression != null) { - this.setTryUsePerMessageWebSocketCompression(tryUsePerMessageWebSocketCompression) + if (name != null) { + this.setName(name) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (userAgentEnabled != null) { + this.setUserAgentEnabled(userAgentEnabled) } if (userAgent != null) { this.setUserAgent(userAgent) } - if (userAgentEnabled != null) { - this.setUserAgentEnabled(userAgentEnabled) - } - if (verifyHost != null) { - this.setVerifyHost(verifyHost) + if (followRedirects != null) { + this.setFollowRedirects(followRedirects) } - if (webSocketClosingTimeout != null) { - this.setWebSocketClosingTimeout(webSocketClosingTimeout) + if (templateExpandOptions != null) { + this.setTemplateExpandOptions(templateExpandOptions) } - if (webSocketCompressionAllowClientNoContext != null) { - this.setWebSocketCompressionAllowClientNoContext(webSocketCompressionAllowClientNoContext) + if (aclToken != null) { + this.setAclToken(aclToken) } - if (webSocketCompressionLevel != null) { - this.setWebSocketCompressionLevel(webSocketCompressionLevel) + if (dc != null) { + this.setDc(dc) } - if (webSocketCompressionRequestServerNoContext != null) { - this.setWebSocketCompressionRequestServerNoContext(webSocketCompressionRequestServerNoContext) + if (timeout != null) { + this.setTimeout(timeout) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Coordinate.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Coordinate.kt index 5e3dc2c8..1a3278e1 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Coordinate.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Coordinate.kt @@ -22,22 +22,25 @@ import io.vertx.ext.consul.Coordinate * * Holds network coordinates of node * + * @param node Set name of node * @param adj Set adjustment * @param err Set error * @param height Set height - * @param node Set name of node * @param vec Set vector * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Coordinate original] using Vert.x codegen. */ fun coordinateOf( + node: String? = null, adj: Float? = null, err: Float? = null, height: Float? = null, - node: String? = null, vec: Iterable? = null): Coordinate = io.vertx.ext.consul.Coordinate().apply { + if (node != null) { + this.setNode(node) + } if (adj != null) { this.setAdj(adj) } @@ -47,9 +50,6 @@ fun coordinateOf( if (height != null) { this.setHeight(height) } - if (node != null) { - this.setNode(node) - } if (vec != null) { this.setVec(vec.toList()) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Event.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Event.kt index f41b8c67..7996d201 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Event.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Event.kt @@ -23,42 +23,39 @@ import io.vertx.ext.consul.Event * Holds properties of Consul event * * @param id Set ID of event - * @param lTime Set the Lamport clock time * @param name Set name of event - * @param node Set regular expression to filter by node name * @param payload Set payload of event + * @param node Set regular expression to filter by node name * @param service Set regular expression to filter by service * @param tag Set regular expression to filter by tag * @param version Set version + * @param lTime Set the Lamport clock time * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Event original] using Vert.x codegen. */ fun eventOf( id: String? = null, - lTime: Int? = null, name: String? = null, - node: String? = null, payload: String? = null, + node: String? = null, service: String? = null, tag: String? = null, - version: Int? = null): Event = io.vertx.ext.consul.Event().apply { + version: Int? = null, + lTime: Int? = null): Event = io.vertx.ext.consul.Event().apply { if (id != null) { this.setId(id) } - if (lTime != null) { - this.setLTime(lTime) - } if (name != null) { this.setName(name) } - if (node != null) { - this.setNode(node) - } if (payload != null) { this.setPayload(payload) } + if (node != null) { + this.setNode(node) + } if (service != null) { this.setService(service) } @@ -68,5 +65,8 @@ fun eventOf( if (version != null) { this.setVersion(version) } + if (lTime != null) { + this.setLTime(lTime) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventListOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventListOptions.kt index d62ba973..4cf35522 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventListOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventListOptions.kt @@ -23,21 +23,21 @@ import io.vertx.ext.consul.BlockingQueryOptions * * Holds options for events list request * - * @param blockingOptions Set options for blocking query * @param name Set event name for filtering on events + * @param blockingOptions Set options for blocking query * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.EventListOptions original] using Vert.x codegen. */ fun eventListOptionsOf( - blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null, - name: String? = null): EventListOptions = io.vertx.ext.consul.EventListOptions().apply { + name: String? = null, + blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null): EventListOptions = io.vertx.ext.consul.EventListOptions().apply { - if (blockingOptions != null) { - this.setBlockingOptions(blockingOptions) - } if (name != null) { this.setName(name) } + if (blockingOptions != null) { + this.setBlockingOptions(blockingOptions) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventOptions.kt index 474fd938..6ff6df9c 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/EventOptions.kt @@ -23,30 +23,30 @@ import io.vertx.ext.consul.EventOptions * Options used to trigger a new user event. * * @param node Set regular expression to filter by node name - * @param payload Set payload of event * @param service Set regular expression to filter by service * @param tag Set regular expression to filter by tag + * @param payload Set payload of event * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.EventOptions original] using Vert.x codegen. */ fun eventOptionsOf( node: String? = null, - payload: String? = null, service: String? = null, - tag: String? = null): EventOptions = io.vertx.ext.consul.EventOptions().apply { + tag: String? = null, + payload: String? = null): EventOptions = io.vertx.ext.consul.EventOptions().apply { if (node != null) { this.setNode(node) } - if (payload != null) { - this.setPayload(payload) - } if (service != null) { this.setService(service) } if (tag != null) { this.setTag(tag) } + if (payload != null) { + this.setPayload(payload) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValue.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValue.kt index d84647b8..8adbcf02 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValue.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValue.kt @@ -22,46 +22,46 @@ import io.vertx.ext.consul.KeyValue * * Represents key/value pair stored in Consul * - * @param createIndex Set the internal index value that represents when the entry was created. - * @param flags Set the flags attached to this entry. Clients can choose to use this however makes sense for their application. * @param key Set the key - * @param lockIndex Set the number of times this key has successfully been acquired in a lock. - * @param modifyIndex Set the last index that modified this key. - * @param session Set the session that owns the lock * @param value Set the value + * @param session Set the session that owns the lock + * @param flags Set the flags attached to this entry. Clients can choose to use this however makes sense for their application. + * @param createIndex Set the internal index value that represents when the entry was created. + * @param modifyIndex Set the last index that modified this key. + * @param lockIndex Set the number of times this key has successfully been acquired in a lock. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.KeyValue original] using Vert.x codegen. */ fun keyValueOf( - createIndex: Long? = null, - flags: Long? = null, key: String? = null, - lockIndex: Long? = null, - modifyIndex: Long? = null, + value: String? = null, session: String? = null, - value: String? = null): KeyValue = io.vertx.ext.consul.KeyValue().apply { + flags: Long? = null, + createIndex: Long? = null, + modifyIndex: Long? = null, + lockIndex: Long? = null): KeyValue = io.vertx.ext.consul.KeyValue().apply { - if (createIndex != null) { - this.setCreateIndex(createIndex) + if (key != null) { + this.setKey(key) + } + if (value != null) { + this.setValue(value) + } + if (session != null) { + this.setSession(session) } if (flags != null) { this.setFlags(flags) } - if (key != null) { - this.setKey(key) - } - if (lockIndex != null) { - this.setLockIndex(lockIndex) + if (createIndex != null) { + this.setCreateIndex(createIndex) } if (modifyIndex != null) { this.setModifyIndex(modifyIndex) } - if (session != null) { - this.setSession(session) - } - if (value != null) { - this.setValue(value) + if (lockIndex != null) { + this.setLockIndex(lockIndex) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValueOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValueOptions.kt index c1b7d5c8..e91e825d 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValueOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/KeyValueOptions.kt @@ -23,30 +23,30 @@ import io.vertx.ext.consul.KeyValueOptions * Options used to put key/value pair to Consul. * * @param acquireSession Set session ID for lock acquisition operation. - * @param casIndex Set the Check-And-Set index. If the index is 0, Consul will only put the key if it does not already exist. If the index is non-zero, the key is only set if the index matches the ModifyIndex of that key. - * @param flags Set the flags. Flags is an value between 0 and 264-1 that can be attached to each entry. Clients can choose to use this however makes sense for their application. * @param releaseSession Set session ID for lock release operation. + * @param flags Set the flags. Flags is an value between 0 and 264-1 that can be attached to each entry. Clients can choose to use this however makes sense for their application. + * @param casIndex Set the Check-And-Set index. If the index is 0, Consul will only put the key if it does not already exist. If the index is non-zero, the key is only set if the index matches the ModifyIndex of that key. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.KeyValueOptions original] using Vert.x codegen. */ fun keyValueOptionsOf( acquireSession: String? = null, - casIndex: Long? = null, + releaseSession: String? = null, flags: Long? = null, - releaseSession: String? = null): KeyValueOptions = io.vertx.ext.consul.KeyValueOptions().apply { + casIndex: Long? = null): KeyValueOptions = io.vertx.ext.consul.KeyValueOptions().apply { if (acquireSession != null) { this.setAcquireSession(acquireSession) } - if (casIndex != null) { - this.setCasIndex(casIndex) + if (releaseSession != null) { + this.setReleaseSession(releaseSession) } if (flags != null) { this.setFlags(flags) } - if (releaseSession != null) { - this.setReleaseSession(releaseSession) + if (casIndex != null) { + this.setCasIndex(casIndex) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/MaintenanceOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/MaintenanceOptions.kt index 4f0d805e..98e5020f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/MaintenanceOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/MaintenanceOptions.kt @@ -25,24 +25,24 @@ import io.vertx.ext.consul.MaintenanceOptions * and will not be present in DNS or API queries. Maintenance mode is persistent * and will be automatically restored on agent restart. * - * @param enable Set maintenance mode to enabled: true to enter maintenance mode or false to resume normal operation. This flag is required. * @param id Set the ID of service. This field is required. + * @param enable Set maintenance mode to enabled: true to enter maintenance mode or false to resume normal operation. This flag is required. * @param reason Set the reason message. If provided, its value should be a text string explaining the reason for placing the service into maintenance mode. This is simply to aid human operators. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.MaintenanceOptions original] using Vert.x codegen. */ fun maintenanceOptionsOf( - enable: Boolean? = null, id: String? = null, + enable: Boolean? = null, reason: String? = null): MaintenanceOptions = io.vertx.ext.consul.MaintenanceOptions().apply { - if (enable != null) { - this.setEnable(enable) - } if (id != null) { this.setId(id) } + if (enable != null) { + this.setEnable(enable) + } if (reason != null) { this.setReason(reason) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Node.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Node.kt index dad876d5..38d593d4 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Node.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Node.kt @@ -21,46 +21,46 @@ import io.vertx.ext.consul.Node * A function providing a DSL for building [io.vertx.ext.consul.Node] objects. * * - * @param address Set node address - * @param datacenter Set node datacenter * @param id Set node id - * @param lanAddress Set node lan address * @param name Set node name - * @param nodeMeta Set node meta + * @param address Set node address + * @param lanAddress Set node lan address * @param wanAddress Set node wan address + * @param datacenter Set node datacenter + * @param nodeMeta Set node meta * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Node original] using Vert.x codegen. */ fun nodeOf( - address: String? = null, - datacenter: String? = null, id: String? = null, - lanAddress: String? = null, name: String? = null, - nodeMeta: Map? = null, - wanAddress: String? = null): Node = io.vertx.ext.consul.Node().apply { + address: String? = null, + lanAddress: String? = null, + wanAddress: String? = null, + datacenter: String? = null, + nodeMeta: Map? = null): Node = io.vertx.ext.consul.Node().apply { - if (address != null) { - this.setAddress(address) - } - if (datacenter != null) { - this.setDatacenter(datacenter) - } if (id != null) { this.setId(id) } - if (lanAddress != null) { - this.setLanAddress(lanAddress) - } if (name != null) { this.setName(name) } - if (nodeMeta != null) { - this.setNodeMeta(nodeMeta) + if (address != null) { + this.setAddress(address) + } + if (lanAddress != null) { + this.setLanAddress(lanAddress) } if (wanAddress != null) { this.setWanAddress(wanAddress) } + if (datacenter != null) { + this.setDatacenter(datacenter) + } + if (nodeMeta != null) { + this.setNodeMeta(nodeMeta) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/NodeQueryOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/NodeQueryOptions.kt index 61564a13..bf1f61f4 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/NodeQueryOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/NodeQueryOptions.kt @@ -23,21 +23,21 @@ import io.vertx.ext.consul.BlockingQueryOptions * * Options used to requesting list of nodes * - * @param blockingOptions Set options for blocking query * @param near Set node name for sorting the list in ascending order based on the estimated round trip time from that node. + * @param blockingOptions Set options for blocking query * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.NodeQueryOptions original] using Vert.x codegen. */ fun nodeQueryOptionsOf( - blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null, - near: String? = null): NodeQueryOptions = io.vertx.ext.consul.NodeQueryOptions().apply { + near: String? = null, + blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null): NodeQueryOptions = io.vertx.ext.consul.NodeQueryOptions().apply { - if (blockingOptions != null) { - this.setBlockingOptions(blockingOptions) - } if (near != null) { this.setNear(near) } + if (blockingOptions != null) { + this.setBlockingOptions(blockingOptions) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryDefinition.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryDefinition.kt index ac253eb6..85fd78b1 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryDefinition.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryDefinition.kt @@ -22,76 +22,76 @@ import io.vertx.ext.consul.PreparedQueryDefinition * * Defines a prepared query. * - * @param dcs Specifies a fixed list of remote datacenters to forward the query to if there are no healthy nodes in the local datacenter. Datacenters are queried in the order given in the list. If this option is combined with NearestN, then the NearestN queries will be performed first, followed by the list given by Datacenters. A given datacenter will only be queried one time during a failover, even if it is selected by both NearestN and is listed in Datacenters. - * @param dnsTtl Set the TTL duration when query results are served over DNS. If this is specified, it will take precedence over any Consul agent-specific configuration. * @param id Set ID of the query, always generated by Consul - * @param meta Set a list of user-defined key/value pairs that will be used for filtering the query results to nodes with the given metadata values present. * @param name Set an optional friendly name that can be used to execute a query instead of using its ID - * @param nearestN Specifies that the query will be forwarded to up to NearestN other datacenters based on their estimated network round trip time using Network Coordinates from the WAN gossip pool. The median round trip time from the server handling the query to the servers in the remote datacenter is used to determine the priority. - * @param passing Specifies the behavior of the query's health check filtering. If this is set to false, the results will include nodes with checks in the passing as well as the warning states. If this is set to true, only nodes with checks in the passing state will be returned. - * @param service Set the name of the service to query * @param session Set the ID of an existing session. This provides a way to automatically remove a prepared query when the given session is invalidated. If not given the prepared query must be manually removed when no longer needed. + * @param service Set the name of the service to query + * @param token Set the ACL token to use each time the query is executed. This allows queries to be executed by clients with lesser or even no ACL Token, so this should be used with care. + * @param dnsTtl Set the TTL duration when query results are served over DNS. If this is specified, it will take precedence over any Consul agent-specific configuration. + * @param nearestN Specifies that the query will be forwarded to up to NearestN other datacenters based on their estimated network round trip time using Network Coordinates from the WAN gossip pool. The median round trip time from the server handling the query to the servers in the remote datacenter is used to determine the priority. + * @param dcs Specifies a fixed list of remote datacenters to forward the query to if there are no healthy nodes in the local datacenter. Datacenters are queried in the order given in the list. If this option is combined with NearestN, then the NearestN queries will be performed first, followed by the list given by Datacenters. A given datacenter will only be queried one time during a failover, even if it is selected by both NearestN and is listed in Datacenters. * @param tags Set a list of service tags to filter the query results. For a service to pass the tag filter it must have all of the required tags, and none of the excluded tags (prefixed with `!`). - * @param templateRegexp Set regular expression which is used to extract fields from the entire name, once this template is selected. + * @param passing Specifies the behavior of the query's health check filtering. If this is set to false, the results will include nodes with checks in the passing as well as the warning states. If this is set to true, only nodes with checks in the passing state will be returned. + * @param meta Set a list of user-defined key/value pairs that will be used for filtering the query results to nodes with the given metadata values present. * @param templateType The template type, which must be name_prefix_match. This means that the template will apply to any query lookup with a name whose prefix matches the Name field of the template. - * @param token Set the ACL token to use each time the query is executed. This allows queries to be executed by clients with lesser or even no ACL Token, so this should be used with care. + * @param templateRegexp Set regular expression which is used to extract fields from the entire name, once this template is selected. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.PreparedQueryDefinition original] using Vert.x codegen. */ fun preparedQueryDefinitionOf( - dcs: Iterable? = null, - dnsTtl: String? = null, id: String? = null, - meta: Map? = null, name: String? = null, - nearestN: Int? = null, - passing: Boolean? = null, - service: String? = null, session: String? = null, + service: String? = null, + token: String? = null, + dnsTtl: String? = null, + nearestN: Int? = null, + dcs: Iterable? = null, tags: Iterable? = null, - templateRegexp: String? = null, + passing: Boolean? = null, + meta: Map? = null, templateType: String? = null, - token: String? = null): PreparedQueryDefinition = io.vertx.ext.consul.PreparedQueryDefinition().apply { + templateRegexp: String? = null): PreparedQueryDefinition = io.vertx.ext.consul.PreparedQueryDefinition().apply { - if (dcs != null) { - this.setDcs(dcs.toList()) - } - if (dnsTtl != null) { - this.setDnsTtl(dnsTtl) - } if (id != null) { this.setId(id) } - if (meta != null) { - this.setMeta(meta) - } if (name != null) { this.setName(name) } - if (nearestN != null) { - this.setNearestN(nearestN) - } - if (passing != null) { - this.setPassing(passing) + if (session != null) { + this.setSession(session) } if (service != null) { this.setService(service) } - if (session != null) { - this.setSession(session) + if (token != null) { + this.setToken(token) + } + if (dnsTtl != null) { + this.setDnsTtl(dnsTtl) + } + if (nearestN != null) { + this.setNearestN(nearestN) + } + if (dcs != null) { + this.setDcs(dcs.toList()) } if (tags != null) { this.setTags(tags.toList()) } - if (templateRegexp != null) { - this.setTemplateRegexp(templateRegexp) + if (passing != null) { + this.setPassing(passing) + } + if (meta != null) { + this.setMeta(meta) } if (templateType != null) { this.setTemplateType(templateType) } - if (token != null) { - this.setToken(token) + if (templateRegexp != null) { + this.setTemplateRegexp(templateRegexp) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteOptions.kt index 43831413..28ae5f8f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteOptions.kt @@ -22,21 +22,21 @@ import io.vertx.ext.consul.PreparedQueryExecuteOptions * * Options used to execute prepared query * - * @param limit Set the size of the list to the given number of nodes. This is applied after any sorting or shuffling. * @param near Set node name for sorting the list in ascending order based on the estimated round trip time from that node. Passing _agent will use the agent's node for the sort. If this is not present, the default behavior will shuffle the nodes randomly each time the query is executed. + * @param limit Set the size of the list to the given number of nodes. This is applied after any sorting or shuffling. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.PreparedQueryExecuteOptions original] using Vert.x codegen. */ fun preparedQueryExecuteOptionsOf( - limit: Int? = null, - near: String? = null): PreparedQueryExecuteOptions = io.vertx.ext.consul.PreparedQueryExecuteOptions().apply { + near: String? = null, + limit: Int? = null): PreparedQueryExecuteOptions = io.vertx.ext.consul.PreparedQueryExecuteOptions().apply { - if (limit != null) { - this.setLimit(limit) - } if (near != null) { this.setNear(near) } + if (limit != null) { + this.setLimit(limit) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteResponse.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteResponse.kt index c6b2dbf2..e18c174a 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteResponse.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/PreparedQueryExecuteResponse.kt @@ -23,22 +23,25 @@ import io.vertx.ext.consul.ServiceEntry * * The results of executing prepared query * + * @param service Set the service name that the query was selecting. This is useful for context in case an empty list of nodes is returned. * @param dc Set the datacenter that ultimately provided the list of nodes * @param dnsTtl Set the TTL duration when query results are served over DNS. If this is specified, it will take precedence over any Consul agent-specific configuration. * @param failovers Set the number of remote datacenters that were queried while executing the query. * @param nodes Set the list of healthy nodes providing the given service, as specified by the constraints of the prepared query. - * @param service Set the service name that the query was selecting. This is useful for context in case an empty list of nodes is returned. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.PreparedQueryExecuteResponse original] using Vert.x codegen. */ fun preparedQueryExecuteResponseOf( + service: String? = null, dc: String? = null, dnsTtl: String? = null, failovers: Int? = null, - nodes: Iterable? = null, - service: String? = null): PreparedQueryExecuteResponse = io.vertx.ext.consul.PreparedQueryExecuteResponse().apply { + nodes: Iterable? = null): PreparedQueryExecuteResponse = io.vertx.ext.consul.PreparedQueryExecuteResponse().apply { + if (service != null) { + this.setService(service) + } if (dc != null) { this.setDc(dc) } @@ -51,8 +54,5 @@ fun preparedQueryExecuteResponseOf( if (nodes != null) { this.setNodes(nodes.toList()) } - if (service != null) { - this.setService(service) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Service.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Service.kt index 01d6cf30..894d0bc5 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Service.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Service.kt @@ -22,51 +22,51 @@ import io.vertx.ext.consul.Service * * Holds properties of service and node that its containing * - * @param address Set service address - * @param id Set ID of service - * @param meta Specifies arbitrary KV metadata linked to the service instance. - * @param name Set service name * @param node Set node name * @param nodeAddress Set node address - * @param port Set service port + * @param id Set ID of service + * @param name Set service name * @param tags Set list of service tags + * @param address Set service address + * @param meta Specifies arbitrary KV metadata linked to the service instance. + * @param port Set service port * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Service original] using Vert.x codegen. */ fun serviceOf( - address: String? = null, - id: String? = null, - meta: Map? = null, - name: String? = null, node: String? = null, nodeAddress: String? = null, - port: Int? = null, - tags: Iterable? = null): Service = io.vertx.ext.consul.Service().apply { + id: String? = null, + name: String? = null, + tags: Iterable? = null, + address: String? = null, + meta: Map? = null, + port: Int? = null): Service = io.vertx.ext.consul.Service().apply { - if (address != null) { - this.setAddress(address) + if (node != null) { + this.setNode(node) + } + if (nodeAddress != null) { + this.setNodeAddress(nodeAddress) } if (id != null) { this.setId(id) } - if (meta != null) { - this.setMeta(meta) - } if (name != null) { this.setName(name) } - if (node != null) { - this.setNode(node) + if (tags != null) { + this.setTags(tags.toList()) } - if (nodeAddress != null) { - this.setNodeAddress(nodeAddress) + if (address != null) { + this.setAddress(address) + } + if (meta != null) { + this.setMeta(meta) } if (port != null) { this.setPort(port) } - if (tags != null) { - this.setTags(tags.toList()) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceEntry.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceEntry.kt index 4bd822d3..6c3206c6 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceEntry.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceEntry.kt @@ -25,26 +25,26 @@ import io.vertx.ext.consul.Service * * Holds properties of service, node and related checks * - * @param checks Set list of checks * @param node Set node * @param service Set service + * @param checks Set list of checks * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.ServiceEntry original] using Vert.x codegen. */ fun serviceEntryOf( - checks: Iterable? = null, node: io.vertx.ext.consul.Node? = null, - service: io.vertx.ext.consul.Service? = null): ServiceEntry = io.vertx.ext.consul.ServiceEntry().apply { + service: io.vertx.ext.consul.Service? = null, + checks: Iterable? = null): ServiceEntry = io.vertx.ext.consul.ServiceEntry().apply { - if (checks != null) { - this.setChecks(checks.toList()) - } if (node != null) { this.setNode(node) } if (service != null) { this.setService(service) } + if (checks != null) { + this.setChecks(checks.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceOptions.kt index bf187446..2977c6a2 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceOptions.kt @@ -23,51 +23,51 @@ import io.vertx.ext.consul.CheckOptions * * Options used to register service. * - * @param address Set service address - * @param checkListOptions Set checks options of service - * @param checkOptions Set check options of service * @param id Set the ID of session - * @param meta Specifies arbitrary KV metadata linked to the service instance. * @param name Set service name - * @param port Set service port * @param tags Set list of tags associated with service + * @param address Set service address + * @param meta Specifies arbitrary KV metadata linked to the service instance. + * @param port Set service port + * @param checkOptions Set check options of service + * @param checkListOptions Set checks options of service * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.ServiceOptions original] using Vert.x codegen. */ fun serviceOptionsOf( - address: String? = null, - checkListOptions: Iterable? = null, - checkOptions: io.vertx.ext.consul.CheckOptions? = null, id: String? = null, - meta: Map? = null, name: String? = null, + tags: Iterable? = null, + address: String? = null, + meta: Map? = null, port: Int? = null, - tags: Iterable? = null): ServiceOptions = io.vertx.ext.consul.ServiceOptions().apply { + checkOptions: io.vertx.ext.consul.CheckOptions? = null, + checkListOptions: Iterable? = null): ServiceOptions = io.vertx.ext.consul.ServiceOptions().apply { - if (address != null) { - this.setAddress(address) + if (id != null) { + this.setId(id) } - if (checkListOptions != null) { - this.setCheckListOptions(checkListOptions.toList()) + if (name != null) { + this.setName(name) } - if (checkOptions != null) { - this.setCheckOptions(checkOptions) + if (tags != null) { + this.setTags(tags.toList()) } - if (id != null) { - this.setId(id) + if (address != null) { + this.setAddress(address) } if (meta != null) { this.setMeta(meta) } - if (name != null) { - this.setName(name) - } if (port != null) { this.setPort(port) } - if (tags != null) { - this.setTags(tags.toList()) + if (checkOptions != null) { + this.setCheckOptions(checkOptions) + } + if (checkListOptions != null) { + this.setCheckListOptions(checkListOptions.toList()) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceQueryOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceQueryOptions.kt index 54d77adb..0a0be475 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceQueryOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceQueryOptions.kt @@ -23,26 +23,26 @@ import io.vertx.ext.consul.BlockingQueryOptions * * Options used to requesting list of services * - * @param blockingOptions Set options for blocking query * @param near Set node name for sorting the list in ascending order based on the estimated round trip time from that node. * @param tag Set tag for filtering request results + * @param blockingOptions Set options for blocking query * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.ServiceQueryOptions original] using Vert.x codegen. */ fun serviceQueryOptionsOf( - blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null, near: String? = null, - tag: String? = null): ServiceQueryOptions = io.vertx.ext.consul.ServiceQueryOptions().apply { + tag: String? = null, + blockingOptions: io.vertx.ext.consul.BlockingQueryOptions? = null): ServiceQueryOptions = io.vertx.ext.consul.ServiceQueryOptions().apply { - if (blockingOptions != null) { - this.setBlockingOptions(blockingOptions) - } if (near != null) { this.setNear(near) } if (tag != null) { this.setTag(tag) } + if (blockingOptions != null) { + this.setBlockingOptions(blockingOptions) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Session.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Session.kt index b3dcd34f..a2fde171 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Session.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/Session.kt @@ -22,41 +22,41 @@ import io.vertx.ext.consul.Session * * Holds properties of Consul sessions * + * @param lockDelay Set the Lock delay of session + * @param node Set the ID of node * @param checks Set the list of associated health checks - * @param createIndex Set the create index of session * @param id Set the ID of node + * @param createIndex Set the create index of session * @param index Set Consul index - * @param lockDelay Set the Lock delay of session - * @param node Set the ID of node * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Session original] using Vert.x codegen. */ fun sessionOf( + lockDelay: Long? = null, + node: String? = null, checks: Iterable? = null, - createIndex: Long? = null, id: String? = null, - index: Long? = null, - lockDelay: Long? = null, - node: String? = null): Session = io.vertx.ext.consul.Session().apply { + createIndex: Long? = null, + index: Long? = null): Session = io.vertx.ext.consul.Session().apply { + if (lockDelay != null) { + this.setLockDelay(lockDelay) + } + if (node != null) { + this.setNode(node) + } if (checks != null) { this.setChecks(checks.toList()) } - if (createIndex != null) { - this.setCreateIndex(createIndex) - } if (id != null) { this.setId(id) } + if (createIndex != null) { + this.setCreateIndex(createIndex) + } if (index != null) { this.setIndex(index) } - if (lockDelay != null) { - this.setLockDelay(lockDelay) - } - if (node != null) { - this.setNode(node) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/SessionOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/SessionOptions.kt index 67e3a790..aa2025af 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/SessionOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/SessionOptions.kt @@ -23,30 +23,24 @@ import io.vertx.ext.consul.SessionBehavior * * Options used to create session. * - * @param behavior Set the behavior when a session is invalidated. The release behavior is the default if none is specified. - * @param checks Set a list of associated health checks. It is highly recommended that, if you override this list, you include the default "serfHealth" * @param lockDelay Set the lock-delay period. * @param name Set the human-readable name for the Session * @param node Set the node to which the session will be assigned + * @param checks Set a list of associated health checks. It is highly recommended that, if you override this list, you include the default "serfHealth" + * @param behavior Set the behavior when a session is invalidated. The release behavior is the default if none is specified. * @param ttl Set the TTL interval. When TTL interval expires without being renewed, the session has expired and an invalidation is triggered. If specified, it must be between 10s and 86400s currently. The contract of a TTL is that it represents a lower bound for invalidation; that is, Consul will not expire the session before the TTL is reached, but it is allowed to delay the expiration past the TTL. The lowest practical TTL should be used to keep the number of managed sessions low. When locks are forcibly expired, such as during a leader election, sessions may not be reaped for up to double this TTL, so long TTL values (> 1 hour) should be avoided. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.SessionOptions original] using Vert.x codegen. */ fun sessionOptionsOf( - behavior: SessionBehavior? = null, - checks: Iterable? = null, lockDelay: Long? = null, name: String? = null, node: String? = null, + checks: Iterable? = null, + behavior: SessionBehavior? = null, ttl: Long? = null): SessionOptions = io.vertx.ext.consul.SessionOptions().apply { - if (behavior != null) { - this.setBehavior(behavior) - } - if (checks != null) { - this.setChecks(checks.toList()) - } if (lockDelay != null) { this.setLockDelay(lockDelay) } @@ -56,6 +50,12 @@ fun sessionOptionsOf( if (node != null) { this.setNode(node) } + if (checks != null) { + this.setChecks(checks.toList()) + } + if (behavior != null) { + this.setBehavior(behavior) + } if (ttl != null) { this.setTtl(ttl) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnKVOperation.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnKVOperation.kt index b95875b6..582c7b78 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnKVOperation.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnKVOperation.kt @@ -23,41 +23,41 @@ import io.vertx.ext.consul.TxnKVVerb * * Holds operation to apply to the key/value store inside a transaction * + * @param type Set the type of operation to perform + * @param key Set the key + * @param value Set the value * @param flags Set the flags attached to this entry. Clients can choose to use this however makes sense for their application. * @param index Set the index used for locking, unlocking, and check-and-set operations. - * @param key Set the key * @param session Set the session used for locking, unlocking, and check-and-set operations. - * @param type Set the type of operation to perform - * @param value Set the value * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.TxnKVOperation original] using Vert.x codegen. */ fun txnKVOperationOf( + type: TxnKVVerb? = null, + key: String? = null, + value: String? = null, flags: Long? = null, index: Long? = null, - key: String? = null, - session: String? = null, - type: TxnKVVerb? = null, - value: String? = null): TxnKVOperation = io.vertx.ext.consul.TxnKVOperation().apply { + session: String? = null): TxnKVOperation = io.vertx.ext.consul.TxnKVOperation().apply { + if (type != null) { + this.setType(type) + } + if (key != null) { + this.setKey(key) + } + if (value != null) { + this.setValue(value) + } if (flags != null) { this.setFlags(flags) } if (index != null) { this.setIndex(index) } - if (key != null) { - this.setKey(key) - } if (session != null) { this.setSession(session) } - if (type != null) { - this.setType(type) - } - if (value != null) { - this.setValue(value) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnResponse.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnResponse.kt index 0737e07f..7f9790aa 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnResponse.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/TxnResponse.kt @@ -23,25 +23,25 @@ import io.vertx.ext.consul.TxnError * * Holds results of transaction * - * @param errors Adds error to this response * @param results Adds result to this response + * @param errors Adds error to this response * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.TxnResponse original] using Vert.x codegen. */ fun txnResponseOf( - errors: Iterable? = null, - results: Iterable? = null): TxnResponse = io.vertx.ext.consul.TxnResponse().apply { + results: Iterable? = null, + errors: Iterable? = null): TxnResponse = io.vertx.ext.consul.TxnResponse().apply { - if (errors != null) { - for (item in errors) { - this.addError(item) - } - } if (results != null) { for (item in results) { this.addResult(item) } } + if (errors != null) { + for (item in errors) { + this.addError(item) + } + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/policy/AclPolicy.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/policy/AclPolicy.kt index 1174de3a..584d0437 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/policy/AclPolicy.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/policy/AclPolicy.kt @@ -22,36 +22,36 @@ import io.vertx.ext.consul.policy.AclPolicy * * Holds properties of Acl policies * - * @param datacenters Sets an optional datacenters. By default, the policy is valid in all datacenters - * @param description Sets an optional free-form description that is human-readable. * @param name Sets a name. Must be unique - * @param namespace Sets an optional namespace. Default value is ns URL query parameter or in the X-Consul-Namespace header, or 'default' namespace. + * @param description Sets an optional free-form description that is human-readable. * @param rules Sets a rules. The format of the Rules property is detailed in the ACL Rules documentation + * @param datacenters Sets an optional datacenters. By default, the policy is valid in all datacenters + * @param namespace Sets an optional namespace. Default value is ns URL query parameter or in the X-Consul-Namespace header, or 'default' namespace. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.policy.AclPolicy original] using Vert.x codegen. */ fun aclPolicyOf( - datacenters: Iterable? = null, - description: String? = null, name: String? = null, - namespace: String? = null, - rules: String? = null): AclPolicy = io.vertx.ext.consul.policy.AclPolicy().apply { + description: String? = null, + rules: String? = null, + datacenters: Iterable? = null, + namespace: String? = null): AclPolicy = io.vertx.ext.consul.policy.AclPolicy().apply { - if (datacenters != null) { - this.setDatacenters(datacenters.toList()) + if (name != null) { + this.setName(name) } if (description != null) { this.setDescription(description) } - if (name != null) { - this.setName(name) + if (rules != null) { + this.setRules(rules) + } + if (datacenters != null) { + this.setDatacenters(datacenters.toList()) } if (namespace != null) { this.setNamespace(namespace) } - if (rules != null) { - this.setRules(rules) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/AclToken.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/AclToken.kt index b61bc274..c1d78104 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/AclToken.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/AclToken.kt @@ -22,16 +22,24 @@ import io.vertx.ext.consul.token.ServiceTokenApplyingOptions fun aclTokenOf( description: String? = null, + policies: Iterable? = null, + policys: Iterable? = null, expirationTime: String? = null, namespace: String? = null, nodeIdentities: Iterable? = null, - policies: Iterable? = null, - policys: Iterable? = null, serviceIdentities: Iterable? = null): AclToken = io.vertx.ext.consul.token.AclToken().apply { if (description != null) { this.setDescription(description) } + if (policies != null) { + this.setPolicies(policies.toList()) + } + if (policys != null) { + for (item in policys) { + this.addPolicy(item) + } + } if (expirationTime != null) { this.setExpirationTime(expirationTime) } @@ -41,14 +49,6 @@ fun aclTokenOf( if (nodeIdentities != null) { this.setNodeIdentities(nodeIdentities.toList()) } - if (policies != null) { - this.setPolicies(policies.toList()) - } - if (policys != null) { - for (item in policys) { - this.addPolicy(item) - } - } if (serviceIdentities != null) { this.setServiceIdentities(serviceIdentities.toList()) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/NodeTokenApplyingOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/NodeTokenApplyingOptions.kt index 3eabc281..1dbdd791 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/NodeTokenApplyingOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/NodeTokenApplyingOptions.kt @@ -18,14 +18,14 @@ package io.vertx.kotlin.ext.consul.token import io.vertx.ext.consul.token.NodeTokenApplyingOptions fun nodeTokenApplyingOptionsOf( - datacenters: Iterable? = null, - name: String? = null): NodeTokenApplyingOptions = io.vertx.ext.consul.token.NodeTokenApplyingOptions(io.vertx.core.json.JsonObject()).apply { + name: String? = null, + datacenters: Iterable? = null): NodeTokenApplyingOptions = io.vertx.ext.consul.token.NodeTokenApplyingOptions(io.vertx.core.json.JsonObject()).apply { - if (datacenters != null) { - this.setDatacenters(datacenters.toList()) - } if (name != null) { this.setName(name) } + if (datacenters != null) { + this.setDatacenters(datacenters.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/ServiceTokenApplyingOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/ServiceTokenApplyingOptions.kt index 856bfa06..f9c604f5 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/ServiceTokenApplyingOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/consul/token/ServiceTokenApplyingOptions.kt @@ -18,14 +18,14 @@ package io.vertx.kotlin.ext.consul.token import io.vertx.ext.consul.token.ServiceTokenApplyingOptions fun serviceTokenApplyingOptionsOf( - datacenters: Iterable? = null, - name: String? = null): ServiceTokenApplyingOptions = io.vertx.ext.consul.token.ServiceTokenApplyingOptions(io.vertx.core.json.JsonObject()).apply { + name: String? = null, + datacenters: Iterable? = null): ServiceTokenApplyingOptions = io.vertx.ext.consul.token.ServiceTokenApplyingOptions(io.vertx.core.json.JsonObject()).apply { - if (datacenters != null) { - this.setDatacenters(datacenters.toList()) - } if (name != null) { this.setName(name) } + if (datacenters != null) { + this.setDatacenters(datacenters.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/DropwizardMetricsOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/DropwizardMetricsOptions.kt index 80728fc7..28c6d677 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/DropwizardMetricsOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/DropwizardMetricsOptions.kt @@ -23,67 +23,66 @@ import io.vertx.ext.dropwizard.Match * * Vert.x Dropwizard metrics configuration. * - * @param baseName Set a custom baseName for metrics. - * @param configPath Set the path for a config file that contains options in JSON format, to be used to create a new options object. The file will be looked for on the file system first and then on the classpath if it's not found. * @param enabled Set whether metrics will be enabled on the Vert.x instance. * @param factory Programmatically set the metrics factory to be used when metrics are enabled.

Only valid if = true.

Normally Vert.x will look on the classpath for a metrics factory implementation, but if you want to set one programmatically you can use this method. - * @param jmxDomain Set the JMX domain to use when JMX metrics are enabled. + * @param registryName Set the name used for registering the metrics in the Dropwizard shared registry. * @param jmxEnabled Set whether JMX will be enabled on the Vert.x instance. - * @param metricRegistry Set the optional metric registry used instead of the Dropwizard shared registry. + * @param jmxDomain Set the JMX domain to use when JMX metrics are enabled. * @param monitoredEventBusHandlers Add a monitored event bus handler. - * @param monitoredHttpClientEndpoints Add an monitored http client endpoint. - * @param monitoredHttpClientUris Add an monitored http client uri. - * @param monitoredHttpServerRoutes Add an monitored http server route. * @param monitoredHttpServerUris Add an monitored http server uri. - * @param registryName Set the name used for registering the metrics in the Dropwizard shared registry. + * @param monitoredHttpServerRoutes Add an monitored http server route. + * @param monitoredHttpClientUris Add an monitored http client uri. + * @param configPath Set the path for a config file that contains options in JSON format, to be used to create a new options object. The file will be looked for on the file system first and then on the classpath if it's not found. + * @param monitoredHttpClientEndpoints Add an monitored http client endpoint. + * @param baseName Set a custom baseName for metrics. + * @param metricRegistry Set the optional metric registry used instead of the Dropwizard shared registry. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.dropwizard.DropwizardMetricsOptions original] using Vert.x codegen. */ fun dropwizardMetricsOptionsOf( - baseName: String? = null, - configPath: String? = null, enabled: Boolean? = null, factory: io.vertx.core.spi.VertxMetricsFactory? = null, - jmxDomain: String? = null, + registryName: String? = null, jmxEnabled: Boolean? = null, - metricRegistry: com.codahale.metrics.MetricRegistry? = null, + jmxDomain: String? = null, monitoredEventBusHandlers: Iterable? = null, - monitoredHttpClientEndpoints: Iterable? = null, - monitoredHttpClientUris: Iterable? = null, - monitoredHttpServerRoutes: Iterable? = null, monitoredHttpServerUris: Iterable? = null, - registryName: String? = null): DropwizardMetricsOptions = io.vertx.ext.dropwizard.DropwizardMetricsOptions().apply { + monitoredHttpServerRoutes: Iterable? = null, + monitoredHttpClientUris: Iterable? = null, + configPath: String? = null, + monitoredHttpClientEndpoints: Iterable? = null, + baseName: String? = null, + metricRegistry: com.codahale.metrics.MetricRegistry? = null): DropwizardMetricsOptions = io.vertx.ext.dropwizard.DropwizardMetricsOptions().apply { - if (baseName != null) { - this.setBaseName(baseName) - } - if (configPath != null) { - this.setConfigPath(configPath) - } if (enabled != null) { this.setEnabled(enabled) } if (factory != null) { this.setFactory(factory) } - if (jmxDomain != null) { - this.setJmxDomain(jmxDomain) + if (registryName != null) { + this.setRegistryName(registryName) } if (jmxEnabled != null) { this.setJmxEnabled(jmxEnabled) } - if (metricRegistry != null) { - this.setMetricRegistry(metricRegistry) + if (jmxDomain != null) { + this.setJmxDomain(jmxDomain) } if (monitoredEventBusHandlers != null) { for (item in monitoredEventBusHandlers) { this.addMonitoredEventBusHandler(item) } } - if (monitoredHttpClientEndpoints != null) { - for (item in monitoredHttpClientEndpoints) { - this.addMonitoredHttpClientEndpoint(item) + if (monitoredHttpServerUris != null) { + for (item in monitoredHttpServerUris) { + this.addMonitoredHttpServerUri(item) + } + } + if (monitoredHttpServerRoutes != null) { + for (item in monitoredHttpServerRoutes) { + this.addMonitoredHttpServerRoute(item) } } if (monitoredHttpClientUris != null) { @@ -91,18 +90,19 @@ fun dropwizardMetricsOptionsOf( this.addMonitoredHttpClientUri(item) } } - if (monitoredHttpServerRoutes != null) { - for (item in monitoredHttpServerRoutes) { - this.addMonitoredHttpServerRoute(item) - } + if (configPath != null) { + this.setConfigPath(configPath) } - if (monitoredHttpServerUris != null) { - for (item in monitoredHttpServerUris) { - this.addMonitoredHttpServerUri(item) + if (monitoredHttpClientEndpoints != null) { + for (item in monitoredHttpClientEndpoints) { + this.addMonitoredHttpClientEndpoint(item) } } - if (registryName != null) { - this.setRegistryName(registryName) + if (baseName != null) { + this.setBaseName(baseName) + } + if (metricRegistry != null) { + this.setMetricRegistry(metricRegistry) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/Match.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/Match.kt index fa21cb2c..c42ff053 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/Match.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/dropwizard/Match.kt @@ -23,26 +23,26 @@ import io.vertx.ext.dropwizard.MatchType * * A match for a value. * - * @param alias Set the alias the human readable name that will be used as a part of registry entry name when the value matches. - * @param type Set the type of matching to apply. * @param value Set the matched value. + * @param type Set the type of matching to apply. + * @param alias Set the alias the human readable name that will be used as a part of registry entry name when the value matches. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.dropwizard.Match original] using Vert.x codegen. */ fun matchOf( - alias: String? = null, + value: String? = null, type: MatchType? = null, - value: String? = null): Match = io.vertx.ext.dropwizard.Match().apply { + alias: String? = null): Match = io.vertx.ext.dropwizard.Match().apply { - if (alias != null) { - this.setAlias(alias) + if (value != null) { + this.setValue(value) } if (type != null) { this.setType(type) } - if (value != null) { - this.setValue(value) + if (alias != null) { + this.setAlias(alias) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/CheckResult.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/CheckResult.kt index d7ee6132..6553bbad 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/CheckResult.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/CheckResult.kt @@ -22,26 +22,26 @@ import io.vertx.ext.healthchecks.Status * A function providing a DSL for building [io.vertx.ext.healthchecks.CheckResult] objects. * * - * @param checks * @param id * @param status + * @param checks * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.healthchecks.CheckResult original] using Vert.x codegen. */ fun checkResultOf( - checks: Iterable? = null, id: String? = null, - status: io.vertx.ext.healthchecks.Status? = null): CheckResult = io.vertx.ext.healthchecks.CheckResult().apply { + status: io.vertx.ext.healthchecks.Status? = null, + checks: Iterable? = null): CheckResult = io.vertx.ext.healthchecks.CheckResult().apply { - if (checks != null) { - this.setChecks(checks.toList()) - } if (id != null) { this.setId(id) } if (status != null) { this.setStatus(status) } + if (checks != null) { + this.setChecks(checks.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/Status.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/Status.kt index 77cdb8d4..c04ebc9b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/Status.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/healthchecks/Status.kt @@ -23,24 +23,24 @@ import io.vertx.ext.healthchecks.Status * Represents the outcome of a health check procedure. Each procedure produces a [io.vertx.ext.healthchecks.Status] indicating either OK * or KO. Optionally, it can also provide additional data. * - * @param data Sets the metadata. * @param ok Sets whether or not the current status is positive (UP) or negative (DOWN). + * @param data Sets the metadata. * @param procedureInError Sets whether or not the procedure attached to this status has failed (timeout, error...). * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.healthchecks.Status original] using Vert.x codegen. */ fun statusOf( - data: io.vertx.core.json.JsonObject? = null, ok: Boolean? = null, + data: io.vertx.core.json.JsonObject? = null, procedureInError: Boolean? = null): Status = io.vertx.ext.healthchecks.Status().apply { - if (data != null) { - this.setData(data) - } if (ok != null) { this.setOk(ok) } + if (data != null) { + this.setData(data) + } if (procedureInError != null) { this.setProcedureInError(procedureInError) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/DKIMSignOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/DKIMSignOptions.kt index 6c8a8f23..3d8938ee 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/DKIMSignOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/DKIMSignOptions.kt @@ -27,55 +27,40 @@ import io.vertx.ext.mail.DKIMSignAlgorithm * * See: https://tools.ietf.org/html/rfc6376 * - * @param auid Sets the Agent or User Identifier(AUID) - * @param bodyCanonAlgo Sets the canonicalization algorithm for mail body. - * @param bodyLimit Sets the body limit to sign. - * @param copiedHeaders Sets the copied headers used in DKIM. - * @param expireTime Sets the expire time in seconds when the signature sign will be expired. Success call of this method indicates that the signature sign timestamp is enabled. - * @param headerCanonAlgo Sets the canonicalization algorithm for signed headers. + * @param signAlgo Sets the signing algorithm. * @param privateKey Sets the PKCS#8 format private key used to sign the email. * @param privateKeyPath Sets the PKCS#8 format private key file path. + * @param signedHeaders Sets the email signedHeaders used to sign. * @param sdid Sets the Singing Domain Identifier(SDID). * @param selector Sets the selector used to query the public key. - * @param signAlgo Sets the signing algorithm. + * @param headerCanonAlgo Sets the canonicalization algorithm for signed headers. + * @param bodyCanonAlgo Sets the canonicalization algorithm for mail body. + * @param auid Sets the Agent or User Identifier(AUID) + * @param bodyLimit Sets the body limit to sign. * @param signatureTimestamp Sets to enable or disable signature sign timestmap. Default is disabled. - * @param signedHeaders Sets the email signedHeaders used to sign. + * @param expireTime Sets the expire time in seconds when the signature sign will be expired. Success call of this method indicates that the signature sign timestamp is enabled. + * @param copiedHeaders Sets the copied headers used in DKIM. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mail.DKIMSignOptions original] using Vert.x codegen. */ fun dkimSignOptionsOf( - auid: String? = null, - bodyCanonAlgo: CanonicalizationAlgorithm? = null, - bodyLimit: Int? = null, - copiedHeaders: Iterable? = null, - expireTime: Long? = null, - headerCanonAlgo: CanonicalizationAlgorithm? = null, + signAlgo: DKIMSignAlgorithm? = null, privateKey: String? = null, privateKeyPath: String? = null, + signedHeaders: Iterable? = null, sdid: String? = null, selector: String? = null, - signAlgo: DKIMSignAlgorithm? = null, + headerCanonAlgo: CanonicalizationAlgorithm? = null, + bodyCanonAlgo: CanonicalizationAlgorithm? = null, + auid: String? = null, + bodyLimit: Int? = null, signatureTimestamp: Boolean? = null, - signedHeaders: Iterable? = null): DKIMSignOptions = io.vertx.ext.mail.DKIMSignOptions().apply { + expireTime: Long? = null, + copiedHeaders: Iterable? = null): DKIMSignOptions = io.vertx.ext.mail.DKIMSignOptions().apply { - if (auid != null) { - this.setAuid(auid) - } - if (bodyCanonAlgo != null) { - this.setBodyCanonAlgo(bodyCanonAlgo) - } - if (bodyLimit != null) { - this.setBodyLimit(bodyLimit) - } - if (copiedHeaders != null) { - this.setCopiedHeaders(copiedHeaders.toList()) - } - if (expireTime != null) { - this.setExpireTime(expireTime) - } - if (headerCanonAlgo != null) { - this.setHeaderCanonAlgo(headerCanonAlgo) + if (signAlgo != null) { + this.setSignAlgo(signAlgo) } if (privateKey != null) { this.setPrivateKey(privateKey) @@ -83,20 +68,35 @@ fun dkimSignOptionsOf( if (privateKeyPath != null) { this.setPrivateKeyPath(privateKeyPath) } + if (signedHeaders != null) { + this.setSignedHeaders(signedHeaders.toList()) + } if (sdid != null) { this.setSdid(sdid) } if (selector != null) { this.setSelector(selector) } - if (signAlgo != null) { - this.setSignAlgo(signAlgo) + if (headerCanonAlgo != null) { + this.setHeaderCanonAlgo(headerCanonAlgo) + } + if (bodyCanonAlgo != null) { + this.setBodyCanonAlgo(bodyCanonAlgo) + } + if (auid != null) { + this.setAuid(auid) + } + if (bodyLimit != null) { + this.setBodyLimit(bodyLimit) } if (signatureTimestamp != null) { this.setSignatureTimestamp(signatureTimestamp) } - if (signedHeaders != null) { - this.setSignedHeaders(signedHeaders.toList()) + if (expireTime != null) { + this.setExpireTime(expireTime) + } + if (copiedHeaders != null) { + this.setCopiedHeaders(copiedHeaders.toList()) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailConfig.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailConfig.kt index d0245bee..7d488288 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailConfig.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailConfig.kt @@ -35,392 +35,392 @@ import java.util.concurrent.TimeUnit * represents the configuration of a mail service with mail server hostname, * port, security options, login options and login/password * + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param allowRcptErrors set if sending allows rcpt errors

if true, the mail will be sent to the recipients that the server accepted, if any

- * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param authMethods set string of allowed auth methods. if set only these methods will be used if the server supports them. If null or empty all supported methods may be used - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param disableEsmtp set if ESMTP should be tried as first command (EHLO)

rfc 1869 states that clients should always attempt EHLO as first command to determine if ESMTP is supported, if this returns an error code, HELO is tried to use old SMTP. If there is a server that does not support EHLO and does not give an error code back, the connection should be closed and retried with HELO. We do not do that and rather support turning off ESMTP with a setting. The odds of this actually happening are very small since the client will not connect to arbitrary smtp hosts on the internet. Since the client knows that is connects to a host that doesn't support ESMTP/EHLO in that way, the property has to be set to false.

- * @param dkimSignOption Sets one DKIMSignOptions for convenient. - * @param dkimSignOptions Sets DKIMSignOptions. - * @param enableDKIM Sets true to enable DKIM Signatures, sets false to disable it.

This is used most for temporary disable DKIM without removing DKIM opations from current config.

- * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param hostname Set the hostname of the smtp server. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.ext.mail.MailConfig] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.mail.MailConfig] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.mail.MailConfig] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keepAlive set if connection pool is enabled default is true

if the connection pooling is disabled, the max number of sockets is enforced nevertheless

- * @param keepAliveTimeout Set the keep alive timeout for SMTP connection, Defaults in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param keepAliveTimeoutUnit Sets TimeUnit of keeping connections in the pool alive. - * @param keyCertOptions Set the key/cert options. - * @param keyStore get the key store filename to be used when opening SMTP connections

if not set, an options object will be created based on other settings (ssl and trustAll) + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param keyStorePassword get the key store password to be used when opening SMTP connections - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param login Set the login mode for the connection.

Either DISABLED, OPTIONAL or REQUIRED - * @param maxMailsPerConnection Sets the max emails count per connection before it gets closed.

Some SMTP servers have requirement to allow only a number of emails sent per connection.

- * @param maxPoolSize set the max allowed number of open connections to the mail server if not set the default is 10 - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param multiPartOnly Sets to encode multipart only or not. When sets to true, the mail message will be encoded as multipart even for simple mails without attachments, see https://github.com/vert-x3/vertx-mail-client/issues/161. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param ntDomain Sets the domain used on NTLM authentication - * @param openSslEngineOptions - * @param ownHostname set the hostname to be used for HELO/EHLO and the Message-ID - * @param password Set the password for the login. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param pipelining Sets to enable/disable the pipelining capability if SMTP server supports it. - * @param poolCleanerPeriod Set the connection pool cleaner period, defaults in milli seconds, a non positive value disables expiration checks and connections will remain in the pool until they are closed. - * @param poolCleanerPeriodUnit Sets the TimeUnit of pool cleaning period. - * @param port Set the port of the smtp server. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.mail.MailConfig] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reconnectAttempts Set the value of reconnect attempts - * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param starttls Set the tls security mode for the connection.

Either NONE, OPTIONAL or REQUIRED - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param userAgent Sets the Mail User Agent(MUA) name.

It is used to generate the boundary in case of MultiPart email and the Message-ID. If null is set, DEFAULT_USER_AGENT is used.

+ * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param reconnectAttempts Set the value of reconnect attempts + * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param reconnectInterval Set the reconnect interval + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param keyCertOptions Set the key/cert options. + * @param hostname Set the hostname of the smtp server. + * @param port Set the port of the smtp server. + * @param starttls Set the tls security mode for the connection.

Either NONE, OPTIONAL or REQUIRED + * @param login Set the login mode for the connection.

Either DISABLED, OPTIONAL or REQUIRED * @param username Set the username for the login. + * @param password Set the password for the login. + * @param keyStore get the key store filename to be used when opening SMTP connections

if not set, an options object will be created based on other settings (ssl and trustAll) + * @param keyStorePassword get the key store password to be used when opening SMTP connections + * @param authMethods set string of allowed auth methods. if set only these methods will be used if the server supports them. If null or empty all supported methods may be used + * @param ownHostname set the hostname to be used for HELO/EHLO and the Message-ID + * @param maxPoolSize set the max allowed number of open connections to the mail server if not set the default is 10 + * @param keepAlive set if connection pool is enabled default is true

if the connection pooling is disabled, the max number of sockets is enforced nevertheless

+ * @param allowRcptErrors set if sending allows rcpt errors

if true, the mail will be sent to the recipients that the server accepted, if any

+ * @param disableEsmtp set if ESMTP should be tried as first command (EHLO)

rfc 1869 states that clients should always attempt EHLO as first command to determine if ESMTP is supported, if this returns an error code, HELO is tried to use old SMTP. If there is a server that does not support EHLO and does not give an error code back, the connection should be closed and retried with HELO. We do not do that and rather support turning off ESMTP with a setting. The odds of this actually happening are very small since the client will not connect to arbitrary smtp hosts on the internet. Since the client knows that is connects to a host that doesn't support ESMTP/EHLO in that way, the property has to be set to false.

+ * @param userAgent Sets the Mail User Agent(MUA) name.

It is used to generate the boundary in case of MultiPart email and the Message-ID. If null is set, DEFAULT_USER_AGENT is used.

+ * @param enableDKIM Sets true to enable DKIM Signatures, sets false to disable it.

This is used most for temporary disable DKIM without removing DKIM opations from current config.

+ * @param dkimSignOptions Sets DKIMSignOptions. + * @param dkimSignOption Sets one DKIMSignOptions for convenient. + * @param pipelining Sets to enable/disable the pipelining capability if SMTP server supports it. + * @param multiPartOnly Sets to encode multipart only or not. When sets to true, the mail message will be encoded as multipart even for simple mails without attachments, see https://github.com/vert-x3/vertx-mail-client/issues/161. + * @param poolCleanerPeriod Set the connection pool cleaner period, defaults in milli seconds, a non positive value disables expiration checks and connections will remain in the pool until they are closed. + * @param keepAliveTimeout Set the keep alive timeout for SMTP connection, Defaults in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param poolCleanerPeriodUnit Sets the TimeUnit of pool cleaning period. + * @param keepAliveTimeoutUnit Sets TimeUnit of keeping connections in the pool alive. + * @param ntDomain Sets the domain used on NTLM authentication * @param workstation Sets the workstation used on NTLM authentication - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.mail.MailConfig] + * @param maxMailsPerConnection Sets the max emails count per connection before it gets closed.

Some SMTP servers have requirement to allow only a number of emails sent per connection.

* *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mail.MailConfig original] using Vert.x codegen. */ fun mailConfigOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - allowRcptErrors: Boolean? = null, - applicationLayerProtocols: Iterable? = null, - authMethods: String? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - disableEsmtp: Boolean? = null, - dkimSignOption: io.vertx.ext.mail.DKIMSignOptions? = null, - dkimSignOptions: Iterable? = null, - enableDKIM: Boolean? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - hostname: String? = null, - hostnameVerificationAlgorithm: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keepAlive: Boolean? = null, - keepAliveTimeout: Int? = null, - keepAliveTimeoutUnit: TimeUnit? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStore: String? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - keyStorePassword: String? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - login: LoginOption? = null, - maxMailsPerConnection: Long? = null, - maxPoolSize: Int? = null, - metricsName: String? = null, - multiPartOnly: Boolean? = null, - nonProxyHosts: Iterable? = null, - ntDomain: String? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - ownHostname: String? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - pipelining: Boolean? = null, - poolCleanerPeriod: Int? = null, - poolCleanerPeriodUnit: TimeUnit? = null, - port: Int? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reconnectAttempts: Int? = null, - reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - starttls: StartTLSOptions? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - userAgent: String? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + reconnectAttempts: Int? = null, + hostnameVerificationAlgorithm: String? = null, + applicationLayerProtocols: Iterable? = null, + reconnectInterval: Long? = null, + registerWriteHandler: Boolean? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + hostname: String? = null, + port: Int? = null, + starttls: StartTLSOptions? = null, + login: LoginOption? = null, username: String? = null, + password: String? = null, + keyStore: String? = null, + keyStorePassword: String? = null, + authMethods: String? = null, + ownHostname: String? = null, + maxPoolSize: Int? = null, + keepAlive: Boolean? = null, + allowRcptErrors: Boolean? = null, + disableEsmtp: Boolean? = null, + userAgent: String? = null, + enableDKIM: Boolean? = null, + dkimSignOptions: Iterable? = null, + dkimSignOption: io.vertx.ext.mail.DKIMSignOptions? = null, + pipelining: Boolean? = null, + multiPartOnly: Boolean? = null, + poolCleanerPeriod: Int? = null, + keepAliveTimeout: Int? = null, + poolCleanerPeriodUnit: TimeUnit? = null, + keepAliveTimeoutUnit: TimeUnit? = null, + ntDomain: String? = null, workstation: String? = null, - writeIdleTimeout: Int? = null): MailConfig = io.vertx.ext.mail.MailConfig().apply { + maxMailsPerConnection: Long? = null): MailConfig = io.vertx.ext.mail.MailConfig().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (allowRcptErrors != null) { - this.setAllowRcptErrors(allowRcptErrors) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (authMethods != null) { - this.setAuthMethods(authMethods) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (disableEsmtp != null) { - this.setDisableEsmtp(disableEsmtp) - } - if (dkimSignOption != null) { - this.setDKIMSignOption(dkimSignOption) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (dkimSignOptions != null) { - this.setDKIMSignOptions(dkimSignOptions.toList()) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (enableDKIM != null) { - this.setEnableDKIM(enableDKIM) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (hostname != null) { - this.setHostname(hostname) + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (soLinger != null) { + this.setSoLinger(soLinger) } - if (keepAlive != null) { - this.setKeepAlive(keepAlive) + if (idleTimeout != null) { + this.setIdleTimeout(idleTimeout) } - if (keepAliveTimeout != null) { - this.setKeepAliveTimeout(keepAliveTimeout) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (keepAliveTimeoutUnit != null) { - this.setKeepAliveTimeoutUnit(keepAliveTimeoutUnit) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyStore != null) { - this.setKeyStore(keyStore) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (keyStorePassword != null) { - this.setKeyStorePassword(keyStorePassword) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (login != null) { - this.setLogin(login) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxMailsPerConnection != null) { - this.setMaxMailsPerConnection(maxMailsPerConnection) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxPoolSize != null) { - this.setMaxPoolSize(maxPoolSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (metricsName != null) { - this.setMetricsName(metricsName) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (multiPartOnly != null) { - this.setMultiPartOnly(multiPartOnly) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (ntDomain != null) { - this.setNtDomain(ntDomain) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) + } + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) + } + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (ownHostname != null) { - this.setOwnHostname(ownHostname) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (password != null) { - this.setPassword(password) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) } - if (pipelining != null) { - this.setPipelining(pipelining) + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (poolCleanerPeriod != null) { - this.setPoolCleanerPeriod(poolCleanerPeriod) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (poolCleanerPeriodUnit != null) { - this.setPoolCleanerPeriodUnit(poolCleanerPeriodUnit) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (port != null) { - this.setPort(port) + if (metricsName != null) { + this.setMetricsName(metricsName) } if (proxyOptions != null) { this.setProxyOptions(proxyOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (localAddress != null) { + this.setLocalAddress(localAddress) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) } + if (hostnameVerificationAlgorithm != null) { + this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + } + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) + } if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } if (registerWriteHandler != null) { this.setRegisterWriteHandler(registerWriteHandler) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (hostname != null) { + this.setHostname(hostname) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (port != null) { + this.setPort(port) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (starttls != null) { + this.setStarttls(starttls) } - if (ssl != null) { - this.setSsl(ssl) + if (login != null) { + this.setLogin(login) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (username != null) { + this.setUsername(username) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (password != null) { + this.setPassword(password) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (keyStore != null) { + this.setKeyStore(keyStore) } - if (starttls != null) { - this.setStarttls(starttls) + if (keyStorePassword != null) { + this.setKeyStorePassword(keyStorePassword) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (authMethods != null) { + this.setAuthMethods(authMethods) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (ownHostname != null) { + this.setOwnHostname(ownHostname) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (maxPoolSize != null) { + this.setMaxPoolSize(maxPoolSize) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (keepAlive != null) { + this.setKeepAlive(keepAlive) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (allowRcptErrors != null) { + this.setAllowRcptErrors(allowRcptErrors) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (disableEsmtp != null) { + this.setDisableEsmtp(disableEsmtp) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (userAgent != null) { + this.setUserAgent(userAgent) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (enableDKIM != null) { + this.setEnableDKIM(enableDKIM) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (dkimSignOptions != null) { + this.setDKIMSignOptions(dkimSignOptions.toList()) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (dkimSignOption != null) { + this.setDKIMSignOption(dkimSignOption) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (pipelining != null) { + this.setPipelining(pipelining) } - if (userAgent != null) { - this.setUserAgent(userAgent) + if (multiPartOnly != null) { + this.setMultiPartOnly(multiPartOnly) } - if (username != null) { - this.setUsername(username) + if (poolCleanerPeriod != null) { + this.setPoolCleanerPeriod(poolCleanerPeriod) + } + if (keepAliveTimeout != null) { + this.setKeepAliveTimeout(keepAliveTimeout) + } + if (poolCleanerPeriodUnit != null) { + this.setPoolCleanerPeriodUnit(poolCleanerPeriodUnit) + } + if (keepAliveTimeoutUnit != null) { + this.setKeepAliveTimeoutUnit(keepAliveTimeoutUnit) + } + if (ntDomain != null) { + this.setNtDomain(ntDomain) } if (workstation != null) { this.setWorkstation(workstation) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (maxMailsPerConnection != null) { + this.setMaxMailsPerConnection(maxMailsPerConnection) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailMessage.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailMessage.kt index 7e7e4aae..7998b49e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailMessage.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mail/MailMessage.kt @@ -22,73 +22,73 @@ import io.vertx.ext.mail.MailMessage * * represent a mail message that can be sent via the MailClient * - * @param attachment set the list of attachments of this mail - * @param bcc set list of bcc addresses * @param bounceAddress set bounce address of this mail - * @param cc set list of cc addresses - * @param fixedHeaders set whether our own headers should be the only headers added to the message * @param from set from address of this mail - * @param headers Add a message header. - * @param html set the html text of this mail - * @param inlineAttachment set the list of inline attachments of this mail + * @param to set list of to addresses + * @param cc set list of cc addresses + * @param bcc set list of bcc addresses * @param subject set the subject of this mail * @param text set the plain text of this mail - * @param to set list of to addresses + * @param html set the html text of this mail + * @param attachment set the list of attachments of this mail + * @param inlineAttachment set the list of inline attachments of this mail + * @param headers Add a message header. + * @param fixedHeaders set whether our own headers should be the only headers added to the message * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mail.MailMessage original] using Vert.x codegen. */ fun mailMessageOf( - attachment: Iterable? = null, - bcc: Iterable? = null, bounceAddress: String? = null, - cc: Iterable? = null, - fixedHeaders: Boolean? = null, from: String? = null, - headers: Map? = null, - html: String? = null, - inlineAttachment: Iterable? = null, + to: Iterable? = null, + cc: Iterable? = null, + bcc: Iterable? = null, subject: String? = null, text: String? = null, - to: Iterable? = null): MailMessage = io.vertx.ext.mail.MailMessage().apply { + html: String? = null, + attachment: Iterable? = null, + inlineAttachment: Iterable? = null, + headers: Map? = null, + fixedHeaders: Boolean? = null): MailMessage = io.vertx.ext.mail.MailMessage().apply { - if (attachment != null) { - this.setAttachment(attachment.toList()) - } - if (bcc != null) { - this.setBcc(bcc.toList()) - } if (bounceAddress != null) { this.setBounceAddress(bounceAddress) } + if (from != null) { + this.setFrom(from) + } + if (to != null) { + this.setTo(to.toList()) + } if (cc != null) { this.setCc(cc.toList()) } - if (fixedHeaders != null) { - this.setFixedHeaders(fixedHeaders) + if (bcc != null) { + this.setBcc(bcc.toList()) } - if (from != null) { - this.setFrom(from) + if (subject != null) { + this.setSubject(subject) } - if (headers != null) { - for (item in headers) { - this.addHeader(item.key, item.value) - } + if (text != null) { + this.setText(text) } if (html != null) { this.setHtml(html) } + if (attachment != null) { + this.setAttachment(attachment.toList()) + } if (inlineAttachment != null) { this.setInlineAttachment(inlineAttachment.toList()) } - if (subject != null) { - this.setSubject(subject) - } - if (text != null) { - this.setText(text) + if (headers != null) { + for (item in headers) { + this.addHeader(item.key, item.value) + } } - if (to != null) { - this.setTo(to.toList()) + if (fixedHeaders != null) { + this.setFixedHeaders(fixedHeaders) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/AggregateOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/AggregateOptions.kt index 724d6e71..988df931 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/AggregateOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/AggregateOptions.kt @@ -23,31 +23,31 @@ import io.vertx.ext.mongo.CollationOptions * * Options used to configure aggregate operations. * - * @param allowDiskUse Set the flag if writing to temporary files is enabled. - * @param batchSize Set the batch size for methods loading found data in batches. * @param collation Optional.

Specifies the collation to use for the operation.

Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks. * @param maxTime Set the time limit in milliseconds for processing operations on a cursor. + * @param batchSize Set the batch size for methods loading found data in batches. + * @param allowDiskUse Set the flag if writing to temporary files is enabled. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.AggregateOptions original] using Vert.x codegen. */ fun aggregateOptionsOf( - allowDiskUse: Boolean? = null, - batchSize: Int? = null, collation: io.vertx.ext.mongo.CollationOptions? = null, - maxTime: Long? = null): AggregateOptions = io.vertx.ext.mongo.AggregateOptions().apply { + maxTime: Long? = null, + batchSize: Int? = null, + allowDiskUse: Boolean? = null): AggregateOptions = io.vertx.ext.mongo.AggregateOptions().apply { - if (allowDiskUse != null) { - this.setAllowDiskUse(allowDiskUse) - } - if (batchSize != null) { - this.setBatchSize(batchSize) - } if (collation != null) { this.setCollation(collation) } if (maxTime != null) { this.setMaxTime(maxTime) } + if (batchSize != null) { + this.setBatchSize(batchSize) + } + if (allowDiskUse != null) { + this.setAllowDiskUse(allowDiskUse) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkOperation.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkOperation.kt index 2bb0b6aa..bff2f7d9 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkOperation.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkOperation.kt @@ -25,50 +25,50 @@ import io.vertx.ext.mongo.CollationOptions * Contains all data needed for one operation of a bulk write operation. * * @param collation - * @param document Sets the document, used by insert, replace, and update operations + * @param type Sets the operation type * @param filter Sets the filter document, used by replace, update, and delete operations + * @param document Sets the document, used by insert, replace, and update operations + * @param upsert Sets the upsert flag, used by update and replace operations + * @param multi Sets the multi flag, used by update and delete operations * @param hint Sets the operation hint * @param hintString Sets the operation hint string - * @param multi Sets the multi flag, used by update and delete operations - * @param type Sets the operation type - * @param upsert Sets the upsert flag, used by update and replace operations * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.BulkOperation original] using Vert.x codegen. */ fun bulkOperationOf( collation: io.vertx.ext.mongo.CollationOptions? = null, - document: io.vertx.core.json.JsonObject? = null, + type: BulkOperationType? = null, filter: io.vertx.core.json.JsonObject? = null, - hint: io.vertx.core.json.JsonObject? = null, - hintString: String? = null, + document: io.vertx.core.json.JsonObject? = null, + upsert: Boolean? = null, multi: Boolean? = null, - type: BulkOperationType? = null, - upsert: Boolean? = null): BulkOperation = io.vertx.ext.mongo.BulkOperation(io.vertx.core.json.JsonObject()).apply { + hint: io.vertx.core.json.JsonObject? = null, + hintString: String? = null): BulkOperation = io.vertx.ext.mongo.BulkOperation(io.vertx.core.json.JsonObject()).apply { if (collation != null) { this.setCollation(collation) } - if (document != null) { - this.setDocument(document) + if (type != null) { + this.setType(type) } if (filter != null) { this.setFilter(filter) } - if (hint != null) { - this.setHint(hint) + if (document != null) { + this.setDocument(document) } - if (hintString != null) { - this.setHintString(hintString) + if (upsert != null) { + this.setUpsert(upsert) } if (multi != null) { this.setMulti(multi) } - if (type != null) { - this.setType(type) + if (hint != null) { + this.setHint(hint) } - if (upsert != null) { - this.setUpsert(upsert) + if (hintString != null) { + this.setHintString(hintString) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkWriteOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkWriteOptions.kt index b69ac0a4..47bf748e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkWriteOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/BulkWriteOptions.kt @@ -23,21 +23,21 @@ import io.vertx.ext.mongo.WriteOption * * Options for configuring bulk write operations. * - * @param ordered Set the ordered option * @param writeOption Set the write option + * @param ordered Set the ordered option * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.BulkWriteOptions original] using Vert.x codegen. */ fun bulkWriteOptionsOf( - ordered: Boolean? = null, - writeOption: WriteOption? = null): BulkWriteOptions = io.vertx.ext.mongo.BulkWriteOptions().apply { + writeOption: WriteOption? = null, + ordered: Boolean? = null): BulkWriteOptions = io.vertx.ext.mongo.BulkWriteOptions().apply { - if (ordered != null) { - this.setOrdered(ordered) - } if (writeOption != null) { this.setWriteOption(writeOption) } + if (ordered != null) { + this.setOrdered(ordered) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CollationOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CollationOptions.kt index 9c128556..52add6f9 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CollationOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CollationOptions.kt @@ -23,41 +23,41 @@ import com.mongodb.client.model.CollationStrength * * Options used to configure collation options. * - * @param backwards Optional. Flag that determines whether strings with diacritics sort from back of the string, such as with some French dictionary ordering.

If true, compare from back to front. If false, compare from front to back.

The default value is false. - * @param caseLevel Optional. Flag that determines whether to include case comparison at strength level 1 or 2.

If true, include case comparison; i.e.

When used with strength:1, collation compares base characters and case. When used with strength:2, collation compares base characters, diacritics (and possible other secondary differences) and case. If false, do not include case comparison at level 1 or 2. The default is false. - * @param locale The ICU locale. See Supported Languages and Locales for a list of supported locales.

The default value is simple which specifies simple binary comparison. * @param normalization Optional. Flag that determines whether to check if text require normalization and to perform normalization. Generally, majority of text does not require this normalization processing.

If true, check if fully normalized and perform normalization to compare text. If false, does not check.

The default value is false. - * @param numericOrdering Optional. Flag that determines whether to compare numeric strings as numbers or as strings.

If true, compare as numbers; i.e. "10" is greater than "2". If false, compare as strings; i.e. "10" is less than "2".

Default is false. + * @param locale The ICU locale. See Supported Languages and Locales for a list of supported locales.

The default value is simple which specifies simple binary comparison. + * @param caseLevel Optional. Flag that determines whether to include case comparison at strength level 1 or 2.

If true, include case comparison; i.e.

When used with strength:1, collation compares base characters and case. When used with strength:2, collation compares base characters, diacritics (and possible other secondary differences) and case. If false, do not include case comparison at level 1 or 2. The default is false. * @param strength Optional. The level of comparison to perform. Corresponds to ICU Comparison Levels. Possible values are:

Value Description 1 Primary level of comparison. Collation performs comparisons of the base characters only, ignoring other differences such as diacritics and case. 2 Secondary level of comparison. Collation performs comparisons up to secondary differences, such as diacritics. That is, collation performs comparisons of base characters (primary differences) and diacritics (secondary differences). Differences between base characters takes precedence over secondary differences. 3 Tertiary level of comparison. Collation performs comparisons up to tertiary differences, such as case and letter variants. That is, collation performs comparisons of base characters (primary differences), diacritics (secondary differences), and case and variants (tertiary differences). Differences between base characters takes precedence over secondary differences, which takes precedence over tertiary differences. This is the default level.

4 Quaternary Level. Limited for specific use case to consider punctuation when levels 1-3 ignore punctuation or for processing Japanese text. 5 Identical Level. Limited for specific use case of tie breaker. + * @param numericOrdering Optional. Flag that determines whether to compare numeric strings as numbers or as strings.

If true, compare as numbers; i.e. "10" is greater than "2". If false, compare as strings; i.e. "10" is less than "2".

Default is false. + * @param backwards Optional. Flag that determines whether strings with diacritics sort from back of the string, such as with some French dictionary ordering.

If true, compare from back to front. If false, compare from front to back.

The default value is false. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.CollationOptions original] using Vert.x codegen. */ fun collationOptionsOf( - backwards: Boolean? = null, - caseLevel: Boolean? = null, - locale: String? = null, normalization: Boolean? = null, + locale: String? = null, + caseLevel: Boolean? = null, + strength: CollationStrength? = null, numericOrdering: Boolean? = null, - strength: CollationStrength? = null): CollationOptions = io.vertx.ext.mongo.CollationOptions().apply { + backwards: Boolean? = null): CollationOptions = io.vertx.ext.mongo.CollationOptions().apply { - if (backwards != null) { - this.setBackwards(backwards) - } - if (caseLevel != null) { - this.setCaseLevel(caseLevel) + if (normalization != null) { + this.setNormalization(normalization) } if (locale != null) { this.setLocale(locale) } - if (normalization != null) { - this.setNormalization(normalization) + if (caseLevel != null) { + this.setCaseLevel(caseLevel) + } + if (strength != null) { + this.setStrength(strength) } if (numericOrdering != null) { this.setNumericOrdering(numericOrdering) } - if (strength != null) { - this.setStrength(strength) + if (backwards != null) { + this.setBackwards(backwards) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CountOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CountOptions.kt index 4451581c..1fa19f04 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CountOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CountOptions.kt @@ -19,16 +19,13 @@ import io.vertx.ext.mongo.CountOptions import io.vertx.ext.mongo.CollationOptions fun countOptionsOf( - collation: io.vertx.ext.mongo.CollationOptions? = null, hint: io.vertx.core.json.JsonObject? = null, hintString: String? = null, limit: Int? = null, + skip: Int? = null, maxTime: Long? = null, - skip: Int? = null): CountOptions = io.vertx.ext.mongo.CountOptions().apply { + collation: io.vertx.ext.mongo.CollationOptions? = null): CountOptions = io.vertx.ext.mongo.CountOptions().apply { - if (collation != null) { - this.setCollation(collation) - } if (hint != null) { this.setHint(hint) } @@ -38,11 +35,14 @@ fun countOptionsOf( if (limit != null) { this.setLimit(limit) } + if (skip != null) { + this.setSkip(skip) + } if (maxTime != null) { this.setMaxTime(maxTime) } - if (skip != null) { - this.setSkip(skip) + if (collation != null) { + this.setCollation(collation) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CreateCollectionOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CreateCollectionOptions.kt index a8f3cc44..702eaee7 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CreateCollectionOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/CreateCollectionOptions.kt @@ -25,44 +25,38 @@ import io.vertx.ext.mongo.ValidationOptions * * Options for creating a collection * - * @param capped Optional. To create a capped collection, specify true. If you specify true, you must also set a maximum size in the size field. - * @param collation Specifies the default collation for the collection. Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks. - * @param expireAfterSeconds Optional. A duration indicating after how long old time-series data should be deleted. Currently, applies only to time-series collections, so if this value is set then so must the time-series options. - * @param indexOptionDefaults Optional. Allows users to specify a default configuration for indexes when creating a collection. * @param maxDocuments Optional. The maximum number of documents allowed in the capped collection. The size limit takes precedence over this limit. If a capped collection reaches the size limit before it reaches the maximum number of documents, MongoDB removes old documents. If you prefer to use the max limit, ensure that the size limit, which is required for a capped collection, is sufficient to contain the maximum number of documents. + * @param capped Optional. To create a capped collection, specify true. If you specify true, you must also set a maximum size in the size field. + * @param timeSeriesOptions * @param sizeInBytes Optional. Specify a maximum size in bytes for a capped collection. Once a capped collection reaches its maximum size, MongoDB removes the older documents to make space for the new documents. The size field is required for capped collections and ignored for other collections. * @param storageEngineOptions Optional. Available for the WiredTiger storage engine only. Allows users to specify configuration to the storage engine on a per-collection basis when creating a collection. - * @param timeSeriesOptions + * @param indexOptionDefaults Optional. Allows users to specify a default configuration for indexes when creating a collection. * @param validationOptions + * @param collation Specifies the default collation for the collection. Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks. + * @param expireAfterSeconds Optional. A duration indicating after how long old time-series data should be deleted. Currently, applies only to time-series collections, so if this value is set then so must the time-series options. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.CreateCollectionOptions original] using Vert.x codegen. */ fun createCollectionOptionsOf( - capped: Boolean? = null, - collation: io.vertx.ext.mongo.CollationOptions? = null, - expireAfterSeconds: Long? = null, - indexOptionDefaults: io.vertx.core.json.JsonObject? = null, maxDocuments: Long? = null, + capped: Boolean? = null, + timeSeriesOptions: io.vertx.ext.mongo.TimeSeriesOptions? = null, sizeInBytes: Long? = null, storageEngineOptions: io.vertx.core.json.JsonObject? = null, - timeSeriesOptions: io.vertx.ext.mongo.TimeSeriesOptions? = null, - validationOptions: io.vertx.ext.mongo.ValidationOptions? = null): CreateCollectionOptions = io.vertx.ext.mongo.CreateCollectionOptions().apply { + indexOptionDefaults: io.vertx.core.json.JsonObject? = null, + validationOptions: io.vertx.ext.mongo.ValidationOptions? = null, + collation: io.vertx.ext.mongo.CollationOptions? = null, + expireAfterSeconds: Long? = null): CreateCollectionOptions = io.vertx.ext.mongo.CreateCollectionOptions().apply { + if (maxDocuments != null) { + this.setMaxDocuments(maxDocuments) + } if (capped != null) { this.setCapped(capped) } - if (collation != null) { - this.setCollation(collation) - } - if (expireAfterSeconds != null) { - this.setExpireAfterSeconds(expireAfterSeconds) - } - if (indexOptionDefaults != null) { - this.setIndexOptionDefaults(indexOptionDefaults) - } - if (maxDocuments != null) { - this.setMaxDocuments(maxDocuments) + if (timeSeriesOptions != null) { + this.setTimeSeriesOptions(timeSeriesOptions) } if (sizeInBytes != null) { this.setSizeInBytes(sizeInBytes) @@ -70,11 +64,17 @@ fun createCollectionOptionsOf( if (storageEngineOptions != null) { this.setStorageEngineOptions(storageEngineOptions) } - if (timeSeriesOptions != null) { - this.setTimeSeriesOptions(timeSeriesOptions) + if (indexOptionDefaults != null) { + this.setIndexOptionDefaults(indexOptionDefaults) } if (validationOptions != null) { this.setValidationOptions(validationOptions) } + if (collation != null) { + this.setCollation(collation) + } + if (expireAfterSeconds != null) { + this.setExpireAfterSeconds(expireAfterSeconds) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/FindOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/FindOptions.kt index 35abe760..eba49d57 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/FindOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/FindOptions.kt @@ -23,42 +23,36 @@ import io.vertx.ext.mongo.CollationOptions * * Options used to configure find operations. * - * @param batchSize Set the batch size for methods loading found data in batches. * @param collation Set the collation * @param fields Set the fields - * @param hint Set the hint - * @param hintString Set the hint string + * @param sort Set the sort document * @param limit Set the limit * @param skip Set the skip - * @param sort Set the sort document + * @param batchSize Set the batch size for methods loading found data in batches. + * @param hint Set the hint + * @param hintString Set the hint string * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.FindOptions original] using Vert.x codegen. */ fun findOptionsOf( - batchSize: Int? = null, collation: io.vertx.ext.mongo.CollationOptions? = null, fields: io.vertx.core.json.JsonObject? = null, - hint: io.vertx.core.json.JsonObject? = null, - hintString: String? = null, + sort: io.vertx.core.json.JsonObject? = null, limit: Int? = null, skip: Int? = null, - sort: io.vertx.core.json.JsonObject? = null): FindOptions = io.vertx.ext.mongo.FindOptions().apply { + batchSize: Int? = null, + hint: io.vertx.core.json.JsonObject? = null, + hintString: String? = null): FindOptions = io.vertx.ext.mongo.FindOptions().apply { - if (batchSize != null) { - this.setBatchSize(batchSize) - } if (collation != null) { this.setCollation(collation) } if (fields != null) { this.setFields(fields) } - if (hint != null) { - this.setHint(hint) - } - if (hintString != null) { - this.setHintString(hintString) + if (sort != null) { + this.setSort(sort) } if (limit != null) { this.setLimit(limit) @@ -66,8 +60,14 @@ fun findOptionsOf( if (skip != null) { this.setSkip(skip) } - if (sort != null) { - this.setSort(sort) + if (batchSize != null) { + this.setBatchSize(batchSize) + } + if (hint != null) { + this.setHint(hint) + } + if (hintString != null) { + this.setHintString(hintString) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/GridFsUploadOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/GridFsUploadOptions.kt index 679a37d2..de1301b0 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/GridFsUploadOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/GridFsUploadOptions.kt @@ -18,14 +18,14 @@ package io.vertx.kotlin.ext.mongo import io.vertx.ext.mongo.GridFsUploadOptions fun gridFsUploadOptionsOf( - chunkSizeBytes: Int? = null, - metadata: io.vertx.core.json.JsonObject? = null): GridFsUploadOptions = io.vertx.ext.mongo.GridFsUploadOptions().apply { + metadata: io.vertx.core.json.JsonObject? = null, + chunkSizeBytes: Int? = null): GridFsUploadOptions = io.vertx.ext.mongo.GridFsUploadOptions().apply { - if (chunkSizeBytes != null) { - this.setChunkSizeBytes(chunkSizeBytes) - } if (metadata != null) { this.setMetadata(metadata) } + if (chunkSizeBytes != null) { + this.setChunkSizeBytes(chunkSizeBytes) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/TimeSeriesOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/TimeSeriesOptions.kt index 7ca912de..4f85e5d6 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/TimeSeriesOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/TimeSeriesOptions.kt @@ -25,26 +25,26 @@ import io.vertx.ext.mongo.TimeSeriesGranularity * *

Added in MongoDB 5.0 https://www.mongodb.com/docs/manual/core/timeseries-collections/ * - * @param granularity - * @param metaField * @param timeField + * @param metaField + * @param granularity * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.TimeSeriesOptions original] using Vert.x codegen. */ fun timeSeriesOptionsOf( - granularity: TimeSeriesGranularity? = null, + timeField: String? = null, metaField: String? = null, - timeField: String? = null): TimeSeriesOptions = io.vertx.ext.mongo.TimeSeriesOptions().apply { + granularity: TimeSeriesGranularity? = null): TimeSeriesOptions = io.vertx.ext.mongo.TimeSeriesOptions().apply { - if (granularity != null) { - this.setGranularity(granularity) + if (timeField != null) { + this.setTimeField(timeField) } if (metaField != null) { this.setMetaField(metaField) } - if (timeField != null) { - this.setTimeField(timeField) + if (granularity != null) { + this.setGranularity(granularity) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/UpdateOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/UpdateOptions.kt index 2a99e96c..f8649fed 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/UpdateOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/UpdateOptions.kt @@ -24,51 +24,51 @@ import io.vertx.ext.mongo.WriteOption * * Options for configuring updates. * - * @param arrayFilters Set the arrayFilters option * @param collation Collation options + * @param writeOption Set the write option + * @param upsert Set whether upsert is enabled + * @param returningNewDocument Set whether new document property is enabled. Valid only on findOneAnd* methods. + * @param multi Set whether multi is enabled + * @param arrayFilters Set the arrayFilters option * @param hint Set the hint. * @param hintString Set the hint string. - * @param multi Set whether multi is enabled - * @param returningNewDocument Set whether new document property is enabled. Valid only on findOneAnd* methods. - * @param upsert Set whether upsert is enabled - * @param writeOption Set the write option * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.mongo.UpdateOptions original] using Vert.x codegen. */ fun updateOptionsOf( - arrayFilters: io.vertx.core.json.JsonArray? = null, collation: io.vertx.ext.mongo.CollationOptions? = null, - hint: io.vertx.core.json.JsonObject? = null, - hintString: String? = null, - multi: Boolean? = null, - returningNewDocument: Boolean? = null, + writeOption: WriteOption? = null, upsert: Boolean? = null, - writeOption: WriteOption? = null): UpdateOptions = io.vertx.ext.mongo.UpdateOptions().apply { + returningNewDocument: Boolean? = null, + multi: Boolean? = null, + arrayFilters: io.vertx.core.json.JsonArray? = null, + hint: io.vertx.core.json.JsonObject? = null, + hintString: String? = null): UpdateOptions = io.vertx.ext.mongo.UpdateOptions().apply { - if (arrayFilters != null) { - this.setArrayFilters(arrayFilters) - } if (collation != null) { this.setCollation(collation) } - if (hint != null) { - this.setHint(hint) + if (writeOption != null) { + this.setWriteOption(writeOption) } - if (hintString != null) { - this.setHintString(hintString) + if (upsert != null) { + this.setUpsert(upsert) + } + if (returningNewDocument != null) { + this.setReturningNewDocument(returningNewDocument) } if (multi != null) { this.setMulti(multi) } - if (returningNewDocument != null) { - this.setReturningNewDocument(returningNewDocument) + if (arrayFilters != null) { + this.setArrayFilters(arrayFilters) } - if (upsert != null) { - this.setUpsert(upsert) + if (hint != null) { + this.setHint(hint) } - if (writeOption != null) { - this.setWriteOption(writeOption) + if (hintString != null) { + this.setHintString(hintString) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/ValidationOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/ValidationOptions.kt index 75c0934d..ff753045 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/ValidationOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/mongo/ValidationOptions.kt @@ -20,18 +20,18 @@ import com.mongodb.client.model.ValidationAction import com.mongodb.client.model.ValidationLevel fun validationOptionsOf( - validationAction: ValidationAction? = null, + validator: io.vertx.core.json.JsonObject? = null, validationLevel: ValidationLevel? = null, - validator: io.vertx.core.json.JsonObject? = null): ValidationOptions = io.vertx.ext.mongo.ValidationOptions().apply { + validationAction: ValidationAction? = null): ValidationOptions = io.vertx.ext.mongo.ValidationOptions().apply { - if (validationAction != null) { - this.setValidationAction(validationAction) + if (validator != null) { + this.setValidator(validator) } if (validationLevel != null) { this.setValidationLevel(validationLevel) } - if (validator != null) { - this.setValidator(validator) + if (validationAction != null) { + this.setValidationAction(validationAction) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServerOptions.kt index 11fc0506..ffec3b14 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServerOptions.kt @@ -22,26 +22,26 @@ import io.vertx.ext.shell.ShellServerOptions * * The configurations options for the shell server. * - * @param reaperInterval Set the repear interval, i.e the period at which session eviction is performed. - * @param sessionTimeout Set the session timeout. * @param welcomeMessage Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell. + * @param sessionTimeout Set the session timeout. + * @param reaperInterval Set the repear interval, i.e the period at which session eviction is performed. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.ShellServerOptions original] using Vert.x codegen. */ fun shellServerOptionsOf( - reaperInterval: Long? = null, + welcomeMessage: String? = null, sessionTimeout: Long? = null, - welcomeMessage: String? = null): ShellServerOptions = io.vertx.ext.shell.ShellServerOptions().apply { + reaperInterval: Long? = null): ShellServerOptions = io.vertx.ext.shell.ShellServerOptions().apply { - if (reaperInterval != null) { - this.setReaperInterval(reaperInterval) + if (welcomeMessage != null) { + this.setWelcomeMessage(welcomeMessage) } if (sessionTimeout != null) { this.setSessionTimeout(sessionTimeout) } - if (welcomeMessage != null) { - this.setWelcomeMessage(welcomeMessage) + if (reaperInterval != null) { + this.setReaperInterval(reaperInterval) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServiceOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServiceOptions.kt index 0a71ffa1..85295a58 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServiceOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/ShellServiceOptions.kt @@ -26,41 +26,41 @@ import io.vertx.ext.shell.term.TelnetTermOptions * The configurations options for the shell service, the shell connectors can be configured * with , and . * - * @param httpOptions - * @param reaperInterval Set the repear interval, i.e the period at which session eviction is performed. + * @param welcomeMessage Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell. * @param sessionTimeout Set the session timeout. - * @param sshOptions Set the SSH options, if the option is null, SSH will not be started. + * @param reaperInterval Set the repear interval, i.e the period at which session eviction is performed. * @param telnetOptions Set the Telnet options, if the option is null, Telnet will not be started. - * @param welcomeMessage Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell. + * @param sshOptions Set the SSH options, if the option is null, SSH will not be started. + * @param httpOptions * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.ShellServiceOptions original] using Vert.x codegen. */ fun shellServiceOptionsOf( - httpOptions: io.vertx.ext.shell.term.HttpTermOptions? = null, - reaperInterval: Long? = null, + welcomeMessage: String? = null, sessionTimeout: Long? = null, - sshOptions: io.vertx.ext.shell.term.SSHTermOptions? = null, + reaperInterval: Long? = null, telnetOptions: io.vertx.ext.shell.term.TelnetTermOptions? = null, - welcomeMessage: String? = null): ShellServiceOptions = io.vertx.ext.shell.ShellServiceOptions().apply { + sshOptions: io.vertx.ext.shell.term.SSHTermOptions? = null, + httpOptions: io.vertx.ext.shell.term.HttpTermOptions? = null): ShellServiceOptions = io.vertx.ext.shell.ShellServiceOptions().apply { - if (httpOptions != null) { - this.setHttpOptions(httpOptions) - } - if (reaperInterval != null) { - this.setReaperInterval(reaperInterval) + if (welcomeMessage != null) { + this.setWelcomeMessage(welcomeMessage) } if (sessionTimeout != null) { this.setSessionTimeout(sessionTimeout) } - if (sshOptions != null) { - this.setSSHOptions(sshOptions) + if (reaperInterval != null) { + this.setReaperInterval(reaperInterval) } if (telnetOptions != null) { this.setTelnetOptions(telnetOptions) } - if (welcomeMessage != null) { - this.setWelcomeMessage(welcomeMessage) + if (sshOptions != null) { + this.setSSHOptions(sshOptions) + } + if (httpOptions != null) { + this.setHttpOptions(httpOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/HttpTermOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/HttpTermOptions.kt index 4c393ca7..5cac4ec3 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/HttpTermOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/HttpTermOptions.kt @@ -36,417 +36,417 @@ import java.util.concurrent.TimeUnit * * The web term configuration options. * - * @param acceptBacklog Set the accept back log - * @param acceptUnmaskedFrames Set true when the server accepts unmasked frame. As default Server doesn't accept unmasked frame, you can bypass this behaviour (RFC 6455) setting true. It's set to false as default. + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation. - * @param authOptions Set the auth options. - * @param charset Set the charset used for encoding / decoding text data from/to SockJS - * @param clientAuth Set whether client auth is required - * @param compressionLevel This method allows to set the compression level to be used in http1.x/2 response bodies when compression support is turned on (@see setCompressionSupported) and the client advertises to support deflate/gzip compression in the Accept-Encoding header default value is : 6 (Netty legacy) The compression level determines how much the data is compressed on a scale from 1 to 9, where '9' is trying to achieve the maximum compression ratio while '1' instead is giving priority to speed instead of compression ratio using some algorithm optimizations and skipping pedantic loops that usually gives just little improvements While one can think that best value is always the maximum compression ratio, there's a trade-off to consider: the most compressed level requires the most computational work to compress/decompress data, e.g. more dictionary lookups and loops. E.g. you have it set fairly high on a high-volume website, you may experience performance degradation and latency on resource serving due to CPU overload, and, however - as the computational work is required also client side while decompressing - setting an higher compression level can result in an overall higher page load time especially nowadays when many clients are handled mobile devices with a low CPU profile. see also: http://www.gzip.org/algorithm.txt - * @param compressionSupported Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header) - * @param compressors Set the list of compressor to use instead of using the default gzip/deflate [io.vertx.core.http.HttpServerOptions] configuration.

This is only active when [io.vertx.ext.shell.term.HttpTermOptions] is true. + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled + * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. + * @param ssl Set whether SSL/TLS is enabled + * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. + * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore + * @param pfxTrustOptions Set the trust options in pfx format + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. * @param crlPaths Add a CRL path * @param crlValues Add a CRL value - * @param decoderInitialBufferSize Set the initial buffer size for the HTTP decoder - * @param decompressionSupported Set whether the server supports decompression - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param useAlpn Set the ALPN usage. + * @param sslEngineOptions Set to use SSL engine implementation to use. + * @param jdkSslEngineOptions + * @param openSslEngineOptions + * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. + * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param handle100ContinueAutomatically Set whether 100 Continue should be handled automatically + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param acceptBacklog Set the accept back log + * @param port Set the port * @param host Set the host - * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. - * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param initialSettings Set the HTTP/2 connection settings immediatly sent by the server when a client connects. - * @param intputrc The path of the inputrc config. - * @param jdkSslEngineOptions + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation + * @param useProxyProtocol Set whether the server uses the HA Proxy protocol + * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. + * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. + * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxChunkSize Set the maximum HTTP chunk size that will receive - * @param maxFormAttributeSize Set the maximum size of a form attribute. Set to -1 to allow unlimited length - * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . - * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0") + * @param compressionSupported Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header) + * @param compressionLevel This method allows to set the compression level to be used in http1.x/2 response bodies when compression support is turned on (@see setCompressionSupported) and the client advertises to support deflate/gzip compression in the Accept-Encoding header default value is : 6 (Netty legacy) The compression level determines how much the data is compressed on a scale from 1 to 9, where '9' is trying to achieve the maximum compression ratio while '1' instead is giving priority to speed instead of compression ratio using some algorithm optimizations and skipping pedantic loops that usually gives just little improvements While one can think that best value is always the maximum compression ratio, there's a trade-off to consider: the most compressed level requires the most computational work to compress/decompress data, e.g. more dictionary lookups and loops. E.g. you have it set fairly high on a high-volume website, you may experience performance degradation and latency on resource serving due to CPU overload, and, however - as the computational work is required also client side while decompressing - setting an higher compression level can result in an overall higher page load time especially nowadays when many clients are handled mobile devices with a low CPU profile. see also: http://www.gzip.org/algorithm.txt + * @param compressors Set the list of compressor to use instead of using the default gzip/deflate [io.vertx.core.http.HttpServerOptions] configuration.

This is only active when [io.vertx.ext.shell.term.HttpTermOptions] is true. + * @param acceptUnmaskedFrames Set true when the server accepts unmasked frame. As default Server doesn't accept unmasked frame, you can bypass this behaviour (RFC 6455) setting true. It's set to false as default. * @param maxWebSocketFrameSize Set the maximum WebSocket frames size * @param maxWebSocketMessageSize Set the maximum WebSocket message size - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format + * @param webSocketSubProtocols Set the WebSocket list of sub-protocol supported by the server. + * @param handle100ContinueAutomatically Set whether 100 Continue should be handled automatically + * @param maxChunkSize Set the maximum HTTP chunk size that will receive + * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "GET / HTTP/1.0") + * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . + * @param maxFormAttributeSize Set the maximum size of a form attribute. Set to -1 to allow unlimited length + * @param initialSettings Set the HTTP/2 connection settings immediatly sent by the server when a client connects. + * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiatiation. + * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. + * @param decompressionSupported Set whether the server supports decompression + * @param decoderInitialBufferSize Set the initial buffer size for the HTTP decoder * @param perFrameWebSocketCompressionSupported Enable or disable support for the WebSocket per-frame deflate compression extension. * @param perMessageWebSocketCompressionSupported Enable or disable support for WebSocket per-message deflate compression extension. - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format - * @param port Set the port - * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. - * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param registerWebSocketWriteHandlers Whether write-handlers for server websockets should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param webSocketCompressionLevel Set the WebSocket compression level. + * @param webSocketAllowServerNoContext Set whether the WebSocket server will accept the server_no_context_takeover parameter of the per-message deflate compression extension offered by the client. + * @param webSocketPreferredClientNoContext Set whether the WebSocket server will accept the client_no_context_takeover parameter of the per-message deflate compression extension offered by the client. + * @param webSocketClosingTimeout Set the amount of time a server WebSocket will wait until it closes the TCP connection after sending a close frame.

When a server closes a WebSocket, it should wait the client close frame to close the TCP connection. This timeout will close the TCP connection on the server when it expires. When the TCP connection is closed receiving the close frame, the instead of the will be called.

Set to 0L closes the TCP connection immediately after sending the close frame.

Set to a negative value to disable it. + * @param tracingPolicy Set the tracing policy for the server behavior when Vert.x has tracing enabled. * @param registerWriteHandler Has no effect on HTTP server options. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param shellHtmlResource Set shell.html resource to use. - * @param sni Set whether the server supports Server Name Indiciation - * @param soLinger Set whether SO_linger keep alive is enabled + * @param registerWebSocketWriteHandlers Whether write-handlers for server websockets should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * @param sockJSHandlerOptions The SockJS handler options. * @param sockJSPath Configure the SockJS path, the default value is /term/. - * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param termJsResource Set term.js resource to use. - * @param tracingPolicy Set the tracing policy for the server behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param useProxyProtocol Set whether the server uses the HA Proxy protocol + * @param authOptions Set the auth options. * @param vertsShellJsResource Set vertxshell.js resource to use. - * @param webSocketAllowServerNoContext Set whether the WebSocket server will accept the server_no_context_takeover parameter of the per-message deflate compression extension offered by the client. - * @param webSocketClosingTimeout Set the amount of time a server WebSocket will wait until it closes the TCP connection after sending a close frame.

When a server closes a WebSocket, it should wait the client close frame to close the TCP connection. This timeout will close the TCP connection on the server when it expires. When the TCP connection is closed receiving the close frame, the instead of the will be called.

Set to 0L closes the TCP connection immediately after sending the close frame.

Set to a negative value to disable it. - * @param webSocketCompressionLevel Set the WebSocket compression level. - * @param webSocketPreferredClientNoContext Set whether the WebSocket server will accept the client_no_context_takeover parameter of the per-message deflate compression extension offered by the client. - * @param webSocketSubProtocols Set the WebSocket list of sub-protocol supported by the server. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.http.HttpServerOptions] + * @param termJsResource Set term.js resource to use. + * @param shellHtmlResource Set shell.html resource to use. + * @param charset Set the charset used for encoding / decoding text data from/to SockJS + * @param intputrc The path of the inputrc config. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.term.HttpTermOptions original] using Vert.x codegen. */ fun httpTermOptionsOf( - acceptBacklog: Int? = null, - acceptUnmaskedFrames: Boolean? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - alpnVersions: Iterable? = null, - authOptions: io.vertx.core.json.JsonObject? = null, - charset: String? = null, - clientAuth: ClientAuth? = null, - compressionLevel: Int? = null, - compressionSupported: Boolean? = null, - compressors: Iterable? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, + idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, + idleTimeoutUnit: TimeUnit? = null, + ssl: Boolean? = null, + keyStoreOptions: io.vertx.core.net.JksOptions? = null, + pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, + pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, crlPaths: Iterable? = null, crlValues: Iterable? = null, - decoderInitialBufferSize: Int? = null, - decompressionSupported: Boolean? = null, - enabledCipherSuites: Iterable? = null, + useAlpn: Boolean? = null, + sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, + tcpFastOpen: Boolean? = null, + tcpCork: Boolean? = null, + tcpQuickAck: Boolean? = null, + tcpUserTimeout: Int? = null, enabledSecureTransportProtocols: Iterable? = null, - handle100ContinueAutomatically: Boolean? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + acceptBacklog: Int? = null, + port: Int? = null, host: String? = null, - http2ConnectionWindowSize: Int? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - initialSettings: io.vertx.core.http.Http2Settings? = null, - intputrc: String? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, + useProxyProtocol: Boolean? = null, + proxyProtocolTimeout: Long? = null, + proxyProtocolTimeoutUnit: TimeUnit? = null, + trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - maxChunkSize: Int? = null, - maxFormAttributeSize: Int? = null, - maxHeaderSize: Int? = null, - maxInitialLineLength: Int? = null, + compressionSupported: Boolean? = null, + compressionLevel: Int? = null, + compressors: Iterable? = null, + acceptUnmaskedFrames: Boolean? = null, maxWebSocketFrameSize: Int? = null, maxWebSocketMessageSize: Int? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + webSocketSubProtocols: Iterable? = null, + handle100ContinueAutomatically: Boolean? = null, + maxChunkSize: Int? = null, + maxInitialLineLength: Int? = null, + maxHeaderSize: Int? = null, + maxFormAttributeSize: Int? = null, + initialSettings: io.vertx.core.http.Http2Settings? = null, + alpnVersions: Iterable? = null, + http2ConnectionWindowSize: Int? = null, + decompressionSupported: Boolean? = null, + decoderInitialBufferSize: Int? = null, perFrameWebSocketCompressionSupported: Boolean? = null, perMessageWebSocketCompressionSupported: Boolean? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyProtocolTimeout: Long? = null, - proxyProtocolTimeoutUnit: TimeUnit? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - registerWebSocketWriteHandlers: Boolean? = null, + webSocketCompressionLevel: Int? = null, + webSocketAllowServerNoContext: Boolean? = null, + webSocketPreferredClientNoContext: Boolean? = null, + webSocketClosingTimeout: Int? = null, + tracingPolicy: TracingPolicy? = null, registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - shellHtmlResource: io.vertx.core.buffer.Buffer? = null, - sni: Boolean? = null, - soLinger: Int? = null, + registerWebSocketWriteHandlers: Boolean? = null, sockJSHandlerOptions: io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions? = null, sockJSPath: String? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - termJsResource: io.vertx.core.buffer.Buffer? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - useProxyProtocol: Boolean? = null, + authOptions: io.vertx.core.json.JsonObject? = null, vertsShellJsResource: io.vertx.core.buffer.Buffer? = null, - webSocketAllowServerNoContext: Boolean? = null, - webSocketClosingTimeout: Int? = null, - webSocketCompressionLevel: Int? = null, - webSocketPreferredClientNoContext: Boolean? = null, - webSocketSubProtocols: Iterable? = null, - writeIdleTimeout: Int? = null): HttpTermOptions = io.vertx.ext.shell.term.HttpTermOptions().apply { + termJsResource: io.vertx.core.buffer.Buffer? = null, + shellHtmlResource: io.vertx.core.buffer.Buffer? = null, + charset: String? = null, + intputrc: String? = null): HttpTermOptions = io.vertx.ext.shell.term.HttpTermOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) - } - if (acceptUnmaskedFrames != null) { - this.setAcceptUnmaskedFrames(acceptUnmaskedFrames) - } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (alpnVersions != null) { - this.setAlpnVersions(alpnVersions.toList()) - } - if (authOptions != null) { - this.setAuthOptions(authOptions) - } - if (charset != null) { - this.setCharset(charset) - } - if (clientAuth != null) { - this.setClientAuth(clientAuth) - } - if (compressionLevel != null) { - this.setCompressionLevel(compressionLevel) - } - if (compressionSupported != null) { - this.setCompressionSupported(compressionSupported) - } - if (compressors != null) { - this.setCompressors(compressors.toList()) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (decoderInitialBufferSize != null) { - this.setDecoderInitialBufferSize(decoderInitialBufferSize) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (decompressionSupported != null) { - this.setDecompressionSupported(decompressionSupported) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (handle100ContinueAutomatically != null) { - this.setHandle100ContinueAutomatically(handle100ContinueAutomatically) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (http2ConnectionWindowSize != null) { - this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (initialSettings != null) { - this.setInitialSettings(initialSettings) + if (ssl != null) { + this.setSsl(ssl) } - if (intputrc != null) { - this.setIntputrc(intputrc) + if (keyStoreOptions != null) { + this.setKeyStoreOptions(keyStoreOptions) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxChunkSize != null) { - this.setMaxChunkSize(maxChunkSize) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxFormAttributeSize != null) { - this.setMaxFormAttributeSize(maxFormAttributeSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (maxHeaderSize != null) { - this.setMaxHeaderSize(maxHeaderSize) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (maxInitialLineLength != null) { - this.setMaxInitialLineLength(maxInitialLineLength) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (maxWebSocketFrameSize != null) { - this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (maxWebSocketMessageSize != null) { - this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) + } + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) + } + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (perFrameWebSocketCompressionSupported != null) { - this.setPerFrameWebSocketCompressionSupported(perFrameWebSocketCompressionSupported) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (perMessageWebSocketCompressionSupported != null) { - this.setPerMessageWebSocketCompressionSupported(perMessageWebSocketCompressionSupported) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) + } + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + } + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) } if (port != null) { this.setPort(port) } + if (host != null) { + this.setHost(host) + } + if (clientAuth != null) { + this.setClientAuth(clientAuth) + } + if (sni != null) { + this.setSni(sni) + } + if (useProxyProtocol != null) { + this.setUseProxyProtocol(useProxyProtocol) + } if (proxyProtocolTimeout != null) { this.setProxyProtocolTimeout(proxyProtocolTimeout) } if (proxyProtocolTimeoutUnit != null) { this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (trafficShapingOptions != null) { + this.setTrafficShapingOptions(trafficShapingOptions) } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (registerWebSocketWriteHandlers != null) { - this.setRegisterWebSocketWriteHandlers(registerWebSocketWriteHandlers) + if (compressionSupported != null) { + this.setCompressionSupported(compressionSupported) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (compressionLevel != null) { + this.setCompressionLevel(compressionLevel) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (compressors != null) { + this.setCompressors(compressors.toList()) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (acceptUnmaskedFrames != null) { + this.setAcceptUnmaskedFrames(acceptUnmaskedFrames) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (maxWebSocketFrameSize != null) { + this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) } - if (shellHtmlResource != null) { - this.setShellHtmlResource(shellHtmlResource) + if (maxWebSocketMessageSize != null) { + this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) } - if (sni != null) { - this.setSni(sni) + if (webSocketSubProtocols != null) { + this.setWebSocketSubProtocols(webSocketSubProtocols.toList()) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (handle100ContinueAutomatically != null) { + this.setHandle100ContinueAutomatically(handle100ContinueAutomatically) } - if (sockJSHandlerOptions != null) { - this.setSockJSHandlerOptions(sockJSHandlerOptions) + if (maxChunkSize != null) { + this.setMaxChunkSize(maxChunkSize) } - if (sockJSPath != null) { - this.setSockJSPath(sockJSPath) + if (maxInitialLineLength != null) { + this.setMaxInitialLineLength(maxInitialLineLength) } - if (ssl != null) { - this.setSsl(ssl) + if (maxHeaderSize != null) { + this.setMaxHeaderSize(maxHeaderSize) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (maxFormAttributeSize != null) { + this.setMaxFormAttributeSize(maxFormAttributeSize) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (initialSettings != null) { + this.setInitialSettings(initialSettings) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (alpnVersions != null) { + this.setAlpnVersions(alpnVersions.toList()) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (http2ConnectionWindowSize != null) { + this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (decompressionSupported != null) { + this.setDecompressionSupported(decompressionSupported) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (decoderInitialBufferSize != null) { + this.setDecoderInitialBufferSize(decoderInitialBufferSize) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (perFrameWebSocketCompressionSupported != null) { + this.setPerFrameWebSocketCompressionSupported(perFrameWebSocketCompressionSupported) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (perMessageWebSocketCompressionSupported != null) { + this.setPerMessageWebSocketCompressionSupported(perMessageWebSocketCompressionSupported) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (webSocketCompressionLevel != null) { + this.setWebSocketCompressionLevel(webSocketCompressionLevel) } - if (termJsResource != null) { - this.setTermJsResource(termJsResource) + if (webSocketAllowServerNoContext != null) { + this.setWebSocketAllowServerNoContext(webSocketAllowServerNoContext) + } + if (webSocketPreferredClientNoContext != null) { + this.setWebSocketPreferredClientNoContext(webSocketPreferredClientNoContext) + } + if (webSocketClosingTimeout != null) { + this.setWebSocketClosingTimeout(webSocketClosingTimeout) } if (tracingPolicy != null) { this.setTracingPolicy(tracingPolicy) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trafficShapingOptions != null) { - this.setTrafficShapingOptions(trafficShapingOptions) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (registerWebSocketWriteHandlers != null) { + this.setRegisterWebSocketWriteHandlers(registerWebSocketWriteHandlers) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (sockJSHandlerOptions != null) { + this.setSockJSHandlerOptions(sockJSHandlerOptions) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (sockJSPath != null) { + this.setSockJSPath(sockJSPath) } - if (useProxyProtocol != null) { - this.setUseProxyProtocol(useProxyProtocol) + if (authOptions != null) { + this.setAuthOptions(authOptions) } if (vertsShellJsResource != null) { this.setVertsShellJsResource(vertsShellJsResource) } - if (webSocketAllowServerNoContext != null) { - this.setWebSocketAllowServerNoContext(webSocketAllowServerNoContext) - } - if (webSocketClosingTimeout != null) { - this.setWebSocketClosingTimeout(webSocketClosingTimeout) - } - if (webSocketCompressionLevel != null) { - this.setWebSocketCompressionLevel(webSocketCompressionLevel) + if (termJsResource != null) { + this.setTermJsResource(termJsResource) } - if (webSocketPreferredClientNoContext != null) { - this.setWebSocketPreferredClientNoContext(webSocketPreferredClientNoContext) + if (shellHtmlResource != null) { + this.setShellHtmlResource(shellHtmlResource) } - if (webSocketSubProtocols != null) { - this.setWebSocketSubProtocols(webSocketSubProtocols.toList()) + if (charset != null) { + this.setCharset(charset) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (intputrc != null) { + this.setIntputrc(intputrc) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/SSHTermOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/SSHTermOptions.kt index 994499c1..2aad2ce2 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/SSHTermOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/SSHTermOptions.kt @@ -25,51 +25,51 @@ import io.vertx.core.net.PfxOptions * * The SSH term configuration options. * - * @param authOptions Set the auth options. - * @param defaultCharset Set the default charset to use when the client does not specifies one. * @param host Set the host - * @param intputrc The path of the inputrc config. + * @param port Set the port * @param keyPairOptions Set the key pair options in jks format, aka Java keystore. - * @param pemKeyPairOptions Set the key pair store options in pem format. * @param pfxKeyPairOptions Set the key pair options in pfx format. - * @param port Set the port + * @param pemKeyPairOptions Set the key pair store options in pem format. + * @param authOptions Set the auth options. + * @param defaultCharset Set the default charset to use when the client does not specifies one. + * @param intputrc The path of the inputrc config. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.term.SSHTermOptions original] using Vert.x codegen. */ fun sshTermOptionsOf( - authOptions: io.vertx.core.json.JsonObject? = null, - defaultCharset: String? = null, host: String? = null, - intputrc: String? = null, + port: Int? = null, keyPairOptions: io.vertx.core.net.JksOptions? = null, - pemKeyPairOptions: io.vertx.core.net.PemKeyCertOptions? = null, pfxKeyPairOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null): SSHTermOptions = io.vertx.ext.shell.term.SSHTermOptions().apply { + pemKeyPairOptions: io.vertx.core.net.PemKeyCertOptions? = null, + authOptions: io.vertx.core.json.JsonObject? = null, + defaultCharset: String? = null, + intputrc: String? = null): SSHTermOptions = io.vertx.ext.shell.term.SSHTermOptions().apply { - if (authOptions != null) { - this.setAuthOptions(authOptions) - } - if (defaultCharset != null) { - this.setDefaultCharset(defaultCharset) - } if (host != null) { this.setHost(host) } - if (intputrc != null) { - this.setIntputrc(intputrc) + if (port != null) { + this.setPort(port) } if (keyPairOptions != null) { this.setKeyPairOptions(keyPairOptions) } + if (pfxKeyPairOptions != null) { + this.setPfxKeyPairOptions(pfxKeyPairOptions) + } if (pemKeyPairOptions != null) { this.setPemKeyPairOptions(pemKeyPairOptions) } - if (pfxKeyPairOptions != null) { - this.setPfxKeyPairOptions(pfxKeyPairOptions) + if (authOptions != null) { + this.setAuthOptions(authOptions) } - if (port != null) { - this.setPort(port) + if (defaultCharset != null) { + this.setDefaultCharset(defaultCharset) + } + if (intputrc != null) { + this.setIntputrc(intputrc) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/TelnetTermOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/TelnetTermOptions.kt index 86517957..029b868e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/TelnetTermOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/shell/term/TelnetTermOptions.kt @@ -32,227 +32,221 @@ import java.util.concurrent.TimeUnit * * Telnet terminal options configuration, extends [io.vertx.core.net.NetServerOptions]. * - * @param acceptBacklog Set the accept back log + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param charset Set the charset to use when binary mode is active, see [io.vertx.ext.shell.term.TelnetTermOptions] and [io.vertx.ext.shell.term.TelnetTermOptions]. - * @param clientAuth Set whether client auth is required - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param host Set the host + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param inBinary Set the telnet connection to negociate binary data format when receiving from the client, the default value is true. This allows to send data in 8 bit format and thus charset like UTF-8. - * @param intputrc The path of the inputrc config. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param openSslEngineOptions - * @param outBinary Set the telnet connection to negociate binary data format when sending to the client, the default value is true. This allows to send data in 8 bit format and thus charset like UTF-8. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Set the port - * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. - * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sni Set whether the server supports Server Name Indiciation - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class - * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param keyCertOptions Set the key/cert options. + * @param acceptBacklog Set the accept back log + * @param port Set the port + * @param host Set the host + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation * @param useProxyProtocol Set whether the server uses the HA Proxy protocol - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. + * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. + * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param outBinary Set the telnet connection to negociate binary data format when sending to the client, the default value is true. This allows to send data in 8 bit format and thus charset like UTF-8. + * @param inBinary Set the telnet connection to negociate binary data format when receiving from the client, the default value is true. This allows to send data in 8 bit format and thus charset like UTF-8. + * @param charset Set the charset to use when binary mode is active, see [io.vertx.ext.shell.term.TelnetTermOptions] and [io.vertx.ext.shell.term.TelnetTermOptions]. + * @param intputrc The path of the inputrc config. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.term.TelnetTermOptions original] using Vert.x codegen. */ fun telnetTermOptionsOf( - acceptBacklog: Int? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - charset: String? = null, - clientAuth: ClientAuth? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - host: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - inBinary: Boolean? = null, - intputrc: String? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - outBinary: Boolean? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyProtocolTimeout: Long? = null, - proxyProtocolTimeoutUnit: TimeUnit? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sni: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, - trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + acceptBacklog: Int? = null, + port: Int? = null, + host: String? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, useProxyProtocol: Boolean? = null, - writeIdleTimeout: Int? = null): TelnetTermOptions = io.vertx.ext.shell.term.TelnetTermOptions().apply { + proxyProtocolTimeout: Long? = null, + proxyProtocolTimeoutUnit: TimeUnit? = null, + trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, + registerWriteHandler: Boolean? = null, + outBinary: Boolean? = null, + inBinary: Boolean? = null, + charset: String? = null, + intputrc: String? = null): TelnetTermOptions = io.vertx.ext.shell.term.TelnetTermOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (charset != null) { - this.setCharset(charset) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (clientAuth != null) { - this.setClientAuth(clientAuth) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (reusePort != null) { + this.setReusePort(reusePort) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (inBinary != null) { - this.setInBinary(inBinary) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (intputrc != null) { - this.setIntputrc(intputrc) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) - } - if (outBinary != null) { - this.setOutBinary(outBinary) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (port != null) { - this.setPort(port) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (proxyProtocolTimeout != null) { - this.setProxyProtocolTimeout(proxyProtocolTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (proxyProtocolTimeoutUnit != null) { - this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (sni != null) { - this.setSni(sni) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -260,44 +254,50 @@ fun telnetTermOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (port != null) { + this.setPort(port) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (host != null) { + this.setHost(host) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (clientAuth != null) { + this.setClientAuth(clientAuth) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (sni != null) { + this.setSni(sni) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (useProxyProtocol != null) { + this.setUseProxyProtocol(useProxyProtocol) + } + if (proxyProtocolTimeout != null) { + this.setProxyProtocolTimeout(proxyProtocolTimeout) + } + if (proxyProtocolTimeoutUnit != null) { + this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) } if (trafficShapingOptions != null) { this.setTrafficShapingOptions(trafficShapingOptions) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (outBinary != null) { + this.setOutBinary(outBinary) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (inBinary != null) { + this.setInBinary(inBinary) } - if (useProxyProtocol != null) { - this.setUseProxyProtocol(useProxyProtocol) + if (charset != null) { + this.setCharset(charset) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (intputrc != null) { + this.setIntputrc(intputrc) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/Frame.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/Frame.kt index a331c5af..b2cdce81 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/Frame.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/Frame.kt @@ -27,41 +27,41 @@ import io.vertx.ext.stomp.Command *

* This class is NOT thread-safe. * - * @param body Sets the body of the frame. + * @param headers Sets the headers of the frames. * @param command Sets the frame command. + * @param body Sets the body of the frame. * @param destination - * @param headers Sets the headers of the frames. - * @param id * @param transaction + * @param id * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.stomp.Frame original] using Vert.x codegen. */ fun frameOf( - body: io.vertx.core.buffer.Buffer? = null, + headers: Map? = null, command: Command? = null, + body: io.vertx.core.buffer.Buffer? = null, destination: String? = null, - headers: Map? = null, - id: String? = null, - transaction: String? = null): Frame = io.vertx.ext.stomp.Frame().apply { + transaction: String? = null, + id: String? = null): Frame = io.vertx.ext.stomp.Frame().apply { - if (body != null) { - this.setBody(body) + if (headers != null) { + this.setHeaders(headers) } if (command != null) { this.setCommand(command) } + if (body != null) { + this.setBody(body) + } if (destination != null) { this.setDestination(destination) } - if (headers != null) { - this.setHeaders(headers) + if (transaction != null) { + this.setTransaction(transaction) } if (id != null) { this.setId(id) } - if (transaction != null) { - this.setTransaction(transaction) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompClientOptions.kt index 4b50cd19..7c7d3096 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompClientOptions.kt @@ -32,261 +32,237 @@ import java.util.concurrent.TimeUnit * Options used to configure a STOMP client. As a STOMP client wraps a Net client, you can also configure the * underlying NET client. * - * @param acceptedVersions Sets the list of STOMP protocol versions accepted by the client. The list must be ordered from the lowest version to the highest. By default the following list is used: 1.0, 1.1, 1.2 + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param autoComputeContentLength Sets whether or not the automatic computation of the content-length header is enabled. If enabled, the content-length header is set in all frame with a body that do not explicitly set the header. The option is enabled by default. - * @param bypassHostHeader Sets whether or not the host header must be dropped from the CONNECT/STOMP frame. Server may be picky about this header (such as RabbitMQ that does not support it). Options disabled by default. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param heartbeat Sets the heartbeat configuration. - * @param host Sets the STOMP server host. 0.0.0.0 by default. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param login Sets the login to use if the STOMP server is secured. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param passcode Sets the passcode to use if the STOMP server is secured. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Sets the STOMP server port. 61613 by default. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reconnectAttempts Set the value of reconnect attempts - * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class - * @param trailingLine Sets whether or not an empty line should be appended to the written STOMP frame. This option is disabled by default. This option is not compliant with the STOMP specification, and so is not documented on purpose. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param keyCertOptions Set the key/cert options. + * @param reconnectAttempts Set the value of reconnect attempts + * @param reconnectInterval Set the reconnect interval + * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param host Sets the STOMP server host. 0.0.0.0 by default. + * @param login Sets the login to use if the STOMP server is secured. + * @param passcode Sets the passcode to use if the STOMP server is secured. + * @param port Sets the STOMP server port. 61613 by default. + * @param acceptedVersions Sets the list of STOMP protocol versions accepted by the client. The list must be ordered from the lowest version to the highest. By default the following list is used: 1.0, 1.1, 1.2 + * @param autoComputeContentLength Sets whether or not the automatic computation of the content-length header is enabled. If enabled, the content-length header is set in all frame with a body that do not explicitly set the header. The option is enabled by default. * @param useStompFrame Sets whether or not the connection is made using the STOMP command instead of the CONNECT command. The STOMP command has been introduced in the 1.2 version of the protocol to ease the network analysis (as CONNECT is also used by HTTP. To be compliant with server not implementing the 1.2 specification, this option should be disabled. This option is disabled by default. + * @param bypassHostHeader Sets whether or not the host header must be dropped from the CONNECT/STOMP frame. Server may be picky about this header (such as RabbitMQ that does not support it). Options disabled by default. + * @param heartbeat Sets the heartbeat configuration. * @param virtualHost Sets the virtual host that will be used as "host" header value in the `CONNECT` frame. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param trailingLine Sets whether or not an empty line should be appended to the written STOMP frame. This option is disabled by default. This option is not compliant with the STOMP specification, and so is not documented on purpose. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.stomp.StompClientOptions original] using Vert.x codegen. */ fun stompClientOptionsOf( - acceptedVersions: Iterable? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - autoComputeContentLength: Boolean? = null, - bypassHostHeader: Boolean? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - heartbeat: io.vertx.core.json.JsonObject? = null, - host: String? = null, - hostnameVerificationAlgorithm: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - login: String? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - passcode: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reconnectAttempts: Int? = null, - reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, - trailingLine: Boolean? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + reconnectAttempts: Int? = null, + reconnectInterval: Long? = null, + hostnameVerificationAlgorithm: String? = null, + applicationLayerProtocols: Iterable? = null, + registerWriteHandler: Boolean? = null, + host: String? = null, + login: String? = null, + passcode: String? = null, + port: Int? = null, + acceptedVersions: Iterable? = null, + autoComputeContentLength: Boolean? = null, useStompFrame: Boolean? = null, + bypassHostHeader: Boolean? = null, + heartbeat: io.vertx.core.json.JsonObject? = null, virtualHost: String? = null, - writeIdleTimeout: Int? = null): StompClientOptions = io.vertx.ext.stomp.StompClientOptions().apply { + trailingLine: Boolean? = null): StompClientOptions = io.vertx.ext.stomp.StompClientOptions().apply { - if (acceptedVersions != null) { - this.setAcceptedVersions(acceptedVersions.toList()) - } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (autoComputeContentLength != null) { - this.setAutoComputeContentLength(autoComputeContentLength) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (bypassHostHeader != null) { - this.setBypassHostHeader(bypassHostHeader) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (heartbeat != null) { - this.setHeartbeat(heartbeat) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (login != null) { - this.setLogin(login) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) - } - if (passcode != null) { - this.setPasscode(passcode) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (port != null) { - this.setPort(port) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (reconnectAttempts != null) { - this.setReconnectAttempts(reconnectAttempts) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (reconnectInterval != null) { - this.setReconnectInterval(reconnectInterval) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -294,50 +270,74 @@ fun stompClientOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (metricsName != null) { + this.setMetricsName(metricsName) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (trailingLine != null) { - this.setTrailingLine(trailingLine) + if (reconnectAttempts != null) { + this.setReconnectAttempts(reconnectAttempts) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (reconnectInterval != null) { + this.setReconnectInterval(reconnectInterval) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (hostnameVerificationAlgorithm != null) { + this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) + } + if (host != null) { + this.setHost(host) + } + if (login != null) { + this.setLogin(login) + } + if (passcode != null) { + this.setPasscode(passcode) + } + if (port != null) { + this.setPort(port) + } + if (acceptedVersions != null) { + this.setAcceptedVersions(acceptedVersions.toList()) + } + if (autoComputeContentLength != null) { + this.setAutoComputeContentLength(autoComputeContentLength) } if (useStompFrame != null) { this.setUseStompFrame(useStompFrame) } + if (bypassHostHeader != null) { + this.setBypassHostHeader(bypassHostHeader) + } + if (heartbeat != null) { + this.setHeartbeat(heartbeat) + } if (virtualHost != null) { this.setVirtualHost(virtualHost) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (trailingLine != null) { + this.setTrailingLine(trailingLine) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompServerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompServerOptions.kt index 479de66e..19a404c2 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompServerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompServerOptions.kt @@ -32,313 +32,313 @@ import java.util.concurrent.TimeUnit * * STOMP Server options. You can also configure the Net Server used by the STOMP server from these options. * - * @param acceptBacklog Set the accept back log + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param clientAuth Set whether client auth is required - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param heartbeat Sets the heartbeat configuration. - * @param host Set the host + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxBodyLength Sets the max body length accepted by the server. 10 Mb by default. - * @param maxFrameInTransaction Sets the maximum number of frame that can be added in a transaction. If the number of frame added to a transaction exceeds this threshold, the client receives an ERROR frame and is disconnected. The default is 1000. - * @param maxHeaderLength Sets the max header length. - * @param maxHeaders Sets the maximum number of headers. 1000 by default. - * @param maxSubscriptionsByClient Sets the maximum of subscriptions a client is allowed to register. If a client exceeds this number, it receives an error and the connection is closed. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Sets the port on which the server is going to listen for TCP connection. + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. + * @param sslEngineOptions Set to use SSL engine implementation to use. + * @param jdkSslEngineOptions + * @param openSslEngineOptions + * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. + * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param keyCertOptions Set the key/cert options. + * @param acceptBacklog Set the accept back log + * @param host Set the host + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation + * @param useProxyProtocol Set whether the server uses the HA Proxy protocol * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] - * @param receiveBufferSize Set the TCP receive buffer size + * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param maxBodyLength Sets the max body length accepted by the server. 10 Mb by default. + * @param maxHeaderLength Sets the max header length. + * @param maxHeaders Sets the maximum number of headers. 1000 by default. + * @param supportedVersions Sets the STOMP protocol versions supported by the server. Versions must be given in the decreasing order. * @param secured Enables or disables the server security feature. It requires an [io.vertx.ext.auth.authentication.AuthenticationProvider] handler. - * @param sendBufferSize Set the TCP send buffer size * @param sendErrorOnNoSubscriptions Sets whether or not an error is sent to the client when this client sends a message to an not subscribed destinations (no subscriptions on this destination). - * @param sni Set whether the server supports Server Name Indiciation - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param supportedVersions Sets the STOMP protocol versions supported by the server. Versions must be given in the decreasing order. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. * @param timeFactor Sets the time factor. - * @param trafficClass Set the value of traffic class - * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. - * @param trailingLine Sets whether or not an empty line should be appended to the written STOMP frame. This option is disabled by default. This option is not compliant with the STOMP specification, and so is not documented on purpose. + * @param port Sets the port on which the server is going to listen for TCP connection. + * @param heartbeat Sets the heartbeat configuration. + * @param maxFrameInTransaction Sets the maximum number of frame that can be added in a transaction. If the number of frame added to a transaction exceeds this threshold, the client receives an ERROR frame and is disconnected. The default is 1000. * @param transactionChunkSize Sets the chunk size when replaying a transaction. To avoid blocking the event loop for too long, large transactions are split into chunks, replayed one by one. This settings sets the chunk size. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param useProxyProtocol Set whether the server uses the HA Proxy protocol + * @param maxSubscriptionsByClient Sets the maximum of subscriptions a client is allowed to register. If a client exceeds this number, it receives an error and the connection is closed. * @param websocketBridge Enables or disables the web socket bridge. * @param websocketPath Sets the websocket path. Only frames received on this path would be considered as STOMP frame. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param trailingLine Sets whether or not an empty line should be appended to the written STOMP frame. This option is disabled by default. This option is not compliant with the STOMP specification, and so is not documented on purpose. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.stomp.StompServerOptions original] using Vert.x codegen. */ fun stompServerOptionsOf( - acceptBacklog: Int? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - clientAuth: ClientAuth? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - heartbeat: io.vertx.core.json.JsonObject? = null, - host: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - maxBodyLength: Int? = null, - maxFrameInTransaction: Int? = null, - maxHeaderLength: Int? = null, - maxHeaders: Int? = null, - maxSubscriptionsByClient: Int? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, + sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, + tcpFastOpen: Boolean? = null, + tcpCork: Boolean? = null, + tcpQuickAck: Boolean? = null, + tcpUserTimeout: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + acceptBacklog: Int? = null, + host: String? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, + useProxyProtocol: Boolean? = null, proxyProtocolTimeout: Long? = null, proxyProtocolTimeoutUnit: TimeUnit? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, + trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, + maxBodyLength: Int? = null, + maxHeaderLength: Int? = null, + maxHeaders: Int? = null, + supportedVersions: Iterable? = null, secured: Boolean? = null, - sendBufferSize: Int? = null, sendErrorOnNoSubscriptions: Boolean? = null, - sni: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - supportedVersions: Iterable? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, timeFactor: Int? = null, - trafficClass: Int? = null, - trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, - trailingLine: Boolean? = null, + port: Int? = null, + heartbeat: io.vertx.core.json.JsonObject? = null, + maxFrameInTransaction: Int? = null, transactionChunkSize: Int? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - useProxyProtocol: Boolean? = null, + maxSubscriptionsByClient: Int? = null, websocketBridge: Boolean? = null, websocketPath: String? = null, - writeIdleTimeout: Int? = null): StompServerOptions = io.vertx.ext.stomp.StompServerOptions().apply { + trailingLine: Boolean? = null): StompServerOptions = io.vertx.ext.stomp.StompServerOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (clientAuth != null) { - this.setClientAuth(clientAuth) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (heartbeat != null) { - this.setHeartbeat(heartbeat) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (maxBodyLength != null) { - this.setMaxBodyLength(maxBodyLength) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (maxFrameInTransaction != null) { - this.setMaxFrameInTransaction(maxFrameInTransaction) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (maxHeaderLength != null) { - this.setMaxHeaderLength(maxHeaderLength) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxHeaders != null) { - this.setMaxHeaders(maxHeaders) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxSubscriptionsByClient != null) { - this.setMaxSubscriptionsByClient(maxSubscriptionsByClient) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (port != null) { - this.setPort(port) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (proxyProtocolTimeout != null) { - this.setProxyProtocolTimeout(proxyProtocolTimeout) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (proxyProtocolTimeoutUnit != null) { - this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) } - if (secured != null) { - this.setSecured(secured) + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (sendErrorOnNoSubscriptions != null) { - this.setSendErrorOnNoSubscriptions(sendErrorOnNoSubscriptions) + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) + } + if (host != null) { + this.setHost(host) + } + if (clientAuth != null) { + this.setClientAuth(clientAuth) } if (sni != null) { this.setSni(sni) } - if (soLinger != null) { - this.setSoLinger(soLinger) - } - if (ssl != null) { - this.setSsl(ssl) + if (useProxyProtocol != null) { + this.setUseProxyProtocol(useProxyProtocol) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (proxyProtocolTimeout != null) { + this.setProxyProtocolTimeout(proxyProtocolTimeout) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (proxyProtocolTimeoutUnit != null) { + this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (trafficShapingOptions != null) { + this.setTrafficShapingOptions(trafficShapingOptions) } - if (supportedVersions != null) { - this.setSupportedVersions(supportedVersions.toList()) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (maxBodyLength != null) { + this.setMaxBodyLength(maxBodyLength) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (maxHeaderLength != null) { + this.setMaxHeaderLength(maxHeaderLength) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (maxHeaders != null) { + this.setMaxHeaders(maxHeaders) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (supportedVersions != null) { + this.setSupportedVersions(supportedVersions.toList()) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (secured != null) { + this.setSecured(secured) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (sendErrorOnNoSubscriptions != null) { + this.setSendErrorOnNoSubscriptions(sendErrorOnNoSubscriptions) } if (timeFactor != null) { this.setTimeFactor(timeFactor) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (port != null) { + this.setPort(port) } - if (trafficShapingOptions != null) { - this.setTrafficShapingOptions(trafficShapingOptions) + if (heartbeat != null) { + this.setHeartbeat(heartbeat) } - if (trailingLine != null) { - this.setTrailingLine(trailingLine) + if (maxFrameInTransaction != null) { + this.setMaxFrameInTransaction(maxFrameInTransaction) } if (transactionChunkSize != null) { this.setTransactionChunkSize(transactionChunkSize) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) - } - if (useProxyProtocol != null) { - this.setUseProxyProtocol(useProxyProtocol) + if (maxSubscriptionsByClient != null) { + this.setMaxSubscriptionsByClient(maxSubscriptionsByClient) } if (websocketBridge != null) { this.setWebsocketBridge(websocketBridge) @@ -346,8 +346,8 @@ fun stompServerOptionsOf( if (websocketPath != null) { this.setWebsocketPath(websocketPath) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (trailingLine != null) { + this.setTrailingLine(trailingLine) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/unit/report/ReportOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/unit/report/ReportOptions.kt index d5acd96e..dccaba3b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/unit/report/ReportOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/unit/report/ReportOptions.kt @@ -22,21 +22,21 @@ import io.vertx.ext.unit.report.ReportOptions * * Configures a reporter consisting in a name to, an address at and an optional format. * - * @param format Set the current reporter format. * @param to Set the current reporter name. + * @param format Set the current reporter format. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.unit.report.ReportOptions original] using Vert.x codegen. */ fun reportOptionsOf( - format: String? = null, - to: String? = null): ReportOptions = io.vertx.ext.unit.report.ReportOptions().apply { + to: String? = null, + format: String? = null): ReportOptions = io.vertx.ext.unit.report.ReportOptions().apply { - if (format != null) { - this.setFormat(format) - } if (to != null) { this.setTo(to) } + if (format != null) { + this.setFormat(format) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/Http2PushMapping.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/Http2PushMapping.kt index d114e799..016a7885 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/Http2PushMapping.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/Http2PushMapping.kt @@ -18,16 +18,16 @@ package io.vertx.kotlin.ext.web import io.vertx.ext.web.Http2PushMapping fun http2PushMappingOf( - extensionTarget: String? = null, filePath: String? = null, + extensionTarget: String? = null, noPush: Boolean? = null): Http2PushMapping = io.vertx.ext.web.Http2PushMapping().apply { - if (extensionTarget != null) { - this.setExtensionTarget(extensionTarget) - } if (filePath != null) { this.setFilePath(filePath) } + if (extensionTarget != null) { + this.setExtensionTarget(extensionTarget) + } if (noPush != null) { this.setNoPush(noPush) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/CachingWebClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/CachingWebClientOptions.kt index db5472b5..5e97c306 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/CachingWebClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/CachingWebClientOptions.kt @@ -35,467 +35,392 @@ import java.util.concurrent.TimeUnit * A function providing a DSL for building [io.vertx.ext.web.client.CachingWebClientOptions] objects. * * + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.ext.web.client.CachingWebClientOptions]:

- * @param cachedMethods Configure the HTTP methods that can be cached. - * @param cachedStatusCodes Configure the status codes that can be cached. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. - * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. - * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. - * @param enableVaryCaching Configure the client cache behavior for Vary responses. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param followRedirects Configure the default behavior of the client to follow HTTP 30x redirections. - * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. - * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). - * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. - * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. - * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param http2MaxPoolSize Set the maximum pool size for HTTP/2 connections - * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.CachingWebClientOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.CachingWebClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.CachingWebClientOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. - * @param jdkSslEngineOptions - * @param keepAlive Set whether keep alive is enabled on the client - * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxChunkSize Set the maximum HTTP chunk size - * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . - * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") - * @param maxPoolSize Set the maximum pool size for connections - * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. - * @param 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. - * @param maxWebSocketFrameSize Set the max WebSocket frame size - * @param maxWebSocketMessageSize Set the max WebSocket message size - * @param maxWebSockets Set the max number of WebSockets per endpoint. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param name Set the client name, used when the client is shared, otherwise ignored. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param pipelining Set whether pipe-lining is enabled on the client - * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. - * @param poolCleanerPeriod 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. - * @param poolEventLoopSize Set the number of event-loop the pool use.

The default size is 0. - * @param protocolVersion Set the protocol version. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.CachingWebClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sendUnmaskedFrames Set true when the client wants to skip frame masking.

You may want to set it true on server by server WebSocket communication: in this case you are by passing RFC6455 protocol.

It's false as default. - * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param templateExpandOptions - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. + * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. + * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param keepAlive Set whether keep alive is enabled on the client + * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param pipelining Set whether pipe-lining is enabled on the client + * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. + * @param verifyHost Set whether hostname verification is enabled * @param tryUseCompression Set whether compression is enabled - * @param tryUsePerFrameWebSocketCompression Set whether the client will offer the WebSocket per-frame deflate compression extension. - * @param tryUsePerMessageWebSocketCompression Set whether the client will offer the WebSocket per-message deflate compression extension. - * @param useAlpn Set the ALPN usage. - * @param userAgent Sets the Web Client user agent header. Defaults to Vert.x-WebClient/<version>. + * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. + * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. + * @param protocolVersion Set the protocol version. + * @param maxChunkSize Set the maximum HTTP chunk size + * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") + * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . + * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. + * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.ext.web.client.CachingWebClientOptions]:

+ * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). + * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. + * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. + * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. + * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. + * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. + * @param name Set the client name, used when the client is shared, otherwise ignored. * @param userAgentEnabled Sets whether the Web Client should send a user agent header. Defaults to true. - * @param verifyHost Set whether hostname verification is enabled - * @param webSocketClosingTimeout Set the amount of time a client WebSocket will wait until it closes the TCP connection after receiving a close frame.

When a WebSocket is closed, the server should close the TCP connection. This timeout will close the TCP connection on the client when it expires.

Set to 0L closes the TCP connection immediately after receiving the close frame.

Set to a negative value to disable it. - * @param webSocketCompressionAllowClientNoContext Set whether the client_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param webSocketCompressionLevel Set the WebSocket deflate compression level. - * @param webSocketCompressionRequestServerNoContext Set whether the server_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.CachingWebClientOptions] + * @param userAgent Sets the Web Client user agent header. Defaults to Vert.x-WebClient/<version>. + * @param followRedirects Configure the default behavior of the client to follow HTTP 30x redirections. + * @param templateExpandOptions + * @param enableVaryCaching Configure the client cache behavior for Vary responses. + * @param cachedStatusCodes Configure the status codes that can be cached. + * @param cachedMethods Configure the HTTP methods that can be cached. + * @param keyCertOptions Set the key/cert options. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.web.client.CachingWebClientOptions original] using Vert.x codegen. */ fun cachingWebClientOptionsOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - alpnVersions: Iterable? = null, - cachedMethods: Iterable? = null, - cachedStatusCodes: Iterable? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - decoderInitialBufferSize: Int? = null, - defaultHost: String? = null, - defaultPort: Int? = null, - enableVaryCaching: Boolean? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - followRedirects: Boolean? = null, - forceSni: Boolean? = null, - http2ClearTextUpgrade: Boolean? = null, - http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, - http2ConnectionWindowSize: Int? = null, - http2KeepAliveTimeout: Int? = null, - http2MaxPoolSize: Int? = null, - http2MultiplexingLimit: Int? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - initialSettings: io.vertx.core.http.Http2Settings? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keepAlive: Boolean? = null, - keepAliveTimeout: Int? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - maxChunkSize: Int? = null, - maxHeaderSize: Int? = null, - maxInitialLineLength: Int? = null, - maxPoolSize: Int? = null, - maxRedirects: Int? = null, - maxWaitQueueSize: Int? = null, - maxWebSocketFrameSize: Int? = null, - maxWebSocketMessageSize: Int? = null, - maxWebSockets: Int? = null, - metricsName: String? = null, - name: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - pipelining: Boolean? = null, - pipeliningLimit: Int? = null, - poolCleanerPeriod: Int? = null, - poolEventLoopSize: Int? = null, - protocolVersion: HttpVersion? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sendUnmaskedFrames: Boolean? = null, - shared: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - templateExpandOptions: io.vertx.uritemplate.ExpandOptions? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + http2MultiplexingLimit: Int? = null, + http2ConnectionWindowSize: Int? = null, + http2KeepAliveTimeout: Int? = null, + keepAlive: Boolean? = null, + keepAliveTimeout: Int? = null, + pipelining: Boolean? = null, + pipeliningLimit: Int? = null, + verifyHost: Boolean? = null, tryUseCompression: Boolean? = null, - tryUsePerFrameWebSocketCompression: Boolean? = null, - tryUsePerMessageWebSocketCompression: Boolean? = null, - useAlpn: Boolean? = null, - userAgent: String? = null, + defaultHost: String? = null, + defaultPort: Int? = null, + protocolVersion: HttpVersion? = null, + maxChunkSize: Int? = null, + maxInitialLineLength: Int? = null, + maxHeaderSize: Int? = null, + initialSettings: io.vertx.core.http.Http2Settings? = null, + alpnVersions: Iterable? = null, + http2ClearTextUpgrade: Boolean? = null, + http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, + maxRedirects: Int? = null, + forceSni: Boolean? = null, + decoderInitialBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, + shared: Boolean? = null, + name: String? = null, userAgentEnabled: Boolean? = null, - verifyHost: Boolean? = null, - webSocketClosingTimeout: Int? = null, - webSocketCompressionAllowClientNoContext: Boolean? = null, - webSocketCompressionLevel: Int? = null, - webSocketCompressionRequestServerNoContext: Boolean? = null, - writeIdleTimeout: Int? = null): CachingWebClientOptions = io.vertx.ext.web.client.CachingWebClientOptions().apply { + userAgent: String? = null, + followRedirects: Boolean? = null, + templateExpandOptions: io.vertx.uritemplate.ExpandOptions? = null, + enableVaryCaching: Boolean? = null, + cachedStatusCodes: Iterable? = null, + cachedMethods: Iterable? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): CachingWebClientOptions = io.vertx.ext.web.client.CachingWebClientOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (alpnVersions != null) { - this.setAlpnVersions(alpnVersions.toList()) - } - if (cachedMethods != null) { - this.setCachedMethods(cachedMethods.toSet()) - } - if (cachedStatusCodes != null) { - this.setCachedStatusCodes(cachedStatusCodes.toSet()) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (decoderInitialBufferSize != null) { - this.setDecoderInitialBufferSize(decoderInitialBufferSize) - } - if (defaultHost != null) { - this.setDefaultHost(defaultHost) - } - if (defaultPort != null) { - this.setDefaultPort(defaultPort) - } - if (enableVaryCaching != null) { - this.setEnableVaryCaching(enableVaryCaching) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (followRedirects != null) { - this.setFollowRedirects(followRedirects) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (forceSni != null) { - this.setForceSni(forceSni) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (http2ClearTextUpgrade != null) { - this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (http2ClearTextUpgradeWithPreflightRequest != null) { - this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (http2ConnectionWindowSize != null) { - this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (http2KeepAliveTimeout != null) { - this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (http2MaxPoolSize != null) { - this.setHttp2MaxPoolSize(http2MaxPoolSize) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (http2MultiplexingLimit != null) { - this.setHttp2MultiplexingLimit(http2MultiplexingLimit) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (initialSettings != null) { - this.setInitialSettings(initialSettings) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (keepAlive != null) { - this.setKeepAlive(keepAlive) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (keepAliveTimeout != null) { - this.setKeepAliveTimeout(keepAliveTimeout) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxChunkSize != null) { - this.setMaxChunkSize(maxChunkSize) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (maxHeaderSize != null) { - this.setMaxHeaderSize(maxHeaderSize) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (maxInitialLineLength != null) { - this.setMaxInitialLineLength(maxInitialLineLength) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (maxPoolSize != null) { - this.setMaxPoolSize(maxPoolSize) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxRedirects != null) { - this.setMaxRedirects(maxRedirects) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxWaitQueueSize != null) { - this.setMaxWaitQueueSize(maxWaitQueueSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (maxWebSocketFrameSize != null) { - this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (maxWebSocketMessageSize != null) { - this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (maxWebSockets != null) { - this.setMaxWebSockets(maxWebSockets) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (metricsName != null) { - this.setMetricsName(metricsName) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (name != null) { - this.setName(name) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pipelining != null) { - this.setPipelining(pipelining) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pipeliningLimit != null) { - this.setPipeliningLimit(pipeliningLimit) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) } - if (poolCleanerPeriod != null) { - this.setPoolCleanerPeriod(poolCleanerPeriod) + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (poolEventLoopSize != null) { - this.setPoolEventLoopSize(poolEventLoopSize) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (protocolVersion != null) { - this.setProtocolVersion(protocolVersion) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) + } + if (metricsName != null) { + this.setMetricsName(metricsName) } if (proxyOptions != null) { this.setProxyOptions(proxyOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (http2MultiplexingLimit != null) { + this.setHttp2MultiplexingLimit(http2MultiplexingLimit) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (http2ConnectionWindowSize != null) { + this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (http2KeepAliveTimeout != null) { + this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) } - if (sendUnmaskedFrames != null) { - this.setSendUnmaskedFrames(sendUnmaskedFrames) + if (keepAlive != null) { + this.setKeepAlive(keepAlive) } - if (shared != null) { - this.setShared(shared) + if (keepAliveTimeout != null) { + this.setKeepAliveTimeout(keepAliveTimeout) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (pipelining != null) { + this.setPipelining(pipelining) } - if (ssl != null) { - this.setSsl(ssl) + if (pipeliningLimit != null) { + this.setPipeliningLimit(pipeliningLimit) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (verifyHost != null) { + this.setVerifyHost(verifyHost) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (tryUseCompression != null) { + this.setTryUseCompression(tryUseCompression) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (defaultHost != null) { + this.setDefaultHost(defaultHost) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (defaultPort != null) { + this.setDefaultPort(defaultPort) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (protocolVersion != null) { + this.setProtocolVersion(protocolVersion) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (maxChunkSize != null) { + this.setMaxChunkSize(maxChunkSize) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (maxInitialLineLength != null) { + this.setMaxInitialLineLength(maxInitialLineLength) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (maxHeaderSize != null) { + this.setMaxHeaderSize(maxHeaderSize) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (initialSettings != null) { + this.setInitialSettings(initialSettings) } - if (templateExpandOptions != null) { - this.setTemplateExpandOptions(templateExpandOptions) + if (alpnVersions != null) { + this.setAlpnVersions(alpnVersions.toList()) } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) + if (http2ClearTextUpgrade != null) { + this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (http2ClearTextUpgradeWithPreflightRequest != null) { + this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (maxRedirects != null) { + this.setMaxRedirects(maxRedirects) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (forceSni != null) { + this.setForceSni(forceSni) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (decoderInitialBufferSize != null) { + this.setDecoderInitialBufferSize(decoderInitialBufferSize) } - if (tryUseCompression != null) { - this.setTryUseCompression(tryUseCompression) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } - if (tryUsePerFrameWebSocketCompression != null) { - this.setTryUsePerFrameWebSocketCompression(tryUsePerFrameWebSocketCompression) + if (shared != null) { + this.setShared(shared) } - if (tryUsePerMessageWebSocketCompression != null) { - this.setTryUsePerMessageWebSocketCompression(tryUsePerMessageWebSocketCompression) + if (name != null) { + this.setName(name) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (userAgentEnabled != null) { + this.setUserAgentEnabled(userAgentEnabled) } if (userAgent != null) { this.setUserAgent(userAgent) } - if (userAgentEnabled != null) { - this.setUserAgentEnabled(userAgentEnabled) - } - if (verifyHost != null) { - this.setVerifyHost(verifyHost) + if (followRedirects != null) { + this.setFollowRedirects(followRedirects) } - if (webSocketClosingTimeout != null) { - this.setWebSocketClosingTimeout(webSocketClosingTimeout) + if (templateExpandOptions != null) { + this.setTemplateExpandOptions(templateExpandOptions) } - if (webSocketCompressionAllowClientNoContext != null) { - this.setWebSocketCompressionAllowClientNoContext(webSocketCompressionAllowClientNoContext) + if (enableVaryCaching != null) { + this.setEnableVaryCaching(enableVaryCaching) } - if (webSocketCompressionLevel != null) { - this.setWebSocketCompressionLevel(webSocketCompressionLevel) + if (cachedStatusCodes != null) { + this.setCachedStatusCodes(cachedStatusCodes.toSet()) } - if (webSocketCompressionRequestServerNoContext != null) { - this.setWebSocketCompressionRequestServerNoContext(webSocketCompressionRequestServerNoContext) + if (cachedMethods != null) { + this.setCachedMethods(cachedMethods.toSet()) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/OAuth2WebClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/OAuth2WebClientOptions.kt index a2fb5ecd..224f1ac8 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/OAuth2WebClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/OAuth2WebClientOptions.kt @@ -21,21 +21,21 @@ import io.vertx.ext.web.client.OAuth2WebClientOptions * A function providing a DSL for building [io.vertx.ext.web.client.OAuth2WebClientOptions] objects. * * - * @param leeway Set a default leeway in seconds to be considered while validating tokens for expiration. * @param renewTokenOnForbidden Set a default behavior on how to handle the first forbidden response. true to attempt a token refresh and replay the request. false to continue the request to the user handler/promise. + * @param leeway Set a default leeway in seconds to be considered while validating tokens for expiration. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.web.client.OAuth2WebClientOptions original] using Vert.x codegen. */ fun oAuth2WebClientOptionsOf( - leeway: Int? = null, - renewTokenOnForbidden: Boolean? = null): OAuth2WebClientOptions = io.vertx.ext.web.client.OAuth2WebClientOptions().apply { + renewTokenOnForbidden: Boolean? = null, + leeway: Int? = null): OAuth2WebClientOptions = io.vertx.ext.web.client.OAuth2WebClientOptions().apply { - if (leeway != null) { - this.setLeeway(leeway) - } if (renewTokenOnForbidden != null) { this.setRenewTokenOnForbidden(renewTokenOnForbidden) } + if (leeway != null) { + this.setLeeway(leeway) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/WebClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/WebClientOptions.kt index dadaedde..8c36db12 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/WebClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/client/WebClientOptions.kt @@ -34,452 +34,377 @@ import java.util.concurrent.TimeUnit * A function providing a DSL for building [io.vertx.ext.web.client.WebClientOptions] objects. * * + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.ext.web.client.WebClientOptions]:

- * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. - * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. - * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param followRedirects Configure the default behavior of the client to follow HTTP 30x redirections. - * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. - * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). - * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. - * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. - * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param http2MaxPoolSize Set the maximum pool size for HTTP/2 connections - * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.WebClientOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.WebClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.WebClientOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. - * @param jdkSslEngineOptions - * @param keepAlive Set whether keep alive is enabled on the client - * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxChunkSize Set the maximum HTTP chunk size - * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . - * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") - * @param maxPoolSize Set the maximum pool size for connections - * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. - * @param 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. - * @param maxWebSocketFrameSize Set the max WebSocket frame size - * @param maxWebSocketMessageSize Set the max WebSocket message size - * @param maxWebSockets Set the max number of WebSockets per endpoint. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param name Set the client name, used when the client is shared, otherwise ignored. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param pipelining Set whether pipe-lining is enabled on the client - * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. - * @param poolCleanerPeriod 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. - * @param poolEventLoopSize Set the number of event-loop the pool use.

The default size is 0. - * @param protocolVersion Set the protocol version. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.WebClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sendUnmaskedFrames Set true when the client wants to skip frame masking.

You may want to set it true on server by server WebSocket communication: in this case you are by passing RFC6455 protocol.

It's false as default. - * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param templateExpandOptions - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param http2MultiplexingLimit Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings.

Setting the value to -1 means to use the value sent by the server's initial settings. -1 is the default value. + * @param http2ConnectionWindowSize Set the default HTTP/2 connection window size. It overrides the initial window size set by , so the connection window size is greater than for its streams, in order the data throughput.

A value of -1 reuses the initial window size setting. + * @param http2KeepAliveTimeout Set the keep alive timeout for HTTP/2 connections, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param keepAlive Set whether keep alive is enabled on the client + * @param keepAliveTimeout Set the keep alive timeout for HTTP/1.x, in seconds.

This value determines how long a connection remains unused in the pool before being evicted and closed.

A timeout of 0 means there is no timeout. + * @param pipelining Set whether pipe-lining is enabled on the client + * @param pipeliningLimit Set the limit of pending requests a pipe-lined HTTP/1 connection can send. + * @param verifyHost Set whether hostname verification is enabled * @param tryUseCompression Set whether compression is enabled - * @param tryUsePerFrameWebSocketCompression Set whether the client will offer the WebSocket per-frame deflate compression extension. - * @param tryUsePerMessageWebSocketCompression Set whether the client will offer the WebSocket per-message deflate compression extension. - * @param useAlpn Set the ALPN usage. - * @param userAgent Sets the Web Client user agent header. Defaults to Vert.x-WebClient/<version>. + * @param defaultHost Set the default host name to be used by this client in requests if none is provided when making the request. + * @param defaultPort Set the default port to be used by this client in requests if none is provided when making the request. + * @param protocolVersion Set the protocol version. + * @param maxChunkSize Set the maximum HTTP chunk size + * @param maxInitialLineLength Set the maximum length of the initial line for HTTP/1.x (e.g. "HTTP/1.1 200 OK") + * @param maxHeaderSize Set the maximum length of all headers for HTTP/1.x . + * @param initialSettings Set the HTTP/2 connection settings immediately sent by to the server when the client connects. + * @param alpnVersions Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client provides a best effort list according to [io.vertx.ext.web.client.WebClientOptions]:

+ * @param http2ClearTextUpgrade Set to true when an h2c connection is established using an HTTP/1.1 upgrade request, and false when an h2c connection is established directly (with prior knowledge). + * @param http2ClearTextUpgradeWithPreflightRequest Set to true when an h2c connection established using an HTTP/1.1 upgrade request should perform a preflight OPTIONS request to the origin server to establish the h2c connection. + * @param maxRedirects Set to maxRedirects the maximum number of redirection a request can follow. + * @param forceSni By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property to true forces the server name to be always sent. + * @param decoderInitialBufferSize set to initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. + * @param shared Set to true to share the client.

There can be multiple shared clients distinguished by [io.vertx.core.http.HttpClientOptions], when no specific name is set, the [io.vertx.core.http.HttpClientOptions] is used. + * @param name Set the client name, used when the client is shared, otherwise ignored. * @param userAgentEnabled Sets whether the Web Client should send a user agent header. Defaults to true. - * @param verifyHost Set whether hostname verification is enabled - * @param webSocketClosingTimeout Set the amount of time a client WebSocket will wait until it closes the TCP connection after receiving a close frame.

When a WebSocket is closed, the server should close the TCP connection. This timeout will close the TCP connection on the client when it expires.

Set to 0L closes the TCP connection immediately after receiving the close frame.

Set to a negative value to disable it. - * @param webSocketCompressionAllowClientNoContext Set whether the client_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param webSocketCompressionLevel Set the WebSocket deflate compression level. - * @param webSocketCompressionRequestServerNoContext Set whether the server_no_context_takeover parameter of the WebSocket per-message deflate compression extension will be offered. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.ext.web.client.WebClientOptions] + * @param userAgent Sets the Web Client user agent header. Defaults to Vert.x-WebClient/<version>. + * @param followRedirects Configure the default behavior of the client to follow HTTP 30x redirections. + * @param templateExpandOptions + * @param keyCertOptions Set the key/cert options. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.web.client.WebClientOptions original] using Vert.x codegen. */ fun webClientOptionsOf( + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - alpnVersions: Iterable? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - decoderInitialBufferSize: Int? = null, - defaultHost: String? = null, - defaultPort: Int? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - followRedirects: Boolean? = null, - forceSni: Boolean? = null, - http2ClearTextUpgrade: Boolean? = null, - http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, - http2ConnectionWindowSize: Int? = null, - http2KeepAliveTimeout: Int? = null, - http2MaxPoolSize: Int? = null, - http2MultiplexingLimit: Int? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - initialSettings: io.vertx.core.http.Http2Settings? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keepAlive: Boolean? = null, - keepAliveTimeout: Int? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - maxChunkSize: Int? = null, - maxHeaderSize: Int? = null, - maxInitialLineLength: Int? = null, - maxPoolSize: Int? = null, - maxRedirects: Int? = null, - maxWaitQueueSize: Int? = null, - maxWebSocketFrameSize: Int? = null, - maxWebSocketMessageSize: Int? = null, - maxWebSockets: Int? = null, - metricsName: String? = null, - name: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - pipelining: Boolean? = null, - pipeliningLimit: Int? = null, - poolCleanerPeriod: Int? = null, - poolEventLoopSize: Int? = null, - protocolVersion: HttpVersion? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sendUnmaskedFrames: Boolean? = null, - shared: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - templateExpandOptions: io.vertx.uritemplate.ExpandOptions? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + http2MultiplexingLimit: Int? = null, + http2ConnectionWindowSize: Int? = null, + http2KeepAliveTimeout: Int? = null, + keepAlive: Boolean? = null, + keepAliveTimeout: Int? = null, + pipelining: Boolean? = null, + pipeliningLimit: Int? = null, + verifyHost: Boolean? = null, tryUseCompression: Boolean? = null, - tryUsePerFrameWebSocketCompression: Boolean? = null, - tryUsePerMessageWebSocketCompression: Boolean? = null, - useAlpn: Boolean? = null, - userAgent: String? = null, + defaultHost: String? = null, + defaultPort: Int? = null, + protocolVersion: HttpVersion? = null, + maxChunkSize: Int? = null, + maxInitialLineLength: Int? = null, + maxHeaderSize: Int? = null, + initialSettings: io.vertx.core.http.Http2Settings? = null, + alpnVersions: Iterable? = null, + http2ClearTextUpgrade: Boolean? = null, + http2ClearTextUpgradeWithPreflightRequest: Boolean? = null, + maxRedirects: Int? = null, + forceSni: Boolean? = null, + decoderInitialBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, + shared: Boolean? = null, + name: String? = null, userAgentEnabled: Boolean? = null, - verifyHost: Boolean? = null, - webSocketClosingTimeout: Int? = null, - webSocketCompressionAllowClientNoContext: Boolean? = null, - webSocketCompressionLevel: Int? = null, - webSocketCompressionRequestServerNoContext: Boolean? = null, - writeIdleTimeout: Int? = null): WebClientOptions = io.vertx.ext.web.client.WebClientOptions().apply { + userAgent: String? = null, + followRedirects: Boolean? = null, + templateExpandOptions: io.vertx.uritemplate.ExpandOptions? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): WebClientOptions = io.vertx.ext.web.client.WebClientOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (alpnVersions != null) { - this.setAlpnVersions(alpnVersions.toList()) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (decoderInitialBufferSize != null) { - this.setDecoderInitialBufferSize(decoderInitialBufferSize) - } - if (defaultHost != null) { - this.setDefaultHost(defaultHost) - } - if (defaultPort != null) { - this.setDefaultPort(defaultPort) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (followRedirects != null) { - this.setFollowRedirects(followRedirects) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (forceSni != null) { - this.setForceSni(forceSni) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (http2ClearTextUpgrade != null) { - this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (http2ClearTextUpgradeWithPreflightRequest != null) { - this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (http2ConnectionWindowSize != null) { - this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) + if (reusePort != null) { + this.setReusePort(reusePort) } - if (http2KeepAliveTimeout != null) { - this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (http2MaxPoolSize != null) { - this.setHttp2MaxPoolSize(http2MaxPoolSize) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (http2MultiplexingLimit != null) { - this.setHttp2MultiplexingLimit(http2MultiplexingLimit) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (initialSettings != null) { - this.setInitialSettings(initialSettings) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (keepAlive != null) { - this.setKeepAlive(keepAlive) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (keepAliveTimeout != null) { - this.setKeepAliveTimeout(keepAliveTimeout) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxChunkSize != null) { - this.setMaxChunkSize(maxChunkSize) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } - if (maxHeaderSize != null) { - this.setMaxHeaderSize(maxHeaderSize) + if (pemKeyCertOptions != null) { + this.setPemKeyCertOptions(pemKeyCertOptions) } - if (maxInitialLineLength != null) { - this.setMaxInitialLineLength(maxInitialLineLength) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (maxPoolSize != null) { - this.setMaxPoolSize(maxPoolSize) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } - if (maxRedirects != null) { - this.setMaxRedirects(maxRedirects) + if (pfxTrustOptions != null) { + this.setPfxTrustOptions(pfxTrustOptions) } - if (maxWaitQueueSize != null) { - this.setMaxWaitQueueSize(maxWaitQueueSize) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (maxWebSocketFrameSize != null) { - this.setMaxWebSocketFrameSize(maxWebSocketFrameSize) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (maxWebSocketMessageSize != null) { - this.setMaxWebSocketMessageSize(maxWebSocketMessageSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (maxWebSockets != null) { - this.setMaxWebSockets(maxWebSockets) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (metricsName != null) { - this.setMetricsName(metricsName) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (name != null) { - this.setName(name) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (pipelining != null) { - this.setPipelining(pipelining) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } - if (pipeliningLimit != null) { - this.setPipeliningLimit(pipeliningLimit) + if (sslHandshakeTimeout != null) { + this.setSslHandshakeTimeout(sslHandshakeTimeout) } - if (poolCleanerPeriod != null) { - this.setPoolCleanerPeriod(poolCleanerPeriod) + if (sslHandshakeTimeoutUnit != null) { + this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (poolEventLoopSize != null) { - this.setPoolEventLoopSize(poolEventLoopSize) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (protocolVersion != null) { - this.setProtocolVersion(protocolVersion) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) + } + if (metricsName != null) { + this.setMetricsName(metricsName) } if (proxyOptions != null) { this.setProxyOptions(proxyOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (http2MultiplexingLimit != null) { + this.setHttp2MultiplexingLimit(http2MultiplexingLimit) } - if (sendUnmaskedFrames != null) { - this.setSendUnmaskedFrames(sendUnmaskedFrames) + if (http2ConnectionWindowSize != null) { + this.setHttp2ConnectionWindowSize(http2ConnectionWindowSize) } - if (shared != null) { - this.setShared(shared) + if (http2KeepAliveTimeout != null) { + this.setHttp2KeepAliveTimeout(http2KeepAliveTimeout) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (keepAlive != null) { + this.setKeepAlive(keepAlive) } - if (ssl != null) { - this.setSsl(ssl) + if (keepAliveTimeout != null) { + this.setKeepAliveTimeout(keepAliveTimeout) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (pipelining != null) { + this.setPipelining(pipelining) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (pipeliningLimit != null) { + this.setPipeliningLimit(pipeliningLimit) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (verifyHost != null) { + this.setVerifyHost(verifyHost) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (tryUseCompression != null) { + this.setTryUseCompression(tryUseCompression) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (defaultHost != null) { + this.setDefaultHost(defaultHost) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (defaultPort != null) { + this.setDefaultPort(defaultPort) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (protocolVersion != null) { + this.setProtocolVersion(protocolVersion) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (maxChunkSize != null) { + this.setMaxChunkSize(maxChunkSize) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (maxInitialLineLength != null) { + this.setMaxInitialLineLength(maxInitialLineLength) } - if (templateExpandOptions != null) { - this.setTemplateExpandOptions(templateExpandOptions) + if (maxHeaderSize != null) { + this.setMaxHeaderSize(maxHeaderSize) } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) + if (initialSettings != null) { + this.setInitialSettings(initialSettings) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (alpnVersions != null) { + this.setAlpnVersions(alpnVersions.toList()) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (http2ClearTextUpgrade != null) { + this.setHttp2ClearTextUpgrade(http2ClearTextUpgrade) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (http2ClearTextUpgradeWithPreflightRequest != null) { + this.setHttp2ClearTextUpgradeWithPreflightRequest(http2ClearTextUpgradeWithPreflightRequest) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (maxRedirects != null) { + this.setMaxRedirects(maxRedirects) } - if (tryUseCompression != null) { - this.setTryUseCompression(tryUseCompression) + if (forceSni != null) { + this.setForceSni(forceSni) } - if (tryUsePerFrameWebSocketCompression != null) { - this.setTryUsePerFrameWebSocketCompression(tryUsePerFrameWebSocketCompression) + if (decoderInitialBufferSize != null) { + this.setDecoderInitialBufferSize(decoderInitialBufferSize) } - if (tryUsePerMessageWebSocketCompression != null) { - this.setTryUsePerMessageWebSocketCompression(tryUsePerMessageWebSocketCompression) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (shared != null) { + this.setShared(shared) } - if (userAgent != null) { - this.setUserAgent(userAgent) + if (name != null) { + this.setName(name) } if (userAgentEnabled != null) { this.setUserAgentEnabled(userAgentEnabled) } - if (verifyHost != null) { - this.setVerifyHost(verifyHost) - } - if (webSocketClosingTimeout != null) { - this.setWebSocketClosingTimeout(webSocketClosingTimeout) - } - if (webSocketCompressionAllowClientNoContext != null) { - this.setWebSocketCompressionAllowClientNoContext(webSocketCompressionAllowClientNoContext) + if (userAgent != null) { + this.setUserAgent(userAgent) } - if (webSocketCompressionLevel != null) { - this.setWebSocketCompressionLevel(webSocketCompressionLevel) + if (followRedirects != null) { + this.setFollowRedirects(followRedirects) } - if (webSocketCompressionRequestServerNoContext != null) { - this.setWebSocketCompressionRequestServerNoContext(webSocketCompressionRequestServerNoContext) + if (templateExpandOptions != null) { + this.setTemplateExpandOptions(templateExpandOptions) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/graphql/GraphiQLHandlerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/graphql/GraphiQLHandlerOptions.kt index ce4c590a..56b92bfa 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/graphql/GraphiQLHandlerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/graphql/GraphiQLHandlerOptions.kt @@ -23,32 +23,35 @@ import io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions * Embedded GraphiQL user interface options. * * @param enabled Whether the GraphiQL development tool should be enabled. Defaults to false. + * @param httpEnabled Whether the HTTP transport should be enabled. Defaults to true. * @param graphQLUri Set the GraphQL HTTP endpoint URI. Defaults to [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions]. * @param graphQLWSEnabled Whether the GraphQLWS transport should be enabled. Defaults to true. * @param graphWSQLUri Set the GraphQLWS endpoint URI. Defaults to [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions]. * @param headers A fixed set of HTTP headers to add to GraphiQL requests. Defaults to null. - * @param httpEnabled Whether the HTTP transport should be enabled. Defaults to true. + * @param wsConnectionParams Initial GraphQLWS connection params. Defaults to null. * @param query Initial value of the query area in the GraphiQL user interface. Defaults to null. * @param variables Initial value of the variables area in the GraphiQL user interface. Defaults to null. - * @param wsConnectionParams Initial GraphQLWS connection params. Defaults to null. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions original] using Vert.x codegen. */ fun graphiQLHandlerOptionsOf( enabled: Boolean? = null, + httpEnabled: Boolean? = null, graphQLUri: String? = null, graphQLWSEnabled: Boolean? = null, graphWSQLUri: String? = null, headers: Map? = null, - httpEnabled: Boolean? = null, + wsConnectionParams: io.vertx.core.json.JsonObject? = null, query: String? = null, - variables: io.vertx.core.json.JsonObject? = null, - wsConnectionParams: io.vertx.core.json.JsonObject? = null): GraphiQLHandlerOptions = io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions().apply { + variables: io.vertx.core.json.JsonObject? = null): GraphiQLHandlerOptions = io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions().apply { if (enabled != null) { this.setEnabled(enabled) } + if (httpEnabled != null) { + this.setHttpEnabled(httpEnabled) + } if (graphQLUri != null) { this.setGraphQLUri(graphQLUri) } @@ -61,8 +64,8 @@ fun graphiQLHandlerOptionsOf( if (headers != null) { this.setHeaders(headers) } - if (httpEnabled != null) { - this.setHttpEnabled(httpEnabled) + if (wsConnectionParams != null) { + this.setWsConnectionParams(wsConnectionParams) } if (query != null) { this.setQuery(query) @@ -70,8 +73,5 @@ fun graphiQLHandlerOptionsOf( if (variables != null) { this.setVariables(variables) } - if (wsConnectionParams != null) { - this.setWsConnectionParams(wsConnectionParams) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSBridgeOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSBridgeOptions.kt index c9b9cef8..16aca94c 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSBridgeOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSBridgeOptions.kt @@ -24,9 +24,9 @@ import io.vertx.ext.bridge.PermittedOptions * Options for configuring the event bus bridge. * * @param inboundPermitteds Sets the list of inbound permitted options. + * @param outboundPermitteds Sets the list of outbound permitted options. * @param maxAddressLength * @param maxHandlersPerSocket - * @param outboundPermitteds Sets the list of outbound permitted options. * @param pingTimeout * @param replyTimeout * @@ -35,24 +35,24 @@ import io.vertx.ext.bridge.PermittedOptions */ fun sockJSBridgeOptionsOf( inboundPermitteds: Iterable? = null, + outboundPermitteds: Iterable? = null, maxAddressLength: Int? = null, maxHandlersPerSocket: Int? = null, - outboundPermitteds: Iterable? = null, pingTimeout: Long? = null, replyTimeout: Long? = null): SockJSBridgeOptions = io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions().apply { if (inboundPermitteds != null) { this.setInboundPermitteds(inboundPermitteds.toList()) } + if (outboundPermitteds != null) { + this.setOutboundPermitteds(outboundPermitteds.toList()) + } if (maxAddressLength != null) { this.setMaxAddressLength(maxAddressLength) } if (maxHandlersPerSocket != null) { this.setMaxHandlersPerSocket(maxHandlersPerSocket) } - if (outboundPermitteds != null) { - this.setOutboundPermitteds(outboundPermitteds.toList()) - } if (pingTimeout != null) { this.setPingTimeout(pingTimeout) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSHandlerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSHandlerOptions.kt index 512d58d3..57d2a9a6 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSHandlerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/web/handler/sockjs/SockJSHandlerOptions.kt @@ -22,58 +22,58 @@ import io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions * * Options for configuring a SockJS handler * - * @param disabledTransports Add a transport (by name) to the set of disabled transports. - * @param heartbeatInterval In order to keep proxies and load balancers from closing long running HTTP requests we need to pretend that the connection is active and send a heartbeat packet once in a while. This setting controls how often this is done.

Defaults to 25 seconds. + * @param sessionTimeout Set the delay before the server sends a close event when a client receiving connection has not been seen for a while.

Defaults to 5 seconds. * @param insertJSESSIONID Whether to insert a JSESSIONID cookie so load-balancers ensure requests for a specific SockJS session are always routed to the correct server.

Defaults to true. + * @param heartbeatInterval In order to keep proxies and load balancers from closing long running HTTP requests we need to pretend that the connection is active and send a heartbeat packet once in a while. This setting controls how often this is done.

Defaults to 25 seconds. + * @param maxBytesStreaming Most streaming transports save responses on the client side and don't free memory used by delivered messages. Such transports need to be garbage-collected once in a while.

This setting controls the maximum number of bytes that can be sent over a single HTTP streaming request before it will be closed. After that the client needs to open new request. Setting this value to one effectively disables streaming and will make streaming transports to behave like polling transports.

Defaults to 128K. * @param libraryURL Transports which don't support cross-domain communication natively use an iframe trick. A simple page is served from the SockJS server (using its foreign domain) and is placed in an invisible iframe.

Code run from this iframe doesn't need to worry about cross-domain issues, as it's being run from domain local to the SockJS server. This iframe also does need to load SockJS javascript client library, and this option lets you specify its URL. + * @param disabledTransports Add a transport (by name) to the set of disabled transports. + * @param registerWriteHandler Whether a writeHandler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * @param localWriteHandler Whether the writeHandler should be local only or cluster-wide.

Defaults to true. - * @param maxBytesStreaming Most streaming transports save responses on the client side and don't free memory used by delivered messages. Such transports need to be garbage-collected once in a while.

This setting controls the maximum number of bytes that can be sent over a single HTTP streaming request before it will be closed. After that the client needs to open new request. Setting this value to one effectively disables streaming and will make streaming transports to behave like polling transports.

Defaults to 128K. * @param origin Set the origin to be verified before a websocket upgrade happens.

Defaults to null. - * @param registerWriteHandler Whether a writeHandler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param sessionTimeout Set the delay before the server sends a close event when a client receiving connection has not been seen for a while.

Defaults to 5 seconds. * *

* NOTE: This function has been automatically generated from the [io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions original] using Vert.x codegen. */ fun sockJSHandlerOptionsOf( - disabledTransports: Iterable? = null, - heartbeatInterval: Long? = null, + sessionTimeout: Long? = null, insertJSESSIONID: Boolean? = null, - libraryURL: String? = null, - localWriteHandler: Boolean? = null, + heartbeatInterval: Long? = null, maxBytesStreaming: Int? = null, - origin: String? = null, + libraryURL: String? = null, + disabledTransports: Iterable? = null, registerWriteHandler: Boolean? = null, - sessionTimeout: Long? = null): SockJSHandlerOptions = io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions().apply { + localWriteHandler: Boolean? = null, + origin: String? = null): SockJSHandlerOptions = io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions().apply { - if (disabledTransports != null) { - for (item in disabledTransports) { - this.addDisabledTransport(item) - } + if (sessionTimeout != null) { + this.setSessionTimeout(sessionTimeout) + } + if (insertJSESSIONID != null) { + this.setInsertJSESSIONID(insertJSESSIONID) } if (heartbeatInterval != null) { this.setHeartbeatInterval(heartbeatInterval) } - if (insertJSESSIONID != null) { - this.setInsertJSESSIONID(insertJSESSIONID) + if (maxBytesStreaming != null) { + this.setMaxBytesStreaming(maxBytesStreaming) } if (libraryURL != null) { this.setLibraryURL(libraryURL) } + if (disabledTransports != null) { + for (item in disabledTransports) { + this.addDisabledTransport(item) + } + } + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) + } if (localWriteHandler != null) { this.setLocalWriteHandler(localWriteHandler) } - if (maxBytesStreaming != null) { - this.setMaxBytesStreaming(maxBytesStreaming) - } if (origin != null) { this.setOrigin(origin) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) - } - if (sessionTimeout != null) { - this.setSessionTimeout(sessionTimeout) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/jdbcclient/JDBCConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/jdbcclient/JDBCConnectOptions.kt index be2b08f7..07073dc7 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/jdbcclient/JDBCConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/jdbcclient/JDBCConnectOptions.kt @@ -23,45 +23,51 @@ import io.vertx.ext.sql.ResultSetType import io.vertx.ext.sql.TransactionIsolation fun jdbcConnectOptionsOf( - autoGeneratedKeys: Boolean? = null, - autoGeneratedKeysIndexes: io.vertx.core.json.JsonArray? = null, + readOnly: Boolean? = null, catalog: String? = null, - connectTimeout: Int? = null, - dataSourceImplementation: String? = null, - database: String? = null, + transactionIsolation: TransactionIsolation? = null, + resultSetType: ResultSetType? = null, + resultSetConcurrency: ResultSetConcurrency? = null, + autoGeneratedKeys: Boolean? = null, + schema: String? = null, + queryTimeout: Int? = null, fetchDirection: FetchDirection? = null, fetchSize: Int? = null, - idleTimeout: Int? = null, - jdbcUrl: String? = null, + autoGeneratedKeysIndexes: io.vertx.core.json.JsonArray? = null, maxRows: Int? = null, + dataSourceImplementation: String? = null, metricsEnabled: Boolean? = null, + jdbcUrl: String? = null, + user: String? = null, password: String? = null, - queryTimeout: Int? = null, - readOnly: Boolean? = null, - resultSetConcurrency: ResultSetConcurrency? = null, - resultSetType: ResultSetType? = null, - schema: String? = null, - tracingPolicy: TracingPolicy? = null, - transactionIsolation: TransactionIsolation? = null, - user: String? = null): JDBCConnectOptions = io.vertx.jdbcclient.JDBCConnectOptions().apply { + database: String? = null, + connectTimeout: Int? = null, + idleTimeout: Int? = null, + tracingPolicy: TracingPolicy? = null): JDBCConnectOptions = io.vertx.jdbcclient.JDBCConnectOptions().apply { - if (autoGeneratedKeys != null) { - this.setAutoGeneratedKeys(autoGeneratedKeys) - } - if (autoGeneratedKeysIndexes != null) { - this.setAutoGeneratedKeysIndexes(autoGeneratedKeysIndexes) + if (readOnly != null) { + this.setReadOnly(readOnly) } if (catalog != null) { this.setCatalog(catalog) } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) + if (transactionIsolation != null) { + this.setTransactionIsolation(transactionIsolation) } - if (dataSourceImplementation != null) { - this.setDataSourceImplementation(dataSourceImplementation) + if (resultSetType != null) { + this.setResultSetType(resultSetType) } - if (database != null) { - this.setDatabase(database) + if (resultSetConcurrency != null) { + this.setResultSetConcurrency(resultSetConcurrency) + } + if (autoGeneratedKeys != null) { + this.setAutoGeneratedKeys(autoGeneratedKeys) + } + if (schema != null) { + this.setSchema(schema) + } + if (queryTimeout != null) { + this.setQueryTimeout(queryTimeout) } if (fetchDirection != null) { this.setFetchDirection(fetchDirection) @@ -69,44 +75,38 @@ fun jdbcConnectOptionsOf( if (fetchSize != null) { this.setFetchSize(fetchSize) } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) - } - if (jdbcUrl != null) { - this.setJdbcUrl(jdbcUrl) + if (autoGeneratedKeysIndexes != null) { + this.setAutoGeneratedKeysIndexes(autoGeneratedKeysIndexes) } if (maxRows != null) { this.setMaxRows(maxRows) } + if (dataSourceImplementation != null) { + this.setDataSourceImplementation(dataSourceImplementation) + } if (metricsEnabled != null) { this.setMetricsEnabled(metricsEnabled) } - if (password != null) { - this.setPassword(password) + if (jdbcUrl != null) { + this.setJdbcUrl(jdbcUrl) } - if (queryTimeout != null) { - this.setQueryTimeout(queryTimeout) + if (user != null) { + this.setUser(user) } - if (readOnly != null) { - this.setReadOnly(readOnly) + if (password != null) { + this.setPassword(password) } - if (resultSetConcurrency != null) { - this.setResultSetConcurrency(resultSetConcurrency) + if (database != null) { + this.setDatabase(database) } - if (resultSetType != null) { - this.setResultSetType(resultSetType) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (schema != null) { - this.setSchema(schema) + if (idleTimeout != null) { + this.setIdleTimeout(idleTimeout) } if (tracingPolicy != null) { this.setTracingPolicy(tracingPolicy) } - if (transactionIsolation != null) { - this.setTransactionIsolation(transactionIsolation) - } - if (user != null) { - this.setUser(user) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/json/schema/OutputUnit.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/json/schema/OutputUnit.kt index 00f885b8..6fa8169d 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/json/schema/OutputUnit.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/json/schema/OutputUnit.kt @@ -18,19 +18,25 @@ package io.vertx.kotlin.json.schema import io.vertx.json.schema.OutputUnit fun outputUnitOf( + valid: Boolean? = null, absoluteKeywordLocation: String? = null, - annotations: Iterable? = null, + keywordLocation: String? = null, + instanceLocation: String? = null, error: String? = null, errors: Iterable? = null, - instanceLocation: String? = null, - keywordLocation: String? = null, - valid: Boolean? = null): OutputUnit = io.vertx.json.schema.OutputUnit().apply { + annotations: Iterable? = null): OutputUnit = io.vertx.json.schema.OutputUnit().apply { + if (valid != null) { + this.setValid(valid) + } if (absoluteKeywordLocation != null) { this.setAbsoluteKeywordLocation(absoluteKeywordLocation) } - if (annotations != null) { - this.setAnnotations(annotations.toList()) + if (keywordLocation != null) { + this.setKeywordLocation(keywordLocation) + } + if (instanceLocation != null) { + this.setInstanceLocation(instanceLocation) } if (error != null) { this.setError(error) @@ -38,14 +44,8 @@ fun outputUnitOf( if (errors != null) { this.setErrors(errors.toList()) } - if (instanceLocation != null) { - this.setInstanceLocation(instanceLocation) - } - if (keywordLocation != null) { - this.setKeywordLocation(keywordLocation) - } - if (valid != null) { - this.setValid(valid) + if (annotations != null) { + this.setAnnotations(annotations.toList()) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ClusterDescription.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ClusterDescription.kt index 85e3c0a2..2e9ad508 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ClusterDescription.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ClusterDescription.kt @@ -24,31 +24,31 @@ import org.apache.kafka.common.acl.AclOperation * * A detailed description of the cluster * - * @param authorizedOperations Set the authorizedOperations - * @param clusterId Set the cluster ID - * @param controller Set the controller node. * @param nodes Set the nodes belonging to this cluster + * @param controller Set the controller node. + * @param clusterId Set the cluster ID + * @param authorizedOperations Set the authorizedOperations * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.ClusterDescription original] using Vert.x codegen. */ fun clusterDescriptionOf( - authorizedOperations: Iterable? = null, - clusterId: String? = null, + nodes: Iterable? = null, controller: io.vertx.kafka.client.common.Node? = null, - nodes: Iterable? = null): ClusterDescription = io.vertx.kafka.admin.ClusterDescription().apply { + clusterId: String? = null, + authorizedOperations: Iterable? = null): ClusterDescription = io.vertx.kafka.admin.ClusterDescription().apply { - if (authorizedOperations != null) { - this.setAuthorizedOperations(authorizedOperations.toSet()) - } - if (clusterId != null) { - this.setClusterId(clusterId) + if (nodes != null) { + this.setNodes(nodes.toList()) } if (controller != null) { this.setController(controller) } - if (nodes != null) { - this.setNodes(nodes.toList()) + if (clusterId != null) { + this.setClusterId(clusterId) + } + if (authorizedOperations != null) { + this.setAuthorizedOperations(authorizedOperations.toSet()) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigEntry.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigEntry.kt index 5f29fa32..a2ef7258 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigEntry.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigEntry.kt @@ -24,8 +24,8 @@ import org.apache.kafka.clients.admin.ConfigEntry.ConfigSource * * A class representing a configuration entry containing name, value and additional metadata * - * @param default Set whether the config value is the default or if it's been explicitly set * @param name Set the config name + * @param default Set whether the config value is the default or if it's been explicitly set * @param readOnly Set whether the config is read-only and cannot be updated * @param sensitive Set whether the config value is sensitive. The value is always set to null by the broker if the config value is sensitive * @param source Set the source of this configuration entry @@ -36,20 +36,20 @@ import org.apache.kafka.clients.admin.ConfigEntry.ConfigSource * NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.ConfigEntry original] using Vert.x codegen. */ fun configEntryOf( - default: Boolean? = null, name: String? = null, + default: Boolean? = null, readOnly: Boolean? = null, sensitive: Boolean? = null, source: ConfigSource? = null, synonyms: Iterable? = null, value: String? = null): ConfigEntry = io.vertx.kafka.admin.ConfigEntry().apply { - if (default != null) { - this.setDefault(default) - } if (name != null) { this.setName(name) } + if (default != null) { + this.setDefault(default) + } if (readOnly != null) { this.setReadOnly(readOnly) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigSynonym.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigSynonym.kt index e9fdb53c..4e963b81 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigSynonym.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConfigSynonym.kt @@ -24,25 +24,25 @@ import org.apache.kafka.clients.admin.ConfigEntry.ConfigSource * Class representing a configuration synonym of a [io.vertx.kafka.admin.ConfigEntry] * * @param name Set the name of this configuration - * @param source Set the source of this configuration * @param value Set the value of this configuration, which may be null if the configuration is sensitive + * @param source Set the source of this configuration * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.ConfigSynonym original] using Vert.x codegen. */ fun configSynonymOf( name: String? = null, - source: ConfigSource? = null, - value: String? = null): ConfigSynonym = io.vertx.kafka.admin.ConfigSynonym().apply { + value: String? = null, + source: ConfigSource? = null): ConfigSynonym = io.vertx.kafka.admin.ConfigSynonym().apply { if (name != null) { this.setName(name) } - if (source != null) { - this.setSource(source) - } if (value != null) { this.setValue(value) } + if (source != null) { + this.setSource(source) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConsumerGroupDescription.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConsumerGroupDescription.kt index d9534afe..9728bb20 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConsumerGroupDescription.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ConsumerGroupDescription.kt @@ -26,46 +26,46 @@ import org.apache.kafka.common.acl.AclOperation * * A detailed description of a single consumer group in the cluster * - * @param authorizedOperations Set the id of the consumer group - * @param coordinator Set the consumer group coordinator, or null if the coordinator is not known * @param groupId Set the id of the consumer group + * @param simpleConsumerGroup Set if consumer group is simple or not + * @param coordinator Set the consumer group coordinator, or null if the coordinator is not known * @param members Set a list of the members of the consumer group * @param partitionAssignor Set the consumer group partition assignor - * @param simpleConsumerGroup Set if consumer group is simple or not * @param state Set the consumer group state, or UNKNOWN if the state is too new for us to parse + * @param authorizedOperations Set the id of the consumer group * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.ConsumerGroupDescription original] using Vert.x codegen. */ fun consumerGroupDescriptionOf( - authorizedOperations: Iterable? = null, - coordinator: io.vertx.kafka.client.common.Node? = null, groupId: String? = null, + simpleConsumerGroup: Boolean? = null, + coordinator: io.vertx.kafka.client.common.Node? = null, members: Iterable? = null, partitionAssignor: String? = null, - simpleConsumerGroup: Boolean? = null, - state: ConsumerGroupState? = null): ConsumerGroupDescription = io.vertx.kafka.admin.ConsumerGroupDescription().apply { + state: ConsumerGroupState? = null, + authorizedOperations: Iterable? = null): ConsumerGroupDescription = io.vertx.kafka.admin.ConsumerGroupDescription().apply { - if (authorizedOperations != null) { - this.setAuthorizedOperations(authorizedOperations.toSet()) + if (groupId != null) { + this.setGroupId(groupId) + } + if (simpleConsumerGroup != null) { + this.setSimpleConsumerGroup(simpleConsumerGroup) } if (coordinator != null) { this.setCoordinator(coordinator) } - if (groupId != null) { - this.setGroupId(groupId) - } if (members != null) { this.setMembers(members.toList()) } if (partitionAssignor != null) { this.setPartitionAssignor(partitionAssignor) } - if (simpleConsumerGroup != null) { - this.setSimpleConsumerGroup(simpleConsumerGroup) - } if (state != null) { this.setState(state) } + if (authorizedOperations != null) { + this.setAuthorizedOperations(authorizedOperations.toSet()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ListOffsetsResultInfo.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ListOffsetsResultInfo.kt index 17c338cc..db1f5730 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ListOffsetsResultInfo.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/ListOffsetsResultInfo.kt @@ -18,18 +18,18 @@ package io.vertx.kotlin.kafka.admin import io.vertx.kafka.admin.ListOffsetsResultInfo fun listOffsetsResultInfoOf( - leaderEpoch: Int? = null, offset: Long? = null, - timestamp: Long? = null): ListOffsetsResultInfo = io.vertx.kafka.admin.ListOffsetsResultInfo(io.vertx.core.json.JsonObject()).apply { + timestamp: Long? = null, + leaderEpoch: Int? = null): ListOffsetsResultInfo = io.vertx.kafka.admin.ListOffsetsResultInfo(io.vertx.core.json.JsonObject()).apply { - if (leaderEpoch != null) { - this.setLeaderEpoch(leaderEpoch) - } if (offset != null) { this.setOffset(offset) } if (timestamp != null) { this.setTimestamp(timestamp) } + if (leaderEpoch != null) { + this.setLeaderEpoch(leaderEpoch) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/MemberDescription.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/MemberDescription.kt index 62c64d21..cedf5fce 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/MemberDescription.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/MemberDescription.kt @@ -23,28 +23,28 @@ import io.vertx.kafka.admin.MemberAssignment * * A detailed description of a single group instance in the cluster * - * @param assignment Set the assignment of the group member - * @param clientId Set the client id of the group member * @param consumerId Set the consumer id of the group member + * @param clientId Set the client id of the group member + * @param assignment Set the assignment of the group member * @param host Set the host where the group member is running * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.MemberDescription original] using Vert.x codegen. */ fun memberDescriptionOf( - assignment: io.vertx.kafka.admin.MemberAssignment? = null, - clientId: String? = null, consumerId: String? = null, + clientId: String? = null, + assignment: io.vertx.kafka.admin.MemberAssignment? = null, host: String? = null): MemberDescription = io.vertx.kafka.admin.MemberDescription().apply { - if (assignment != null) { - this.setAssignment(assignment) + if (consumerId != null) { + this.setConsumerId(consumerId) } if (clientId != null) { this.setClientId(clientId) } - if (consumerId != null) { - this.setConsumerId(consumerId) + if (assignment != null) { + this.setAssignment(assignment) } if (host != null) { this.setHost(host) diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/NewTopic.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/NewTopic.kt index f23e93a6..713a64ec 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/NewTopic.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/NewTopic.kt @@ -22,23 +22,20 @@ import io.vertx.kafka.admin.NewTopic * * A new topic to be created * - * @param config Set the configuration for the new topic or null if no configs ever specified * @param name Set the name of the topic to be created * @param numPartitions Set the number of partitions for the new topic or -1 if a replica assignment has been specified * @param replicationFactor Set the replication factor for the new topic or -1 if a replica assignment has been specified + * @param config Set the configuration for the new topic or null if no configs ever specified * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.NewTopic original] using Vert.x codegen. */ fun newTopicOf( - config: Map? = null, name: String? = null, numPartitions: Int? = null, - replicationFactor: Short? = null): NewTopic = io.vertx.kafka.admin.NewTopic().apply { + replicationFactor: Short? = null, + config: Map? = null): NewTopic = io.vertx.kafka.admin.NewTopic().apply { - if (config != null) { - this.setConfig(config) - } if (name != null) { this.setName(name) } @@ -48,5 +45,8 @@ fun newTopicOf( if (replicationFactor != null) { this.setReplicationFactor(replicationFactor) } + if (config != null) { + this.setConfig(config) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/TopicDescription.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/TopicDescription.kt index 96546142..b2d64531 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/TopicDescription.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/admin/TopicDescription.kt @@ -24,36 +24,36 @@ import org.apache.kafka.common.acl.AclOperation * * A detailed description of a single topic in the cluster * - * @param authorizedOperations Set the id of the consumer group * @param internal Set whether the topic is internal to Kafka. * @param name Set the name of the topic. - * @param partitions Set A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition. * @param topicId Set the id of the topic. + * @param authorizedOperations Set the id of the consumer group + * @param partitions Set A list of partitions where the index represents the partition id and the element contains leadership and replica information for that partition. * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.admin.TopicDescription original] using Vert.x codegen. */ fun topicDescriptionOf( - authorizedOperations: Iterable? = null, internal: Boolean? = null, name: String? = null, - partitions: Iterable? = null, - topicId: org.apache.kafka.common.Uuid? = null): TopicDescription = io.vertx.kafka.admin.TopicDescription().apply { + topicId: org.apache.kafka.common.Uuid? = null, + authorizedOperations: Iterable? = null, + partitions: Iterable? = null): TopicDescription = io.vertx.kafka.admin.TopicDescription().apply { - if (authorizedOperations != null) { - this.setAuthorizedOperations(authorizedOperations.toSet()) - } if (internal != null) { this.setInternal(internal) } if (name != null) { this.setName(name) } - if (partitions != null) { - this.setPartitions(partitions.toList()) - } if (topicId != null) { this.setTopicId(topicId) } + if (authorizedOperations != null) { + this.setAuthorizedOperations(authorizedOperations.toSet()) + } + if (partitions != null) { + this.setPartitions(partitions.toList()) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/ConfigResource.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/ConfigResource.kt index 90931f78..efb16d3b 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/ConfigResource.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/ConfigResource.kt @@ -23,24 +23,24 @@ import org.apache.kafka.common.config.ConfigResource.Type * * A class representing resources that have configuration * - * @param default Set if this is the default resource of a resource type. Resource name is empty for the default resource. * @param name Set the resource name + * @param default Set if this is the default resource of a resource type. Resource name is empty for the default resource. * @param type Set the resource type * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.client.common.ConfigResource original] using Vert.x codegen. */ fun configResourceOf( - default: Boolean? = null, name: String? = null, + default: Boolean? = null, type: Type? = null): ConfigResource = io.vertx.kafka.client.common.ConfigResource().apply { - if (default != null) { - this.setDefault(default) - } if (name != null) { this.setName(name) } + if (default != null) { + this.setDefault(default) + } if (type != null) { this.setType(type) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/KafkaClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/KafkaClientOptions.kt index 84a67e1d..ecd3d777 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/KafkaClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/KafkaClientOptions.kt @@ -24,25 +24,25 @@ import io.vertx.core.tracing.TracingPolicy * Generic KafkaClient options. * * @param config Set the Kafka config. - * @param tracePeerAddress Set the Kafka address to show in trace tags. Or leave it unset to automatically pick up bootstrap server from config instead. * @param tracingPolicy Set the Kafka tracing policy. + * @param tracePeerAddress Set the Kafka address to show in trace tags. Or leave it unset to automatically pick up bootstrap server from config instead. * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.client.common.KafkaClientOptions original] using Vert.x codegen. */ fun kafkaClientOptionsOf( config: Map? = null, - tracePeerAddress: String? = null, - tracingPolicy: TracingPolicy? = null): KafkaClientOptions = io.vertx.kafka.client.common.KafkaClientOptions().apply { + tracingPolicy: TracingPolicy? = null, + tracePeerAddress: String? = null): KafkaClientOptions = io.vertx.kafka.client.common.KafkaClientOptions().apply { if (config != null) { this.setConfig(config) } - if (tracePeerAddress != null) { - this.setTracePeerAddress(tracePeerAddress) - } if (tracingPolicy != null) { this.setTracingPolicy(tracingPolicy) } + if (tracePeerAddress != null) { + this.setTracePeerAddress(tracePeerAddress) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/TopicPartition.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/TopicPartition.kt index 69ac4282..de88868e 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/TopicPartition.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/common/TopicPartition.kt @@ -22,21 +22,21 @@ import io.vertx.kafka.client.common.TopicPartition * * Represent information related to a partition for a topic * - * @param partition Set the partition number * @param topic Set the topic name + * @param partition Set the partition number * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.client.common.TopicPartition original] using Vert.x codegen. */ fun topicPartitionOf( - partition: Int? = null, - topic: String? = null): TopicPartition = io.vertx.kafka.client.common.TopicPartition().apply { + topic: String? = null, + partition: Int? = null): TopicPartition = io.vertx.kafka.client.common.TopicPartition().apply { - if (partition != null) { - this.setPartition(partition) - } if (topic != null) { this.setTopic(topic) } + if (partition != null) { + this.setPartition(partition) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/consumer/OffsetAndMetadata.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/consumer/OffsetAndMetadata.kt index e168a2cc..9b0034f7 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/consumer/OffsetAndMetadata.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/kafka/client/consumer/OffsetAndMetadata.kt @@ -22,21 +22,21 @@ import io.vertx.kafka.client.consumer.OffsetAndMetadata * * Provide additional metadata when an offset is committed * - * @param metadata Set additional metadata for the offset committed * @param offset Set the offset to commit + * @param metadata Set additional metadata for the offset committed * *

* NOTE: This function has been automatically generated from the [io.vertx.kafka.client.consumer.OffsetAndMetadata original] using Vert.x codegen. */ fun offsetAndMetadataOf( - metadata: String? = null, - offset: Long? = null): OffsetAndMetadata = io.vertx.kafka.client.consumer.OffsetAndMetadata().apply { + offset: Long? = null, + metadata: String? = null): OffsetAndMetadata = io.vertx.kafka.client.consumer.OffsetAndMetadata().apply { - if (metadata != null) { - this.setMetadata(metadata) - } if (offset != null) { this.setOffset(offset) } + if (metadata != null) { + this.setMetadata(metadata) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/Match.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/Match.kt index 0d60b4e8..3ce9f202 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/Match.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/Match.kt @@ -24,36 +24,36 @@ import io.vertx.micrometer.MetricsDomain * * A match for a value. * - * @param alias Set an alias that would replace the label value when it matches. * @param domain Set the label domain, restricting this rule to a single domain. * @param label Set the label name. The match will apply to the values related to this key. - * @param type Set the type of matching to apply. * @param value Set the matched value. + * @param type Set the type of matching to apply. + * @param alias Set an alias that would replace the label value when it matches. * *

* NOTE: This function has been automatically generated from the [io.vertx.micrometer.Match original] using Vert.x codegen. */ fun matchOf( - alias: String? = null, domain: MetricsDomain? = null, label: String? = null, + value: String? = null, type: MatchType? = null, - value: String? = null): Match = io.vertx.micrometer.Match().apply { + alias: String? = null): Match = io.vertx.micrometer.Match().apply { - if (alias != null) { - this.setAlias(alias) - } if (domain != null) { this.setDomain(domain) } if (label != null) { this.setLabel(label) } + if (value != null) { + this.setValue(value) + } if (type != null) { this.setType(type) } - if (value != null) { - this.setValue(value) + if (alias != null) { + this.setAlias(alias) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MetricsNaming.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MetricsNaming.kt index 674f8170..67bd3504 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MetricsNaming.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MetricsNaming.kt @@ -22,101 +22,101 @@ import io.vertx.micrometer.MetricsNaming * * Options for naming all metrics * - * @param clientProcessingPending - * @param clientProcessingTime - * @param clientQueuePending * @param clientQueueTime + * @param clientQueuePending + * @param clientProcessingTime + * @param clientProcessingPending * @param clientResetsCount * @param datagramBytesRead * @param datagramBytesWritten * @param datagramErrorCount - * @param ebBytesRead - * @param ebBytesWritten - * @param ebDelivered - * @param ebDiscarded * @param ebHandlers * @param ebPending * @param ebProcessed * @param ebPublished + * @param ebSent * @param ebReceived + * @param ebDelivered + * @param ebDiscarded * @param ebReplyFailures - * @param ebSent - * @param httpActiveRequests - * @param httpActiveWsConnections - * @param httpQueuePending + * @param ebBytesRead + * @param ebBytesWritten * @param httpQueueTime - * @param httpRequestBytes - * @param httpRequestResetsCount + * @param httpQueuePending + * @param httpActiveRequests * @param httpRequestsCount - * @param httpResponseBytes + * @param httpRequestBytes * @param httpResponseTime * @param httpResponsesCount + * @param httpResponseBytes + * @param httpActiveWsConnections + * @param httpRequestResetsCount * @param netActiveConnections + * @param poolUsage + * @param poolInUse + * @param poolUsageRatio + * @param poolCompleted * @param netBytesRead * @param netBytesWritten * @param netErrorCount - * @param poolCompleted - * @param poolInUse - * @param poolQueuePending * @param poolQueueTime - * @param poolUsage - * @param poolUsageRatio + * @param poolQueuePending * *

* NOTE: This function has been automatically generated from the [io.vertx.micrometer.MetricsNaming original] using Vert.x codegen. */ fun metricsNamingOf( - clientProcessingPending: String? = null, - clientProcessingTime: String? = null, - clientQueuePending: String? = null, clientQueueTime: String? = null, + clientQueuePending: String? = null, + clientProcessingTime: String? = null, + clientProcessingPending: String? = null, clientResetsCount: String? = null, datagramBytesRead: String? = null, datagramBytesWritten: String? = null, datagramErrorCount: String? = null, - ebBytesRead: String? = null, - ebBytesWritten: String? = null, - ebDelivered: String? = null, - ebDiscarded: String? = null, ebHandlers: String? = null, ebPending: String? = null, ebProcessed: String? = null, ebPublished: String? = null, + ebSent: String? = null, ebReceived: String? = null, + ebDelivered: String? = null, + ebDiscarded: String? = null, ebReplyFailures: String? = null, - ebSent: String? = null, - httpActiveRequests: String? = null, - httpActiveWsConnections: String? = null, - httpQueuePending: String? = null, + ebBytesRead: String? = null, + ebBytesWritten: String? = null, httpQueueTime: String? = null, - httpRequestBytes: String? = null, - httpRequestResetsCount: String? = null, + httpQueuePending: String? = null, + httpActiveRequests: String? = null, httpRequestsCount: String? = null, - httpResponseBytes: String? = null, + httpRequestBytes: String? = null, httpResponseTime: String? = null, httpResponsesCount: String? = null, + httpResponseBytes: String? = null, + httpActiveWsConnections: String? = null, + httpRequestResetsCount: String? = null, netActiveConnections: String? = null, + poolUsage: String? = null, + poolInUse: String? = null, + poolUsageRatio: String? = null, + poolCompleted: String? = null, netBytesRead: String? = null, netBytesWritten: String? = null, netErrorCount: String? = null, - poolCompleted: String? = null, - poolInUse: String? = null, - poolQueuePending: String? = null, poolQueueTime: String? = null, - poolUsage: String? = null, - poolUsageRatio: String? = null): MetricsNaming = io.vertx.micrometer.MetricsNaming().apply { + poolQueuePending: String? = null): MetricsNaming = io.vertx.micrometer.MetricsNaming().apply { - if (clientProcessingPending != null) { - this.setClientProcessingPending(clientProcessingPending) - } - if (clientProcessingTime != null) { - this.setClientProcessingTime(clientProcessingTime) + if (clientQueueTime != null) { + this.setClientQueueTime(clientQueueTime) } if (clientQueuePending != null) { this.setClientQueuePending(clientQueuePending) } - if (clientQueueTime != null) { - this.setClientQueueTime(clientQueueTime) + if (clientProcessingTime != null) { + this.setClientProcessingTime(clientProcessingTime) + } + if (clientProcessingPending != null) { + this.setClientProcessingPending(clientProcessingPending) } if (clientResetsCount != null) { this.setClientResetsCount(clientResetsCount) @@ -130,18 +130,6 @@ fun metricsNamingOf( if (datagramErrorCount != null) { this.setDatagramErrorCount(datagramErrorCount) } - if (ebBytesRead != null) { - this.setEbBytesRead(ebBytesRead) - } - if (ebBytesWritten != null) { - this.setEbBytesWritten(ebBytesWritten) - } - if (ebDelivered != null) { - this.setEbDelivered(ebDelivered) - } - if (ebDiscarded != null) { - this.setEbDiscarded(ebDiscarded) - } if (ebHandlers != null) { this.setEbHandlers(ebHandlers) } @@ -154,38 +142,41 @@ fun metricsNamingOf( if (ebPublished != null) { this.setEbPublished(ebPublished) } + if (ebSent != null) { + this.setEbSent(ebSent) + } if (ebReceived != null) { this.setEbReceived(ebReceived) } - if (ebReplyFailures != null) { - this.setEbReplyFailures(ebReplyFailures) + if (ebDelivered != null) { + this.setEbDelivered(ebDelivered) } - if (ebSent != null) { - this.setEbSent(ebSent) + if (ebDiscarded != null) { + this.setEbDiscarded(ebDiscarded) } - if (httpActiveRequests != null) { - this.setHttpActiveRequests(httpActiveRequests) + if (ebReplyFailures != null) { + this.setEbReplyFailures(ebReplyFailures) } - if (httpActiveWsConnections != null) { - this.setHttpActiveWsConnections(httpActiveWsConnections) + if (ebBytesRead != null) { + this.setEbBytesRead(ebBytesRead) } - if (httpQueuePending != null) { - this.setHttpQueuePending(httpQueuePending) + if (ebBytesWritten != null) { + this.setEbBytesWritten(ebBytesWritten) } if (httpQueueTime != null) { this.setHttpQueueTime(httpQueueTime) } - if (httpRequestBytes != null) { - this.setHttpRequestBytes(httpRequestBytes) + if (httpQueuePending != null) { + this.setHttpQueuePending(httpQueuePending) } - if (httpRequestResetsCount != null) { - this.setHttpRequestResetsCount(httpRequestResetsCount) + if (httpActiveRequests != null) { + this.setHttpActiveRequests(httpActiveRequests) } if (httpRequestsCount != null) { this.setHttpRequestsCount(httpRequestsCount) } - if (httpResponseBytes != null) { - this.setHttpResponseBytes(httpResponseBytes) + if (httpRequestBytes != null) { + this.setHttpRequestBytes(httpRequestBytes) } if (httpResponseTime != null) { this.setHttpResponseTime(httpResponseTime) @@ -193,9 +184,30 @@ fun metricsNamingOf( if (httpResponsesCount != null) { this.setHttpResponsesCount(httpResponsesCount) } + if (httpResponseBytes != null) { + this.setHttpResponseBytes(httpResponseBytes) + } + if (httpActiveWsConnections != null) { + this.setHttpActiveWsConnections(httpActiveWsConnections) + } + if (httpRequestResetsCount != null) { + this.setHttpRequestResetsCount(httpRequestResetsCount) + } if (netActiveConnections != null) { this.setNetActiveConnections(netActiveConnections) } + if (poolUsage != null) { + this.setPoolUsage(poolUsage) + } + if (poolInUse != null) { + this.setPoolInUse(poolInUse) + } + if (poolUsageRatio != null) { + this.setPoolUsageRatio(poolUsageRatio) + } + if (poolCompleted != null) { + this.setPoolCompleted(poolCompleted) + } if (netBytesRead != null) { this.setNetBytesRead(netBytesRead) } @@ -205,23 +217,11 @@ fun metricsNamingOf( if (netErrorCount != null) { this.setNetErrorCount(netErrorCount) } - if (poolCompleted != null) { - this.setPoolCompleted(poolCompleted) - } - if (poolInUse != null) { - this.setPoolInUse(poolInUse) - } - if (poolQueuePending != null) { - this.setPoolQueuePending(poolQueuePending) - } if (poolQueueTime != null) { this.setPoolQueueTime(poolQueueTime) } - if (poolUsage != null) { - this.setPoolUsage(poolUsage) - } - if (poolUsageRatio != null) { - this.setPoolUsageRatio(poolUsageRatio) + if (poolQueuePending != null) { + this.setPoolQueuePending(poolQueuePending) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MicrometerMetricsOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MicrometerMetricsOptions.kt index bb506770..4fce2070 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MicrometerMetricsOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/MicrometerMetricsOptions.kt @@ -31,55 +31,52 @@ import io.vertx.micrometer.VertxPrometheusOptions * It is required to set either influxDbOptions, prometheusOptions or jmxMetricsOptions * (or, programmatically, micrometerRegistry) in order to actually report metrics. * - * @param disabledMetricsCategories Sets metrics types that are disabled. * @param enabled Set whether metrics will be enabled on the Vert.x instance. Metrics are not enabled by default. * @param factory Programmatically set the metrics factory to be used when metrics are enabled.

Only valid if = true.

Normally Vert.x will look on the classpath for a metrics factory implementation, but if you want to set one programmatically you can use this method. - * @param influxDbOptions Set InfluxDB options. Setting a registry backend option is mandatory in order to effectively report metrics. - * @param jmxMetricsOptions Set JMX metrics options. Setting a registry backend option is mandatory in order to effectively report metrics. - * @param jvmMetricsEnabled Whether JVM metrics should be collected. Defaults to false. + * @param disabledMetricsCategories Sets metrics types that are disabled. + * @param registryName Set a name for the metrics registry, so that a new registry will be created and associated with this name. If registryName is not provided (or null), a default registry will be used. If the same name is given to several Vert.x instances (within the same JVM), they will share the same registry. + * @param labels Sets enabled labels. These labels can be fine-tuned later on using Micrometer's Meter filters (see http://micrometer.io/docs/concepts#_meter_filters) * @param labelMatches Set a list of rules for label matching. * @param labelMatchs Add a rule for label matching. - * @param labels Sets enabled labels. These labels can be fine-tuned later on using Micrometer's Meter filters (see http://micrometer.io/docs/concepts#_meter_filters) - * @param metricsNaming MetricsNaming is a structure that holds names of all metrics, each one can be changed individually. For instance, to retrieve compatibility with the names used in Vert.x 3.x, use setMetricsNaming(MetricsNaming.v3Names()) * @param micrometerRegistry Programmatically set the Micrometer MeterRegistry to be used by Vert.x. This is useful in several scenarios, such as:

This setter is mutually exclusive with setInfluxDbOptions/setPrometheusOptions/setJmxMetricsOptions and takes precedence over them. + * @param influxDbOptions Set InfluxDB options. Setting a registry backend option is mandatory in order to effectively report metrics. * @param prometheusOptions Set Prometheus options. Setting a registry backend option is mandatory in order to effectively report metrics. - * @param registryName Set a name for the metrics registry, so that a new registry will be created and associated with this name. If registryName is not provided (or null), a default registry will be used. If the same name is given to several Vert.x instances (within the same JVM), they will share the same registry. + * @param jmxMetricsOptions Set JMX metrics options. Setting a registry backend option is mandatory in order to effectively report metrics. + * @param jvmMetricsEnabled Whether JVM metrics should be collected. Defaults to false. + * @param metricsNaming MetricsNaming is a structure that holds names of all metrics, each one can be changed individually. For instance, to retrieve compatibility with the names used in Vert.x 3.x, use setMetricsNaming(MetricsNaming.v3Names()) * *

* NOTE: This function has been automatically generated from the [io.vertx.micrometer.MicrometerMetricsOptions original] using Vert.x codegen. */ fun micrometerMetricsOptionsOf( - disabledMetricsCategories: Iterable? = null, enabled: Boolean? = null, factory: io.vertx.core.spi.VertxMetricsFactory? = null, - influxDbOptions: io.vertx.micrometer.VertxInfluxDbOptions? = null, - jmxMetricsOptions: io.vertx.micrometer.VertxJmxMetricsOptions? = null, - jvmMetricsEnabled: Boolean? = null, + disabledMetricsCategories: Iterable? = null, + registryName: String? = null, + labels: Iterable

* NOTE: This function has been automatically generated from the [io.vertx.micrometer.VertxInfluxDbOptions original] using Vert.x codegen. */ fun vertxInfluxDbOptionsOf( - batchSize: Int? = null, - bucket: String? = null, - compressed: Boolean? = null, - connectTimeout: Int? = null, - db: String? = null, enabled: Boolean? = null, - numThreads: Int? = null, - org: String? = null, + uri: String? = null, + db: String? = null, + userName: String? = null, password: String? = null, - readTimeout: Int? = null, retentionPolicy: String? = null, + compressed: Boolean? = null, step: Int? = null, - token: String? = null, - uri: String? = null, - userName: String? = null): VertxInfluxDbOptions = io.vertx.micrometer.VertxInfluxDbOptions().apply { + numThreads: Int? = null, + connectTimeout: Int? = null, + readTimeout: Int? = null, + batchSize: Int? = null, + org: String? = null, + bucket: String? = null, + token: String? = null): VertxInfluxDbOptions = io.vertx.micrometer.VertxInfluxDbOptions().apply { - if (batchSize != null) { - this.setBatchSize(batchSize) - } - if (bucket != null) { - this.setBucket(bucket) - } - if (compressed != null) { - this.setCompressed(compressed) + if (enabled != null) { + this.setEnabled(enabled) } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) + if (uri != null) { + this.setUri(uri) } if (db != null) { this.setDb(db) } - if (enabled != null) { - this.setEnabled(enabled) - } - if (numThreads != null) { - this.setNumThreads(numThreads) - } - if (org != null) { - this.setOrg(org) + if (userName != null) { + this.setUserName(userName) } if (password != null) { this.setPassword(password) } - if (readTimeout != null) { - this.setReadTimeout(readTimeout) - } if (retentionPolicy != null) { this.setRetentionPolicy(retentionPolicy) } + if (compressed != null) { + this.setCompressed(compressed) + } if (step != null) { this.setStep(step) } - if (token != null) { - this.setToken(token) + if (numThreads != null) { + this.setNumThreads(numThreads) } - if (uri != null) { - this.setUri(uri) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (userName != null) { - this.setUserName(userName) + if (readTimeout != null) { + this.setReadTimeout(readTimeout) + } + if (batchSize != null) { + this.setBatchSize(batchSize) + } + if (org != null) { + this.setOrg(org) + } + if (bucket != null) { + this.setBucket(bucket) + } + if (token != null) { + this.setToken(token) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxJmxMetricsOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxJmxMetricsOptions.kt index 6fb9ba36..ab0bfe8f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxJmxMetricsOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxJmxMetricsOptions.kt @@ -22,24 +22,24 @@ import io.vertx.micrometer.VertxJmxMetricsOptions * * Options for Prometheus metrics backend. * - * @param domain Set the JMX domain under which to publish metrics * @param enabled Set true to enable Prometheus reporting + * @param domain Set the JMX domain under which to publish metrics * @param step Push interval steps, in seconds. Default is 10 seconds. * *

* NOTE: This function has been automatically generated from the [io.vertx.micrometer.VertxJmxMetricsOptions original] using Vert.x codegen. */ fun vertxJmxMetricsOptionsOf( - domain: String? = null, enabled: Boolean? = null, + domain: String? = null, step: Int? = null): VertxJmxMetricsOptions = io.vertx.micrometer.VertxJmxMetricsOptions().apply { - if (domain != null) { - this.setDomain(domain) - } if (enabled != null) { this.setEnabled(enabled) } + if (domain != null) { + this.setDomain(domain) + } if (step != null) { this.setStep(step) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxPrometheusOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxPrometheusOptions.kt index c2ff223f..7aa8d994 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxPrometheusOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/micrometer/VertxPrometheusOptions.kt @@ -23,36 +23,36 @@ import io.vertx.core.http.HttpServerOptions * * Options for Prometheus metrics backend. * - * @param embeddedServerEndpoint Set metrics endpoint. Use conjointly with the embedded server options. Defaults to /metrics. - * @param embeddedServerOptions HTTP server options for the embedded server * @param enabled Set true to enable Prometheus reporting - * @param publishQuantiles Set true to publish histogram stats, necessary to compute quantiles. Note that it generates many new timeseries for stats, which is why it is deactivated by default. * @param startEmbeddedServer When true, an embedded server will init to expose metrics with Prometheus format. + * @param embeddedServerOptions HTTP server options for the embedded server + * @param embeddedServerEndpoint Set metrics endpoint. Use conjointly with the embedded server options. Defaults to /metrics. + * @param publishQuantiles Set true to publish histogram stats, necessary to compute quantiles. Note that it generates many new timeseries for stats, which is why it is deactivated by default. * *

* NOTE: This function has been automatically generated from the [io.vertx.micrometer.VertxPrometheusOptions original] using Vert.x codegen. */ fun vertxPrometheusOptionsOf( - embeddedServerEndpoint: String? = null, - embeddedServerOptions: io.vertx.core.http.HttpServerOptions? = null, enabled: Boolean? = null, - publishQuantiles: Boolean? = null, - startEmbeddedServer: Boolean? = null): VertxPrometheusOptions = io.vertx.micrometer.VertxPrometheusOptions().apply { + startEmbeddedServer: Boolean? = null, + embeddedServerOptions: io.vertx.core.http.HttpServerOptions? = null, + embeddedServerEndpoint: String? = null, + publishQuantiles: Boolean? = null): VertxPrometheusOptions = io.vertx.micrometer.VertxPrometheusOptions().apply { - if (embeddedServerEndpoint != null) { - this.setEmbeddedServerEndpoint(embeddedServerEndpoint) + if (enabled != null) { + this.setEnabled(enabled) + } + if (startEmbeddedServer != null) { + this.setStartEmbeddedServer(startEmbeddedServer) } if (embeddedServerOptions != null) { this.setEmbeddedServerOptions(embeddedServerOptions) } - if (enabled != null) { - this.setEnabled(enabled) + if (embeddedServerEndpoint != null) { + this.setEmbeddedServerEndpoint(embeddedServerEndpoint) } if (publishQuantiles != null) { this.setPublishQuantiles(publishQuantiles) } - if (startEmbeddedServer != null) { - this.setStartEmbeddedServer(startEmbeddedServer) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttClientOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttClientOptions.kt index 51d090e1..c4ddd6e3 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttClientOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttClientOptions.kt @@ -31,277 +31,247 @@ import java.util.concurrent.TimeUnit * * Represents options used by the MQTT client. * - * @param ackTimeout Sets the time in seconds after which the client will stop waiting for a PUBACK, PUBREC or PUBCOMP packet from the server in response to a packet it has sent.

The default value of this property is -1 which indicates that the client should wait an unlimited time for the server's acknowledgement. - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param autoAck Set to false to let the application code to ack the message via . If true, the ack (PUBACK/PUBCOMP) will be sent by vertx-mqtt before execution. (default is true) - * @param autoGeneratedClientId Set if the MQTT client must generate clientId automatically (default is true) - * @param autoKeepAlive Set if the MQTT client must handle PINGREQ automatically (default is true) - * @param cleanSession Set to start with a clean session (or not) - * @param clientId Set the client identifier - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String - * @param idleTimeout Do the same thing as [io.vertx.mqtt.MqttClientOptions] (int)}. Use it instead. - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keepAliveInterval Set the keep alive interval in seconds - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxInflightQueue Set max count of unacknowledged messages - * @param maxMessageSize Set max MQTT message size - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param password Set the password - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param sendBufferSize Set the TCP send buffer size * @param receiveBufferSize Set the TCP receive buffer size - * @param reconnectAttempts Set the value of reconnect attempts - * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. + * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled * @param soLinger Set whether SO_linger keep alive is enabled + * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. * @param ssl Set whether SSL/TLS is enabled + * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. + * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore + * @param pfxTrustOptions Set the trust options in pfx format + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param username Set the username + * @param connectTimeout Set the connect timeout + * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. + * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. + * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. + * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. + * @param reconnectAttempts Set the value of reconnect attempts + * @param reconnectInterval Set the reconnect interval + * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String + * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param cleanSession Set to start with a clean session (or not) * @param willFlag Set if will information are provided on connection - * @param willMessage Set the content of the will message - * @param willQoS Set the QoS level for the will message * @param willRetain Set if the will message must be retained + * @param willQoS Set the QoS level for the will message + * @param keepAliveInterval Set the keep alive interval in seconds + * @param username Set the username + * @param password Set the password + * @param clientId Set the client identifier * @param willTopic Set the topic on which the will message will be published - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param willMessage Set the content of the will message + * @param ackTimeout Sets the time in seconds after which the client will stop waiting for a PUBACK, PUBREC or PUBCOMP packet from the server in response to a packet it has sent.

The default value of this property is -1 which indicates that the client should wait an unlimited time for the server's acknowledgement. + * @param maxInflightQueue Set max count of unacknowledged messages + * @param autoKeepAlive Set if the MQTT client must handle PINGREQ automatically (default is true) + * @param autoGeneratedClientId Set if the MQTT client must generate clientId automatically (default is true) + * @param autoAck Set to false to let the application code to ack the message via . If true, the ack (PUBACK/PUBCOMP) will be sent by vertx-mqtt before execution. (default is true) + * @param maxMessageSize Set max MQTT message size + * @param keyCertOptions Set the key/cert options. * *

* NOTE: This function has been automatically generated from the [io.vertx.mqtt.MqttClientOptions original] using Vert.x codegen. */ fun mqttClientOptionsOf( - ackTimeout: Int? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - autoAck: Boolean? = null, - autoGeneratedClientId: Boolean? = null, - autoKeepAlive: Boolean? = null, - cleanSession: Boolean? = null, - clientId: String? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - hostnameVerificationAlgorithm: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keepAliveInterval: Int? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - maxInflightQueue: Int? = null, - maxMessageSize: Int? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - reconnectAttempts: Int? = null, - reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - username: String? = null, + connectTimeout: Int? = null, + metricsName: String? = null, + proxyOptions: io.vertx.core.net.ProxyOptions? = null, + nonProxyHosts: Iterable? = null, + localAddress: String? = null, + reconnectAttempts: Int? = null, + reconnectInterval: Long? = null, + hostnameVerificationAlgorithm: String? = null, + applicationLayerProtocols: Iterable? = null, + registerWriteHandler: Boolean? = null, + cleanSession: Boolean? = null, willFlag: Boolean? = null, - willMessage: String? = null, - willQoS: Int? = null, willRetain: Boolean? = null, + willQoS: Int? = null, + keepAliveInterval: Int? = null, + username: String? = null, + password: String? = null, + clientId: String? = null, willTopic: String? = null, - writeIdleTimeout: Int? = null): MqttClientOptions = io.vertx.mqtt.MqttClientOptions().apply { + willMessage: String? = null, + ackTimeout: Int? = null, + maxInflightQueue: Int? = null, + autoKeepAlive: Boolean? = null, + autoGeneratedClientId: Boolean? = null, + autoAck: Boolean? = null, + maxMessageSize: Int? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null): MqttClientOptions = io.vertx.mqtt.MqttClientOptions().apply { - if (ackTimeout != null) { - this.setAckTimeout(ackTimeout) - } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (autoAck != null) { - this.setAutoAck(autoAck) - } - if (autoGeneratedClientId != null) { - this.setAutoGeneratedClientId(autoGeneratedClientId) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (autoKeepAlive != null) { - this.setAutoKeepAlive(autoKeepAlive) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (cleanSession != null) { - this.setCleanSession(cleanSession) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (clientId != null) { - this.setClientId(clientId) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (reusePort != null) { + this.setReusePort(reusePort) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) } - if (keepAliveInterval != null) { - this.setKeepAliveInterval(keepAliveInterval) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxInflightQueue != null) { - this.setMaxInflightQueue(maxInflightQueue) - } - if (maxMessageSize != null) { - this.setMaxMessageSize(maxMessageSize) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) - } - if (password != null) { - this.setPassword(password) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (reconnectAttempts != null) { - this.setReconnectAttempts(reconnectAttempts) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (reconnectInterval != null) { - this.setReconnectInterval(reconnectInterval) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) + } + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -309,59 +279,89 @@ fun mqttClientOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (trustAll != null) { + this.setTrustAll(trustAll) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (connectTimeout != null) { + this.setConnectTimeout(connectTimeout) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (metricsName != null) { + this.setMetricsName(metricsName) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (proxyOptions != null) { + this.setProxyOptions(proxyOptions) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (nonProxyHosts != null) { + this.setNonProxyHosts(nonProxyHosts.toList()) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (localAddress != null) { + this.setLocalAddress(localAddress) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (reconnectAttempts != null) { + this.setReconnectAttempts(reconnectAttempts) } - if (trustAll != null) { - this.setTrustAll(trustAll) + if (reconnectInterval != null) { + this.setReconnectInterval(reconnectInterval) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (hostnameVerificationAlgorithm != null) { + this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (applicationLayerProtocols != null) { + this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (username != null) { - this.setUsername(username) + if (cleanSession != null) { + this.setCleanSession(cleanSession) } if (willFlag != null) { this.setWillFlag(willFlag) } - if (willMessage != null) { - this.setWillMessage(willMessage) + if (willRetain != null) { + this.setWillRetain(willRetain) } if (willQoS != null) { this.setWillQoS(willQoS) } - if (willRetain != null) { - this.setWillRetain(willRetain) + if (keepAliveInterval != null) { + this.setKeepAliveInterval(keepAliveInterval) + } + if (username != null) { + this.setUsername(username) + } + if (password != null) { + this.setPassword(password) + } + if (clientId != null) { + this.setClientId(clientId) } if (willTopic != null) { this.setWillTopic(willTopic) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (willMessage != null) { + this.setWillMessage(willMessage) + } + if (ackTimeout != null) { + this.setAckTimeout(ackTimeout) + } + if (maxInflightQueue != null) { + this.setMaxInflightQueue(maxInflightQueue) + } + if (autoKeepAlive != null) { + this.setAutoKeepAlive(autoKeepAlive) + } + if (autoGeneratedClientId != null) { + this.setAutoGeneratedClientId(autoGeneratedClientId) + } + if (autoAck != null) { + this.setAutoAck(autoAck) + } + if (maxMessageSize != null) { + this.setMaxMessageSize(maxMessageSize) + } + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttServerOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttServerOptions.kt index c6ec33f7..8eea064c 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttServerOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mqtt/MqttServerOptions.kt @@ -32,244 +32,235 @@ import java.util.concurrent.TimeUnit * * Represents options used by the MQTT server * - * @param acceptBacklog Set the accept back log + * @param sendBufferSize Set the TCP send buffer size + * @param receiveBufferSize Set the TCP receive buffer size + * @param reuseAddress Set the value of reuse address + * @param trafficClass Set the value of traffic class + * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param autoClientId Set if clientid should be auto-generated when it's "zero-bytes" - * @param clientAuth Set whether client auth is required - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. - * @param host Set the host + * @param reusePort Set the value of reuse port.

This is only supported by native transports. + * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpKeepAlive Set whether TCP keep alive is enabled + * @param soLinger Set whether SO_linger keep alive is enabled * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] + * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. + * @param ssl Set whether SSL/TLS is enabled * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param maxClientIdLength Set the max client id length. - * @param maxMessageSize Set max MQTT message size - * @param openSslEngineOptions - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param perFrameWebSocketCompressionSupported Enable or disable support for the WebSocket per-frame deflate compression extension. - * @param perMessageWebSocketCompressionSupported Enable or disable support for WebSocket per-message deflate compression extension. * @param pfxKeyCertOptions Set the key/cert options in pfx format. + * @param pemKeyCertOptions Set the key/cert store options in pem format. + * @param trustOptions Set the trust options. + * @param trustStoreOptions Set the trust options in jks format, aka Java truststore * @param pfxTrustOptions Set the trust options in pfx format - * @param port Set the port - * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. - * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] - * @param receiveBufferSize Set the TCP receive buffer size - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param sni Set whether the server supports Server Name Indiciation - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled + * @param pemTrustOptions Set the trust options in pem format + * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. + * @param crlPaths Add a CRL path + * @param crlValues Add a CRL value + * @param useAlpn Set the ALPN usage. * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. + * @param jdkSslEngineOptions + * @param openSslEngineOptions * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled + * @param tcpCork Enable the TCP_CORK option - only with linux native transport. * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param timeoutOnConnect Set the timeout on CONNECT packet - * @param trafficClass Set the value of traffic class + * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. + * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. + * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param acceptBacklog Set the accept back log + * @param port Set the port + * @param host Set the host + * @param clientAuth Set whether client auth is required + * @param sni Set whether the server supports Server Name Indiciation * @param trafficShapingOptions Set traffic shaping options. If not specified, traffic is unthrottled. - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. + * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. + * @param keyCertOptions Set the key/cert options. + * @param maxMessageSize Set max MQTT message size + * @param autoClientId Set if clientid should be auto-generated when it's "zero-bytes" + * @param maxClientIdLength Set the max client id length. + * @param timeoutOnConnect Set the timeout on CONNECT packet * @param useProxyProtocol Set whether the server uses the HA Proxy protocol + * @param proxyProtocolTimeout Set the Proxy protocol timeout, default time unit is seconds. + * @param proxyProtocolTimeoutUnit Set the Proxy protocol timeout unit. If not specified, default is seconds. * @param useWebSocket enable mqtt over websocket - * @param webSocketAllowServerNoContext Set whether the WebSocket server will accept the server_no_context_takeover parameter of the per-message deflate compression extension offered by the client. - * @param webSocketCompressionLevel Set the WebSocket compression level. * @param webSocketMaxFrameSize Set the WebSocket max frame size.

This should be used when WebSocket transport is used and [io.vertx.mqtt.MqttServerOptions] is larger than the WebSocket frame size + * @param perFrameWebSocketCompressionSupported Enable or disable support for the WebSocket per-frame deflate compression extension. + * @param perMessageWebSocketCompressionSupported Enable or disable support for WebSocket per-message deflate compression extension. + * @param webSocketCompressionLevel Set the WebSocket compression level. + * @param webSocketAllowServerNoContext Set whether the WebSocket server will accept the server_no_context_takeover parameter of the per-message deflate compression extension offered by the client. * @param webSocketPreferredClientNoContext Set whether the WebSocket server will accept the client_no_context_takeover parameter of the per-message deflate compression extension offered by the client. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetServerOptions] * *

* NOTE: This function has been automatically generated from the [io.vertx.mqtt.MqttServerOptions original] using Vert.x codegen. */ fun mqttServerOptionsOf( - acceptBacklog: Int? = null, + sendBufferSize: Int? = null, + receiveBufferSize: Int? = null, + reuseAddress: Boolean? = null, + trafficClass: Int? = null, + logActivity: Boolean? = null, activityLogDataFormat: ByteBufFormat? = null, - autoClientId: Boolean? = null, - clientAuth: ClientAuth? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - host: String? = null, + reusePort: Boolean? = null, + tcpNoDelay: Boolean? = null, + tcpKeepAlive: Boolean? = null, + soLinger: Int? = null, idleTimeout: Int? = null, + readIdleTimeout: Int? = null, + writeIdleTimeout: Int? = null, idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + ssl: Boolean? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, - logActivity: Boolean? = null, - maxClientIdLength: Int? = null, - maxMessageSize: Int? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - perFrameWebSocketCompressionSupported: Boolean? = null, - perMessageWebSocketCompressionSupported: Boolean? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, + pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, + trustOptions: io.vertx.core.net.TrustOptions? = null, + trustStoreOptions: io.vertx.core.net.JksOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - proxyProtocolTimeout: Long? = null, - proxyProtocolTimeoutUnit: TimeUnit? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - sni: Boolean? = null, - soLinger: Int? = null, - ssl: Boolean? = null, + pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, + enabledCipherSuites: Iterable? = null, + crlPaths: Iterable? = null, + crlValues: Iterable? = null, + useAlpn: Boolean? = null, sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, + jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, + openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, + tcpCork: Boolean? = null, tcpQuickAck: Boolean? = null, tcpUserTimeout: Int? = null, - timeoutOnConnect: Int? = null, - trafficClass: Int? = null, + enabledSecureTransportProtocols: Iterable? = null, + sslHandshakeTimeout: Long? = null, + sslHandshakeTimeoutUnit: TimeUnit? = null, + acceptBacklog: Int? = null, + port: Int? = null, + host: String? = null, + clientAuth: ClientAuth? = null, + sni: Boolean? = null, trafficShapingOptions: io.vertx.core.net.TrafficShapingOptions? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, + registerWriteHandler: Boolean? = null, + keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, + maxMessageSize: Int? = null, + autoClientId: Boolean? = null, + maxClientIdLength: Int? = null, + timeoutOnConnect: Int? = null, useProxyProtocol: Boolean? = null, + proxyProtocolTimeout: Long? = null, + proxyProtocolTimeoutUnit: TimeUnit? = null, useWebSocket: Boolean? = null, - webSocketAllowServerNoContext: Boolean? = null, - webSocketCompressionLevel: Int? = null, webSocketMaxFrameSize: Int? = null, - webSocketPreferredClientNoContext: Boolean? = null, - writeIdleTimeout: Int? = null): MqttServerOptions = io.vertx.mqtt.MqttServerOptions().apply { + perFrameWebSocketCompressionSupported: Boolean? = null, + perMessageWebSocketCompressionSupported: Boolean? = null, + webSocketCompressionLevel: Int? = null, + webSocketAllowServerNoContext: Boolean? = null, + webSocketPreferredClientNoContext: Boolean? = null): MqttServerOptions = io.vertx.mqtt.MqttServerOptions().apply { - if (acceptBacklog != null) { - this.setAcceptBacklog(acceptBacklog) + if (sendBufferSize != null) { + this.setSendBufferSize(sendBufferSize) } - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) + if (receiveBufferSize != null) { + this.setReceiveBufferSize(receiveBufferSize) } - if (autoClientId != null) { - this.setAutoClientId(autoClientId) + if (reuseAddress != null) { + this.setReuseAddress(reuseAddress) } - if (clientAuth != null) { - this.setClientAuth(clientAuth) + if (trafficClass != null) { + this.setTrafficClass(trafficClass) } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } + if (logActivity != null) { + this.setLogActivity(logActivity) } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } + if (activityLogDataFormat != null) { + this.setActivityLogDataFormat(activityLogDataFormat) } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (reusePort != null) { + this.setReusePort(reusePort) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (tcpNoDelay != null) { + this.setTcpNoDelay(tcpNoDelay) } - if (host != null) { - this.setHost(host) + if (tcpKeepAlive != null) { + this.setTcpKeepAlive(tcpKeepAlive) + } + if (soLinger != null) { + this.setSoLinger(soLinger) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } + if (readIdleTimeout != null) { + this.setReadIdleTimeout(readIdleTimeout) + } + if (writeIdleTimeout != null) { + this.setWriteIdleTimeout(writeIdleTimeout) + } if (idleTimeoutUnit != null) { this.setIdleTimeoutUnit(idleTimeoutUnit) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) + if (ssl != null) { + this.setSsl(ssl) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (maxClientIdLength != null) { - this.setMaxClientIdLength(maxClientIdLength) - } - if (maxMessageSize != null) { - this.setMaxMessageSize(maxMessageSize) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (pfxKeyCertOptions != null) { + this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (perFrameWebSocketCompressionSupported != null) { - this.setPerFrameWebSocketCompressionSupported(perFrameWebSocketCompressionSupported) - } - if (perMessageWebSocketCompressionSupported != null) { - this.setPerMessageWebSocketCompressionSupported(perMessageWebSocketCompressionSupported) + if (trustOptions != null) { + this.setTrustOptions(trustOptions) } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) + if (trustStoreOptions != null) { + this.setTrustStoreOptions(trustStoreOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } - if (port != null) { - this.setPort(port) + if (pemTrustOptions != null) { + this.setPemTrustOptions(pemTrustOptions) } - if (proxyProtocolTimeout != null) { - this.setProxyProtocolTimeout(proxyProtocolTimeout) + if (enabledCipherSuites != null) { + for (item in enabledCipherSuites) { + this.addEnabledCipherSuite(item) + } } - if (proxyProtocolTimeoutUnit != null) { - this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) + if (crlPaths != null) { + for (item in crlPaths) { + this.addCrlPath(item) + } } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) + if (crlValues != null) { + for (item in crlValues) { + this.addCrlValue(item) + } } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (useAlpn != null) { + this.setUseAlpn(useAlpn) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslEngineOptions != null) { + this.setSslEngineOptions(sslEngineOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) + if (jdkSslEngineOptions != null) { + this.setJdkSslEngineOptions(jdkSslEngineOptions) } - if (reusePort != null) { - this.setReusePort(reusePort) + if (openSslEngineOptions != null) { + this.setOpenSslEngineOptions(openSslEngineOptions) } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (tcpFastOpen != null) { + this.setTcpFastOpen(tcpFastOpen) } - if (sni != null) { - this.setSni(sni) + if (tcpCork != null) { + this.setTcpCork(tcpCork) } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (tcpQuickAck != null) { + this.setTcpQuickAck(tcpQuickAck) } - if (ssl != null) { - this.setSsl(ssl) + if (tcpUserTimeout != null) { + this.setTcpUserTimeout(tcpUserTimeout) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (enabledSecureTransportProtocols != null) { + this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) } if (sslHandshakeTimeout != null) { this.setSslHandshakeTimeout(sslHandshakeTimeout) @@ -277,62 +268,71 @@ fun mqttServerOptionsOf( if (sslHandshakeTimeoutUnit != null) { this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) + if (acceptBacklog != null) { + this.setAcceptBacklog(acceptBacklog) } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) + if (port != null) { + this.setPort(port) } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) + if (host != null) { + this.setHost(host) } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) + if (clientAuth != null) { + this.setClientAuth(clientAuth) } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) + if (sni != null) { + this.setSni(sni) } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) + if (trafficShapingOptions != null) { + this.setTrafficShapingOptions(trafficShapingOptions) } - if (timeoutOnConnect != null) { - this.setTimeoutOnConnect(timeoutOnConnect) + if (registerWriteHandler != null) { + this.setRegisterWriteHandler(registerWriteHandler) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) + if (keyCertOptions != null) { + this.setKeyCertOptions(keyCertOptions) } - if (trafficShapingOptions != null) { - this.setTrafficShapingOptions(trafficShapingOptions) + if (maxMessageSize != null) { + this.setMaxMessageSize(maxMessageSize) } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) + if (autoClientId != null) { + this.setAutoClientId(autoClientId) } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (maxClientIdLength != null) { + this.setMaxClientIdLength(maxClientIdLength) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (timeoutOnConnect != null) { + this.setTimeoutOnConnect(timeoutOnConnect) } if (useProxyProtocol != null) { this.setUseProxyProtocol(useProxyProtocol) } + if (proxyProtocolTimeout != null) { + this.setProxyProtocolTimeout(proxyProtocolTimeout) + } + if (proxyProtocolTimeoutUnit != null) { + this.setProxyProtocolTimeoutUnit(proxyProtocolTimeoutUnit) + } if (useWebSocket != null) { this.setUseWebSocket(useWebSocket) } - if (webSocketAllowServerNoContext != null) { - this.setWebSocketAllowServerNoContext(webSocketAllowServerNoContext) + if (webSocketMaxFrameSize != null) { + this.setWebSocketMaxFrameSize(webSocketMaxFrameSize) + } + if (perFrameWebSocketCompressionSupported != null) { + this.setPerFrameWebSocketCompressionSupported(perFrameWebSocketCompressionSupported) + } + if (perMessageWebSocketCompressionSupported != null) { + this.setPerMessageWebSocketCompressionSupported(perMessageWebSocketCompressionSupported) } if (webSocketCompressionLevel != null) { this.setWebSocketCompressionLevel(webSocketCompressionLevel) } - if (webSocketMaxFrameSize != null) { - this.setWebSocketMaxFrameSize(webSocketMaxFrameSize) + if (webSocketAllowServerNoContext != null) { + this.setWebSocketAllowServerNoContext(webSocketAllowServerNoContext) } if (webSocketPreferredClientNoContext != null) { this.setWebSocketPreferredClientNoContext(webSocketPreferredClientNoContext) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLConnectOptions.kt index 967831e5..50c47ba9 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLConnectOptions.kt @@ -16,260 +16,78 @@ package io.vertx.kotlin.mssqlclient import io.vertx.mssqlclient.MSSQLConnectOptions -import io.netty.handler.logging.ByteBufFormat -import io.vertx.core.net.JdkSSLEngineOptions -import io.vertx.core.net.JksOptions -import io.vertx.core.net.OpenSSLEngineOptions -import io.vertx.core.net.PemKeyCertOptions -import io.vertx.core.net.PemTrustOptions -import io.vertx.core.net.PfxOptions -import io.vertx.core.net.ProxyOptions +import io.vertx.core.net.ClientSSLOptions import io.vertx.core.tracing.TracingPolicy -import java.util.concurrent.TimeUnit /** * A function providing a DSL for building [io.vertx.mssqlclient.MSSQLConnectOptions] objects. * * Connect options for configuring [io.vertx.mssqlclient.MSSQLConnection]. * - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param cachePreparedStatements Set whether prepared statements cache should be enabled. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param database Specify the default database for the connection. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. * @param host Specify the host for connecting to the server. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String - * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.mssqlclient.MSSQLConnectOptions] - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param packetSize Set the desired size (in bytes) for TDS packets.

The client will use the value as a parameter in the LOGIN7 packet. The server may or may not accept it. - * @param password Specify the user password to be used for the authentication. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format * @param port Specify the port for connecting to the server. + * @param user Specify the user account to be used for the authentication. + * @param password Specify the user password to be used for the authentication. + * @param database Specify the default database for the connection. + * @param cachePreparedStatements Set whether prepared statements cache should be enabled. * @param preparedStatementCacheMaxSize Set the maximum number of prepared statements that the connection will cache. - * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.sqlclient.SqlConnectOptions]. * @param properties Set properties for this client, which will be sent to server at the connection start. - * @param propertys Add a property for this client, which will be sent to server at the connection start. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.mssqlclient.MSSQLConnectOptions] - * @param receiveBufferSize Set the TCP receive buffer size + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. * @param reconnectAttempts Set the value of reconnect attempts * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled + * @param sslOptions + * @param propertys Add a property for this client, which will be sent to server at the connection start. + * @param packetSize Set the desired size (in bytes) for TDS packets.

The client will use the value as a parameter in the LOGIN7 packet. The server may or may not accept it. * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param user Specify the user account to be used for the authentication. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.mssqlclient.MSSQLConnectOptions] + * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.mssqlclient.MSSQLConnectOptions]. * *

* NOTE: This function has been automatically generated from the [io.vertx.mssqlclient.MSSQLConnectOptions original] using Vert.x codegen. */ fun mssqlConnectOptionsOf( - activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - cachePreparedStatements: Boolean? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - database: String? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, host: String? = null, - hostnameVerificationAlgorithm: String? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - packetSize: Int? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, port: Int? = null, + user: String? = null, + password: String? = null, + database: String? = null, + cachePreparedStatements: Boolean? = null, preparedStatementCacheMaxSize: Int? = null, - preparedStatementCacheSqlLimit: Int? = null, properties: Map? = null, - propertys: Map? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, + sslOptions: io.vertx.core.net.ClientSSLOptions? = null, + propertys: Map? = null, + packetSize: Int? = null, ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - user: String? = null, - writeIdleTimeout: Int? = null): MSSQLConnectOptions = io.vertx.mssqlclient.MSSQLConnectOptions().apply { + preparedStatementCacheSqlLimit: Int? = null): MSSQLConnectOptions = io.vertx.mssqlclient.MSSQLConnectOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (cachePreparedStatements != null) { - this.setCachePreparedStatements(cachePreparedStatements) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (database != null) { - this.setDatabase(database) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } - } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) - } if (host != null) { this.setHost(host) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) - } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) - } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) - } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) - } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) - } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (port != null) { + this.setPort(port) } - if (packetSize != null) { - this.setPacketSize(packetSize) + if (user != null) { + this.setUser(user) } if (password != null) { this.setPassword(password) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) - } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) - } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (database != null) { + this.setDatabase(database) } - if (port != null) { - this.setPort(port) + if (cachePreparedStatements != null) { + this.setCachePreparedStatements(cachePreparedStatements) } if (preparedStatementCacheMaxSize != null) { this.setPreparedStatementCacheMaxSize(preparedStatementCacheMaxSize) } - if (preparedStatementCacheSqlLimit != null) { - this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) - } if (properties != null) { this.setProperties(properties) } - if (propertys != null) { - for (item in propertys) { - this.addProperty(item.key, item.value) - } - } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) @@ -277,74 +95,22 @@ fun mssqlConnectOptionsOf( if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) + if (sslOptions != null) { + this.setSslOptions(sslOptions) } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (propertys != null) { + for (item in propertys) { + this.addProperty(item.key, item.value) + } } - if (soLinger != null) { - this.setSoLinger(soLinger) + if (packetSize != null) { + this.setPacketSize(packetSize) } if (ssl != null) { this.setSsl(ssl) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) - } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) - } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) - } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) - } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) - } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) - } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) - } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) - } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trustAll != null) { - this.setTrustAll(trustAll) - } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) - } - if (user != null) { - this.setUser(user) - } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (preparedStatementCacheSqlLimit != null) { + this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLInfo.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLInfo.kt index 33505c82..ed4bf26f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLInfo.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mssqlclient/MSSQLInfo.kt @@ -22,46 +22,46 @@ import io.vertx.mssqlclient.MSSQLInfo * * An information message sent by the server to the client. * - * @param lineNumber - * @param message * @param number - * @param procedureName - * @param serverName - * @param severity * @param state + * @param severity + * @param message + * @param serverName + * @param procedureName + * @param lineNumber * *

* NOTE: This function has been automatically generated from the [io.vertx.mssqlclient.MSSQLInfo original] using Vert.x codegen. */ fun mssqlInfoOf( - lineNumber: Int? = null, - message: String? = null, number: Int? = null, - procedureName: String? = null, - serverName: String? = null, + state: Byte? = null, severity: Byte? = null, - state: Byte? = null): MSSQLInfo = io.vertx.mssqlclient.MSSQLInfo().apply { + message: String? = null, + serverName: String? = null, + procedureName: String? = null, + lineNumber: Int? = null): MSSQLInfo = io.vertx.mssqlclient.MSSQLInfo().apply { - if (lineNumber != null) { - this.setLineNumber(lineNumber) - } - if (message != null) { - this.setMessage(message) - } if (number != null) { this.setNumber(number) } - if (procedureName != null) { - this.setProcedureName(procedureName) + if (state != null) { + this.setState(state) + } + if (severity != null) { + this.setSeverity(severity) + } + if (message != null) { + this.setMessage(message) } if (serverName != null) { this.setServerName(serverName) } - if (severity != null) { - this.setSeverity(severity) + if (procedureName != null) { + this.setProcedureName(procedureName) } - if (state != null) { - this.setState(state) + if (lineNumber != null) { + this.setLineNumber(lineNumber) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLAuthOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLAuthOptions.kt index 28d276a3..ca101f67 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLAuthOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLAuthOptions.kt @@ -22,51 +22,51 @@ import io.vertx.mysqlclient.MySQLAuthOptions * * Authentication options for MySQL authentication which can be used for CHANGE_USER command. * - * @param charset Set the charset for the connection. - * @param collation Set the collation for the connection. - * @param database Specify the default database for the re-authentication. + * @param user Specify the user account to be used for the authentication. * @param password Specify the user password to be used for the authentication. + * @param database Specify the default database for the re-authentication. * @param properties Set connection attributes which will be sent to server at the re-authentication. + * @param collation Set the collation for the connection. + * @param charset Set the charset for the connection. * @param serverRsaPublicKeyPath Set the path of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication. * @param serverRsaPublicKeyValue Set the value of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication. - * @param user Specify the user account to be used for the authentication. * *

* NOTE: This function has been automatically generated from the [io.vertx.mysqlclient.MySQLAuthOptions original] using Vert.x codegen. */ fun mySQLAuthOptionsOf( - charset: String? = null, - collation: String? = null, - database: String? = null, + user: String? = null, password: String? = null, + database: String? = null, properties: Map? = null, + collation: String? = null, + charset: String? = null, serverRsaPublicKeyPath: String? = null, - serverRsaPublicKeyValue: io.vertx.core.buffer.Buffer? = null, - user: String? = null): MySQLAuthOptions = io.vertx.mysqlclient.MySQLAuthOptions().apply { + serverRsaPublicKeyValue: io.vertx.core.buffer.Buffer? = null): MySQLAuthOptions = io.vertx.mysqlclient.MySQLAuthOptions().apply { - if (charset != null) { - this.setCharset(charset) + if (user != null) { + this.setUser(user) } - if (collation != null) { - this.setCollation(collation) + if (password != null) { + this.setPassword(password) } if (database != null) { this.setDatabase(database) } - if (password != null) { - this.setPassword(password) - } if (properties != null) { this.setProperties(properties) } + if (collation != null) { + this.setCollation(collation) + } + if (charset != null) { + this.setCharset(charset) + } if (serverRsaPublicKeyPath != null) { this.setServerRsaPublicKeyPath(serverRsaPublicKeyPath) } if (serverRsaPublicKeyValue != null) { this.setServerRsaPublicKeyValue(serverRsaPublicKeyValue) } - if (user != null) { - this.setUser(user) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLConnectOptions.kt index c4308445..9ba3c743 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/mysqlclient/MySQLConnectOptions.kt @@ -16,283 +16,92 @@ package io.vertx.kotlin.mysqlclient import io.vertx.mysqlclient.MySQLConnectOptions -import io.netty.handler.logging.ByteBufFormat -import io.vertx.core.net.JdkSSLEngineOptions -import io.vertx.core.net.JksOptions -import io.vertx.core.net.OpenSSLEngineOptions -import io.vertx.core.net.PemKeyCertOptions -import io.vertx.core.net.PemTrustOptions -import io.vertx.core.net.PfxOptions -import io.vertx.core.net.ProxyOptions +import io.vertx.core.net.ClientSSLOptions import io.vertx.core.tracing.TracingPolicy import io.vertx.mysqlclient.MySQLAuthenticationPlugin import io.vertx.mysqlclient.SslMode -import java.util.concurrent.TimeUnit /** * A function providing a DSL for building [io.vertx.mysqlclient.MySQLConnectOptions] objects. * - * Connect options for configuring [io.vertx.mysqlclient.MySQLConnection] or [io.vertx.mysqlclient.MySQLPool]. + * Connect options for configuring [io.vertx.mysqlclient.MySQLConnection] or [io.vertx.mysqlclient.MySQLBuilder]. * - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param authenticationPlugin Set the default [io.vertx.mysqlclient.MySQLAuthenticationPlugin] for the client, the option will take effect at the connection start. - * @param cachePreparedStatements Set whether prepared statements cache should be enabled. - * @param characterEncoding Set the Java charset for encoding string values, this value is UTF-8 by default. - * @param charset Set the charset for the connection. - * @param collation Set the collation for the connection. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param database Specify the default database for the connection. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. * @param host Specify the host for connecting to the server. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String - * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.mysqlclient.MySQLConnectOptions] - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param password Specify the user password to be used for the authentication. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format - * @param pipeliningLimit Set the pipelining limit count. * @param port Specify the port for connecting to the server. + * @param user Specify the user account to be used for the authentication. + * @param password Specify the user password to be used for the authentication. + * @param database Specify the default database for the connection. + * @param cachePreparedStatements Set whether prepared statements cache should be enabled. * @param preparedStatementCacheMaxSize Set the maximum number of prepared statements that the connection will cache. - * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.mysqlclient.MySQLConnectOptions]. * @param properties Set properties for this client, which will be sent to server at the connection start. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.mysqlclient.MySQLConnectOptions] - * @param receiveBufferSize Set the TCP receive buffer size + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. * @param reconnectAttempts Set the value of reconnect attempts * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size + * @param sslOptions + * @param collation Set the collation for the connection. + * @param charset Set the charset for the connection. + * @param characterEncoding Set the Java charset for encoding string values, this value is UTF-8 by default. + * @param useAffectedRows Sets how affected rows are calculated on update/delete/insert, if set to true an update that effectively does not change any data returns zero affected rows. See mysql-affected-rows for details. + * @param sslMode Set the [io.vertx.mysqlclient.SslMode] for the client, this option can be used to specify the desired security state of the connection to the server. + * @param authenticationPlugin Set the default [io.vertx.mysqlclient.MySQLAuthenticationPlugin] for the client, the option will take effect at the connection start. * @param serverRsaPublicKeyPath Set the path of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication. * @param serverRsaPublicKeyValue Set the value of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication. - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param sslMode Set the [io.vertx.mysqlclient.SslMode] for the client, this option can be used to specify the desired security state of the connection to the server. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAffectedRows Sets how affected rows are calculated on update/delete/insert, if set to true an update that effectively does not change any data returns zero affected rows. See mysql-affected-rows for details. - * @param useAlpn Set the ALPN usage. - * @param user Specify the user account to be used for the authentication. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.mysqlclient.MySQLConnectOptions] + * @param pipeliningLimit Set the pipelining limit count. + * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.mysqlclient.MySQLConnectOptions]. * *

* NOTE: This function has been automatically generated from the [io.vertx.mysqlclient.MySQLConnectOptions original] using Vert.x codegen. */ fun mySQLConnectOptionsOf( - activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - authenticationPlugin: MySQLAuthenticationPlugin? = null, - cachePreparedStatements: Boolean? = null, - characterEncoding: String? = null, - charset: String? = null, - collation: String? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - database: String? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, host: String? = null, - hostnameVerificationAlgorithm: String? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - pipeliningLimit: Int? = null, port: Int? = null, + user: String? = null, + password: String? = null, + database: String? = null, + cachePreparedStatements: Boolean? = null, preparedStatementCacheMaxSize: Int? = null, - preparedStatementCacheSqlLimit: Int? = null, properties: Map? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, + sslOptions: io.vertx.core.net.ClientSSLOptions? = null, + collation: String? = null, + charset: String? = null, + characterEncoding: String? = null, + useAffectedRows: Boolean? = null, + sslMode: SslMode? = null, + authenticationPlugin: MySQLAuthenticationPlugin? = null, serverRsaPublicKeyPath: String? = null, serverRsaPublicKeyValue: io.vertx.core.buffer.Buffer? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - sslMode: SslMode? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAffectedRows: Boolean? = null, - useAlpn: Boolean? = null, - user: String? = null, - writeIdleTimeout: Int? = null): MySQLConnectOptions = io.vertx.mysqlclient.MySQLConnectOptions().apply { + pipeliningLimit: Int? = null, + preparedStatementCacheSqlLimit: Int? = null): MySQLConnectOptions = io.vertx.mysqlclient.MySQLConnectOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (authenticationPlugin != null) { - this.setAuthenticationPlugin(authenticationPlugin) - } - if (cachePreparedStatements != null) { - this.setCachePreparedStatements(cachePreparedStatements) - } - if (characterEncoding != null) { - this.setCharacterEncoding(characterEncoding) - } - if (charset != null) { - this.setCharset(charset) - } - if (collation != null) { - this.setCollation(collation) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (database != null) { - this.setDatabase(database) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } - } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) - } if (host != null) { this.setHost(host) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) - } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) - } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) - } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) - } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (port != null) { + this.setPort(port) } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (user != null) { + this.setUser(user) } if (password != null) { this.setPassword(password) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) - } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) - } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) - } - if (pipeliningLimit != null) { - this.setPipeliningLimit(pipeliningLimit) + if (database != null) { + this.setDatabase(database) } - if (port != null) { - this.setPort(port) + if (cachePreparedStatements != null) { + this.setCachePreparedStatements(cachePreparedStatements) } if (preparedStatementCacheMaxSize != null) { this.setPreparedStatementCacheMaxSize(preparedStatementCacheMaxSize) } - if (preparedStatementCacheSqlLimit != null) { - this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) - } if (properties != null) { this.setProperties(properties) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) @@ -300,86 +109,38 @@ fun mySQLConnectOptionsOf( if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (sslOptions != null) { + this.setSslOptions(sslOptions) } - if (serverRsaPublicKeyPath != null) { - this.setServerRsaPublicKeyPath(serverRsaPublicKeyPath) - } - if (serverRsaPublicKeyValue != null) { - this.setServerRsaPublicKeyValue(serverRsaPublicKeyValue) - } - if (soLinger != null) { - this.setSoLinger(soLinger) - } - if (ssl != null) { - this.setSsl(ssl) + if (collation != null) { + this.setCollation(collation) } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) + if (charset != null) { + this.setCharset(charset) } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (characterEncoding != null) { + this.setCharacterEncoding(characterEncoding) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (useAffectedRows != null) { + this.setUseAffectedRows(useAffectedRows) } if (sslMode != null) { this.setSslMode(sslMode) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) - } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) - } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) - } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) - } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) - } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trustAll != null) { - this.setTrustAll(trustAll) - } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) + if (authenticationPlugin != null) { + this.setAuthenticationPlugin(authenticationPlugin) } - if (useAffectedRows != null) { - this.setUseAffectedRows(useAffectedRows) + if (serverRsaPublicKeyPath != null) { + this.setServerRsaPublicKeyPath(serverRsaPublicKeyPath) } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) + if (serverRsaPublicKeyValue != null) { + this.setServerRsaPublicKeyValue(serverRsaPublicKeyValue) } - if (user != null) { - this.setUser(user) + if (pipeliningLimit != null) { + this.setPipeliningLimit(pipeliningLimit) } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (preparedStatementCacheSqlLimit != null) { + this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/oracleclient/OracleConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/oracleclient/OracleConnectOptions.kt index e6e73390..b3c43d3f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/oracleclient/OracleConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/oracleclient/OracleConnectOptions.kt @@ -16,173 +16,76 @@ package io.vertx.kotlin.oracleclient import io.vertx.oracleclient.OracleConnectOptions -import io.netty.handler.logging.ByteBufFormat -import io.vertx.core.net.JdkSSLEngineOptions -import io.vertx.core.net.JksOptions -import io.vertx.core.net.OpenSSLEngineOptions -import io.vertx.core.net.PemKeyCertOptions -import io.vertx.core.net.PemTrustOptions -import io.vertx.core.net.PfxOptions -import io.vertx.core.net.ProxyOptions +import io.vertx.core.net.ClientSSLOptions import io.vertx.core.tracing.TracingPolicy import io.vertx.oracleclient.ServerMode -import java.util.concurrent.TimeUnit fun oracleConnectOptionsOf( - activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - cachePreparedStatements: Boolean? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - database: String? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, - host: String? = null, - hostnameVerificationAlgorithm: String? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - instanceName: String? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - port: Int? = null, - preparedStatementCacheMaxSize: Int? = null, - preparedStatementCacheSqlLimit: Int? = null, - properties: Map? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - serverMode: ServerMode? = null, + sslOptions: io.vertx.core.net.ClientSSLOptions? = null, serviceId: String? = null, serviceName: String? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - tnsAdmin: String? = null, + serverMode: ServerMode? = null, + instanceName: String? = null, tnsAlias: String? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, + tnsAdmin: String? = null, + host: String? = null, + port: Int? = null, user: String? = null, - writeIdleTimeout: Int? = null): OracleConnectOptions = io.vertx.oracleclient.OracleConnectOptions().apply { + password: String? = null, + database: String? = null, + cachePreparedStatements: Boolean? = null, + preparedStatementCacheMaxSize: Int? = null, + preparedStatementCacheSqlLimit: Int? = null, + properties: Map? = null, + tracingPolicy: TracingPolicy? = null, + ssl: Boolean? = null): OracleConnectOptions = io.vertx.oracleclient.OracleConnectOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (cachePreparedStatements != null) { - this.setCachePreparedStatements(cachePreparedStatements) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (database != null) { - this.setDatabase(database) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } + if (reconnectAttempts != null) { + this.setReconnectAttempts(reconnectAttempts) } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) + if (reconnectInterval != null) { + this.setReconnectInterval(reconnectInterval) } - if (host != null) { - this.setHost(host) + if (sslOptions != null) { + this.setSslOptions(sslOptions) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) + if (serviceId != null) { + this.setServiceId(serviceId) } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) + if (serviceName != null) { + this.setServiceName(serviceName) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) + if (serverMode != null) { + this.setServerMode(serverMode) } if (instanceName != null) { this.setInstanceName(instanceName) } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) - } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) - } - if (localAddress != null) { - this.setLocalAddress(localAddress) + if (tnsAlias != null) { + this.setTnsAlias(tnsAlias) } - if (logActivity != null) { - this.setLogActivity(logActivity) + if (tnsAdmin != null) { + this.setTnsAdmin(tnsAdmin) } - if (metricsName != null) { - this.setMetricsName(metricsName) + if (host != null) { + this.setHost(host) } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (port != null) { + this.setPort(port) } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (user != null) { + this.setUser(user) } if (password != null) { this.setPassword(password) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) - } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) - } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (database != null) { + this.setDatabase(database) } - if (port != null) { - this.setPort(port) + if (cachePreparedStatements != null) { + this.setCachePreparedStatements(cachePreparedStatements) } if (preparedStatementCacheMaxSize != null) { this.setPreparedStatementCacheMaxSize(preparedStatementCacheMaxSize) @@ -193,104 +96,11 @@ fun oracleConnectOptionsOf( if (properties != null) { this.setProperties(properties) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) - } - if (reconnectAttempts != null) { - this.setReconnectAttempts(reconnectAttempts) - } - if (reconnectInterval != null) { - this.setReconnectInterval(reconnectInterval) - } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) - } - if (serverMode != null) { - this.setServerMode(serverMode) - } - if (serviceId != null) { - this.setServiceId(serviceId) - } - if (serviceName != null) { - this.setServiceName(serviceName) - } - if (soLinger != null) { - this.setSoLinger(soLinger) - } - if (ssl != null) { - this.setSsl(ssl) - } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) - } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) - } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) - } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) - } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) - } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) - } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) - } - if (tnsAdmin != null) { - this.setTnsAdmin(tnsAdmin) - } - if (tnsAlias != null) { - this.setTnsAlias(tnsAlias) - } if (tracingPolicy != null) { this.setTracingPolicy(tracingPolicy) } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trustAll != null) { - this.setTrustAll(trustAll) - } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) - } - if (user != null) { - this.setUser(user) - } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (ssl != null) { + this.setSsl(ssl) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgConnectOptions.kt index a750b1dd..6a6cc2ac 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgConnectOptions.kt @@ -16,257 +16,78 @@ package io.vertx.kotlin.pgclient import io.vertx.pgclient.PgConnectOptions -import io.netty.handler.logging.ByteBufFormat -import io.vertx.core.net.JdkSSLEngineOptions -import io.vertx.core.net.JksOptions -import io.vertx.core.net.OpenSSLEngineOptions -import io.vertx.core.net.PemKeyCertOptions -import io.vertx.core.net.PemTrustOptions -import io.vertx.core.net.PfxOptions -import io.vertx.core.net.ProxyOptions +import io.vertx.core.net.ClientSSLOptions import io.vertx.core.tracing.TracingPolicy import io.vertx.pgclient.SslMode -import java.util.concurrent.TimeUnit /** * A function providing a DSL for building [io.vertx.pgclient.PgConnectOptions] objects. * * - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param cachePreparedStatements Set whether prepared statements cache should be enabled. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param database Specify the default database for the connection. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. * @param host Specify the host for connecting to the server. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String - * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.pgclient.PgConnectOptions] - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param password Specify the user password to be used for the authentication. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format - * @param pipeliningLimit * @param port Specify the port for connecting to the server. + * @param user Specify the user account to be used for the authentication. + * @param password Specify the user password to be used for the authentication. + * @param database Specify the default database for the connection. + * @param cachePreparedStatements Set whether prepared statements cache should be enabled. * @param preparedStatementCacheMaxSize Set the maximum number of prepared statements that the connection will cache. - * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.pgclient.PgConnectOptions]. * @param properties Set properties for this client, which will be sent to server at the connection start. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.pgclient.PgConnectOptions] - * @param receiveBufferSize Set the TCP receive buffer size + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. * @param reconnectAttempts Set the value of reconnect attempts * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. + * @param sslOptions + * @param pipeliningLimit + * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.pgclient.PgConnectOptions]. * @param sslMode Set [io.vertx.pgclient.SslMode] for the client, this option can be used to provide different levels of secure protection. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. * @param useLayer7Proxy Set the client to use a layer 7 (application) proxy compatible protocol, set to true when the client interacts with a layer 7 proxy like PgBouncer instead of a server. Prepared statement caching must be disabled. - * @param user Specify the user account to be used for the authentication. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.pgclient.PgConnectOptions] * *

* NOTE: This function has been automatically generated from the [io.vertx.pgclient.PgConnectOptions original] using Vert.x codegen. */ fun pgConnectOptionsOf( - activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - cachePreparedStatements: Boolean? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - database: String? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, host: String? = null, - hostnameVerificationAlgorithm: String? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, - pipeliningLimit: Int? = null, port: Int? = null, + user: String? = null, + password: String? = null, + database: String? = null, + cachePreparedStatements: Boolean? = null, preparedStatementCacheMaxSize: Int? = null, - preparedStatementCacheSqlLimit: Int? = null, properties: Map? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, + sslOptions: io.vertx.core.net.ClientSSLOptions? = null, + pipeliningLimit: Int? = null, + preparedStatementCacheSqlLimit: Int? = null, sslMode: SslMode? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - useLayer7Proxy: Boolean? = null, - user: String? = null, - writeIdleTimeout: Int? = null): PgConnectOptions = io.vertx.pgclient.PgConnectOptions().apply { + useLayer7Proxy: Boolean? = null): PgConnectOptions = io.vertx.pgclient.PgConnectOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (cachePreparedStatements != null) { - this.setCachePreparedStatements(cachePreparedStatements) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (database != null) { - this.setDatabase(database) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } - } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) - } if (host != null) { this.setHost(host) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) - } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) - } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) - } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) - } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (port != null) { + this.setPort(port) } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (user != null) { + this.setUser(user) } if (password != null) { this.setPassword(password) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) - } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) - } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) - } - if (pipeliningLimit != null) { - this.setPipeliningLimit(pipeliningLimit) + if (database != null) { + this.setDatabase(database) } - if (port != null) { - this.setPort(port) + if (cachePreparedStatements != null) { + this.setCachePreparedStatements(cachePreparedStatements) } if (preparedStatementCacheMaxSize != null) { this.setPreparedStatementCacheMaxSize(preparedStatementCacheMaxSize) } - if (preparedStatementCacheSqlLimit != null) { - this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) - } if (properties != null) { this.setProperties(properties) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) @@ -274,80 +95,20 @@ fun pgConnectOptionsOf( if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) + if (sslOptions != null) { + this.setSslOptions(sslOptions) } - if (soLinger != null) { - this.setSoLinger(soLinger) - } - if (ssl != null) { - this.setSsl(ssl) - } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) - } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) + if (pipeliningLimit != null) { + this.setPipeliningLimit(pipeliningLimit) } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) + if (preparedStatementCacheSqlLimit != null) { + this.setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit) } if (sslMode != null) { this.setSslMode(sslMode) } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) - } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) - } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) - } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) - } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) - } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trustAll != null) { - this.setTrustAll(trustAll) - } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) - } if (useLayer7Proxy != null) { this.setUseLayer7Proxy(useLayer7Proxy) } - if (user != null) { - this.setUser(user) - } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotice.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotice.kt index 76e7ab26..aab116a4 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotice.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotice.kt @@ -22,81 +22,78 @@ import io.vertx.pgclient.PgNotice * * A notification emited by Postgres. * + * @param severity * @param code - * @param column - * @param constraint - * @param dataType + * @param message * @param detail - * @param file * @param hint + * @param position * @param internalPosition * @param internalQuery + * @param where + * @param file * @param line - * @param message - * @param position * @param routine * @param schema - * @param severity * @param table - * @param where + * @param column + * @param dataType + * @param constraint * *

* NOTE: This function has been automatically generated from the [io.vertx.pgclient.PgNotice original] using Vert.x codegen. */ fun pgNoticeOf( + severity: String? = null, code: String? = null, - column: String? = null, - constraint: String? = null, - dataType: String? = null, + message: String? = null, detail: String? = null, - file: String? = null, hint: String? = null, + position: String? = null, internalPosition: String? = null, internalQuery: String? = null, + where: String? = null, + file: String? = null, line: String? = null, - message: String? = null, - position: String? = null, routine: String? = null, schema: String? = null, - severity: String? = null, table: String? = null, - where: String? = null): PgNotice = io.vertx.pgclient.PgNotice().apply { + column: String? = null, + dataType: String? = null, + constraint: String? = null): PgNotice = io.vertx.pgclient.PgNotice().apply { + if (severity != null) { + this.setSeverity(severity) + } if (code != null) { this.setCode(code) } - if (column != null) { - this.setColumn(column) - } - if (constraint != null) { - this.setConstraint(constraint) - } - if (dataType != null) { - this.setDataType(dataType) + if (message != null) { + this.setMessage(message) } if (detail != null) { this.setDetail(detail) } - if (file != null) { - this.setFile(file) - } if (hint != null) { this.setHint(hint) } + if (position != null) { + this.setPosition(position) + } if (internalPosition != null) { this.setInternalPosition(internalPosition) } if (internalQuery != null) { this.setInternalQuery(internalQuery) } - if (line != null) { - this.setLine(line) + if (where != null) { + this.setWhere(where) } - if (message != null) { - this.setMessage(message) + if (file != null) { + this.setFile(file) } - if (position != null) { - this.setPosition(position) + if (line != null) { + this.setLine(line) } if (routine != null) { this.setRoutine(routine) @@ -104,14 +101,17 @@ fun pgNoticeOf( if (schema != null) { this.setSchema(schema) } - if (severity != null) { - this.setSeverity(severity) - } if (table != null) { this.setTable(table) } - if (where != null) { - this.setWhere(where) + if (column != null) { + this.setColumn(column) + } + if (dataType != null) { + this.setDataType(dataType) + } + if (constraint != null) { + this.setConstraint(constraint) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotification.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotification.kt index b0cf20fb..9a1e44d6 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotification.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/pgclient/PgNotification.kt @@ -22,26 +22,26 @@ import io.vertx.pgclient.PgNotification * * A notification emited by Postgres. * + * @param processId Set the process id. * @param channel Set the channel value. * @param payload Set the payload value. - * @param processId Set the process id. * *

* NOTE: This function has been automatically generated from the [io.vertx.pgclient.PgNotification original] using Vert.x codegen. */ fun pgNotificationOf( + processId: Int? = null, channel: String? = null, - payload: String? = null, - processId: Int? = null): PgNotification = io.vertx.pgclient.PgNotification().apply { + payload: String? = null): PgNotification = io.vertx.pgclient.PgNotification().apply { + if (processId != null) { + this.setProcessId(processId) + } if (channel != null) { this.setChannel(channel) } if (payload != null) { this.setPayload(payload) } - if (processId != null) { - this.setProcessId(processId) - } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/PoolOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/PoolOptions.kt index 95dbead6..2c182908 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/PoolOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/PoolOptions.kt @@ -18,12 +18,15 @@ package io.vertx.kotlin.redis.client import io.vertx.redis.client.PoolOptions fun poolOptionsOf( + name: String? = null, cleanerInterval: Int? = null, maxSize: Int? = null, maxWaiting: Int? = null, - name: String? = null, recycleTimeout: Int? = null): PoolOptions = io.vertx.redis.client.PoolOptions().apply { + if (name != null) { + this.setName(name) + } if (cleanerInterval != null) { this.setCleanerInterval(cleanerInterval) } @@ -33,9 +36,6 @@ fun poolOptionsOf( if (maxWaiting != null) { this.setMaxWaiting(maxWaiting) } - if (name != null) { - this.setName(name) - } if (recycleTimeout != null) { this.setRecycleTimeout(recycleTimeout) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisClusterConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisClusterConnectOptions.kt index 06e5bfb2..4da27ad4 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisClusterConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisClusterConnectOptions.kt @@ -19,40 +19,40 @@ import io.vertx.redis.client.RedisClusterConnectOptions import io.vertx.redis.client.RedisReplicas fun redisClusterConnectOptionsOf( - connectionString: String? = null, - connectionStrings: Iterable? = null, - endpoints: Iterable? = null, maxNestedArrays: Int? = null, - maxWaitingHandlers: Int? = null, - password: String? = null, protocolNegotiation: Boolean? = null, - useReplicas: RedisReplicas? = null): RedisClusterConnectOptions = io.vertx.redis.client.RedisClusterConnectOptions().apply { + password: String? = null, + endpoints: Iterable? = null, + connectionStrings: Iterable? = null, + maxWaitingHandlers: Int? = null, + useReplicas: RedisReplicas? = null, + connectionString: String? = null): RedisClusterConnectOptions = io.vertx.redis.client.RedisClusterConnectOptions().apply { - if (connectionString != null) { - this.setConnectionString(connectionString) + if (maxNestedArrays != null) { + this.setMaxNestedArrays(maxNestedArrays) } - if (connectionStrings != null) { - for (item in connectionStrings) { - this.addConnectionString(item) - } + if (protocolNegotiation != null) { + this.setProtocolNegotiation(protocolNegotiation) + } + if (password != null) { + this.setPassword(password) } if (endpoints != null) { this.setEndpoints(endpoints.toList()) } - if (maxNestedArrays != null) { - this.setMaxNestedArrays(maxNestedArrays) + if (connectionStrings != null) { + for (item in connectionStrings) { + this.addConnectionString(item) + } } if (maxWaitingHandlers != null) { this.setMaxWaitingHandlers(maxWaitingHandlers) } - if (password != null) { - this.setPassword(password) - } - if (protocolNegotiation != null) { - this.setProtocolNegotiation(protocolNegotiation) - } if (useReplicas != null) { this.setUseReplicas(useReplicas) } + if (connectionString != null) { + this.setConnectionString(connectionString) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisOptions.kt index 895910bf..15a3d477 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisOptions.kt @@ -27,108 +27,108 @@ import io.vertx.redis.client.RedisRole * * Redis Client Configuration options. * - * @param connectionString Sets a single connection string (endpoint) to use while connecting to the redis server. Will replace the previously configured connection strings. - * @param connectionStrings Adds a connection string (endpoint) to use while connecting to the redis server. Only the cluster mode will consider more than 1 element. If more are provided, they are not considered by the client when in single server mode. - * @param endpoint Sets a single connection string to use while connecting to the redis server. Will replace the previously configured connection strings. + * @param type Set the desired client type to be created. + * @param netClientOptions Set the net client options to be used while connecting to the redis server. Use this to tune your connection. * @param endpoints Set the endpoints to use while connecting to the redis server. Only the cluster mode will consider more than 1 element. If more are provided, they are not considered by the client when in single server mode. + * @param endpoint Sets a single connection string to use while connecting to the redis server. Will replace the previously configured connection strings. + * @param connectionStrings Adds a connection string (endpoint) to use while connecting to the redis server. Only the cluster mode will consider more than 1 element. If more are provided, they are not considered by the client when in single server mode. + * @param connectionString Sets a single connection string (endpoint) to use while connecting to the redis server. Will replace the previously configured connection strings. + * @param maxWaitingHandlers The client will always work on pipeline mode, this means that messages can start queueing. You can control how much backlog you're willing to accept. This methods sets how much handlers is the client willing to queue. * @param masterName Set the master name (only considered in HA mode). + * @param role Set the role name (only considered in HA mode). + * @param useReplicas Set whether or not to use replica nodes (only considered in Cluster mode). * @param maxNestedArrays Tune how much nested arrays are allowed on a redis response. This affects the parser performance. + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. + * @param poolCleanerInterval Tune how often in milliseconds should the connection pool cleaner execute.

For each connection in the pool, connections marked as invalid will be forcibly closed. A connection is marked invalid if it enters a exception or fatal state. * @param maxPoolSize Tune the maximum size of the connection pool. When working with cluster or sentinel this value should be atleast the total number of cluster member (or number of sentinels + 1) * @param maxPoolWaiting Tune the maximum waiting requests for a connection from the pool. - * @param maxWaitingHandlers The client will always work on pipeline mode, this means that messages can start queueing. You can control how much backlog you're willing to accept. This methods sets how much handlers is the client willing to queue. - * @param netClientOptions Set the net client options to be used while connecting to the redis server. Use this to tune your connection. - * @param password Set the default password for cluster/sentinel connections. - * @param poolCleanerInterval Tune how often in milliseconds should the connection pool cleaner execute.

For each connection in the pool, connections marked as invalid will be forcibly closed. A connection is marked invalid if it enters a exception or fatal state. - * @param poolName Set a user defined pool name (for metrics reporting). * @param poolRecycleTimeout Tune when a connection should be recycled in milliseconds. + * @param password Set the default password for cluster/sentinel connections. * @param protocolNegotiation Should the client perform REST protocol negotiation during the connection acquire. By default this is true, but there are situations when using broken servers it may be useful to skip this and always fallback to RESP2 without using the HELLO command. - * @param role Set the role name (only considered in HA mode). - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param type Set the desired client type to be created. - * @param useReplicas Set whether or not to use replica nodes (only considered in Cluster mode). + * @param poolName Set a user defined pool name (for metrics reporting). * *

* NOTE: This function has been automatically generated from the [io.vertx.redis.client.RedisOptions original] using Vert.x codegen. */ fun redisOptionsOf( - connectionString: String? = null, - connectionStrings: Iterable? = null, - endpoint: String? = null, + type: RedisClientType? = null, + netClientOptions: io.vertx.core.net.NetClientOptions? = null, endpoints: Iterable? = null, + endpoint: String? = null, + connectionStrings: Iterable? = null, + connectionString: String? = null, + maxWaitingHandlers: Int? = null, masterName: String? = null, + role: RedisRole? = null, + useReplicas: RedisReplicas? = null, maxNestedArrays: Int? = null, + tracingPolicy: TracingPolicy? = null, + poolCleanerInterval: Int? = null, maxPoolSize: Int? = null, maxPoolWaiting: Int? = null, - maxWaitingHandlers: Int? = null, - netClientOptions: io.vertx.core.net.NetClientOptions? = null, - password: String? = null, - poolCleanerInterval: Int? = null, - poolName: String? = null, poolRecycleTimeout: Int? = null, + password: String? = null, protocolNegotiation: Boolean? = null, - role: RedisRole? = null, - tracingPolicy: TracingPolicy? = null, - type: RedisClientType? = null, - useReplicas: RedisReplicas? = null): RedisOptions = io.vertx.redis.client.RedisOptions().apply { + poolName: String? = null): RedisOptions = io.vertx.redis.client.RedisOptions().apply { - if (connectionString != null) { - this.setConnectionString(connectionString) + if (type != null) { + this.setType(type) + } + if (netClientOptions != null) { + this.setNetClientOptions(netClientOptions) + } + if (endpoints != null) { + this.setEndpoints(endpoints.toList()) + } + if (endpoint != null) { + this.setEndpoint(endpoint) } if (connectionStrings != null) { for (item in connectionStrings) { this.addConnectionString(item) } } - if (endpoint != null) { - this.setEndpoint(endpoint) + if (connectionString != null) { + this.setConnectionString(connectionString) } - if (endpoints != null) { - this.setEndpoints(endpoints.toList()) + if (maxWaitingHandlers != null) { + this.setMaxWaitingHandlers(maxWaitingHandlers) } if (masterName != null) { this.setMasterName(masterName) } + if (role != null) { + this.setRole(role) + } + if (useReplicas != null) { + this.setUseReplicas(useReplicas) + } if (maxNestedArrays != null) { this.setMaxNestedArrays(maxNestedArrays) } + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) + } + if (poolCleanerInterval != null) { + this.setPoolCleanerInterval(poolCleanerInterval) + } if (maxPoolSize != null) { this.setMaxPoolSize(maxPoolSize) } if (maxPoolWaiting != null) { this.setMaxPoolWaiting(maxPoolWaiting) } - if (maxWaitingHandlers != null) { - this.setMaxWaitingHandlers(maxWaitingHandlers) - } - if (netClientOptions != null) { - this.setNetClientOptions(netClientOptions) + if (poolRecycleTimeout != null) { + this.setPoolRecycleTimeout(poolRecycleTimeout) } if (password != null) { this.setPassword(password) } - if (poolCleanerInterval != null) { - this.setPoolCleanerInterval(poolCleanerInterval) - } - if (poolName != null) { - this.setPoolName(poolName) - } - if (poolRecycleTimeout != null) { - this.setPoolRecycleTimeout(poolRecycleTimeout) - } if (protocolNegotiation != null) { this.setProtocolNegotiation(protocolNegotiation) } - if (role != null) { - this.setRole(role) - } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) - } - if (type != null) { - this.setType(type) - } - if (useReplicas != null) { - this.setUseReplicas(useReplicas) + if (poolName != null) { + this.setPoolName(poolName) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisSentinelConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisSentinelConnectOptions.kt index fb7fee12..77f83eb0 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisSentinelConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisSentinelConnectOptions.kt @@ -19,44 +19,44 @@ import io.vertx.redis.client.RedisSentinelConnectOptions import io.vertx.redis.client.RedisRole fun redisSentinelConnectOptionsOf( - connectionString: String? = null, - connectionStrings: Iterable? = null, - endpoints: Iterable? = null, - masterName: String? = null, maxNestedArrays: Int? = null, - maxWaitingHandlers: Int? = null, - password: String? = null, protocolNegotiation: Boolean? = null, - role: RedisRole? = null): RedisSentinelConnectOptions = io.vertx.redis.client.RedisSentinelConnectOptions().apply { + password: String? = null, + endpoints: Iterable? = null, + connectionStrings: Iterable? = null, + maxWaitingHandlers: Int? = null, + role: RedisRole? = null, + masterName: String? = null, + connectionString: String? = null): RedisSentinelConnectOptions = io.vertx.redis.client.RedisSentinelConnectOptions().apply { - if (connectionString != null) { - this.setConnectionString(connectionString) + if (maxNestedArrays != null) { + this.setMaxNestedArrays(maxNestedArrays) } - if (connectionStrings != null) { - for (item in connectionStrings) { - this.addConnectionString(item) - } + if (protocolNegotiation != null) { + this.setProtocolNegotiation(protocolNegotiation) + } + if (password != null) { + this.setPassword(password) } if (endpoints != null) { this.setEndpoints(endpoints.toList()) } - if (masterName != null) { - this.setMasterName(masterName) - } - if (maxNestedArrays != null) { - this.setMaxNestedArrays(maxNestedArrays) + if (connectionStrings != null) { + for (item in connectionStrings) { + this.addConnectionString(item) + } } if (maxWaitingHandlers != null) { this.setMaxWaitingHandlers(maxWaitingHandlers) } - if (password != null) { - this.setPassword(password) - } - if (protocolNegotiation != null) { - this.setProtocolNegotiation(protocolNegotiation) - } if (role != null) { this.setRole(role) } + if (masterName != null) { + this.setMasterName(masterName) + } + if (connectionString != null) { + this.setConnectionString(connectionString) + } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisStandaloneConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisStandaloneConnectOptions.kt index 1ab7a889..336f8f53 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisStandaloneConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/redis/client/RedisStandaloneConnectOptions.kt @@ -18,36 +18,36 @@ package io.vertx.kotlin.redis.client import io.vertx.redis.client.RedisStandaloneConnectOptions fun redisStandaloneConnectOptionsOf( - connectionString: String? = null, - connectionStrings: Iterable? = null, - endpoints: Iterable? = null, maxNestedArrays: Int? = null, - maxWaitingHandlers: Int? = null, + protocolNegotiation: Boolean? = null, password: String? = null, - protocolNegotiation: Boolean? = null): RedisStandaloneConnectOptions = io.vertx.redis.client.RedisStandaloneConnectOptions().apply { + endpoints: Iterable? = null, + connectionStrings: Iterable? = null, + maxWaitingHandlers: Int? = null, + connectionString: String? = null): RedisStandaloneConnectOptions = io.vertx.redis.client.RedisStandaloneConnectOptions().apply { - if (connectionString != null) { - this.setConnectionString(connectionString) + if (maxNestedArrays != null) { + this.setMaxNestedArrays(maxNestedArrays) } - if (connectionStrings != null) { - for (item in connectionStrings) { - this.addConnectionString(item) - } + if (protocolNegotiation != null) { + this.setProtocolNegotiation(protocolNegotiation) + } + if (password != null) { + this.setPassword(password) } if (endpoints != null) { this.setEndpoints(endpoints.toList()) } - if (maxNestedArrays != null) { - this.setMaxNestedArrays(maxNestedArrays) + if (connectionStrings != null) { + for (item in connectionStrings) { + this.addConnectionString(item) + } } if (maxWaitingHandlers != null) { this.setMaxWaitingHandlers(maxWaitingHandlers) } - if (password != null) { - this.setPassword(password) - } - if (protocolNegotiation != null) { - this.setProtocolNegotiation(protocolNegotiation) + if (connectionString != null) { + this.setConnectionString(connectionString) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/Record.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/Record.kt index bb6c8dfe..24d4b58f 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/Record.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/Record.kt @@ -27,8 +27,8 @@ import io.vertx.servicediscovery.Status * @param location Sets the json object describing the location of the service. By convention, this json object should contain the [io.vertx.servicediscovery.Record] entry. * @param metadata Gets the metadata attached to the record. * @param name Sets the name of the service. It can reflect the service name of the name of the provider. - * @param registration Sets the registration id. This method is called when the service is published. * @param status Sets the status of the service. When published, the status is set to. When withdrawn, the status is set to . + * @param registration Sets the registration id. This method is called when the service is published. * @param type Sets the type of service. * *

@@ -38,8 +38,8 @@ fun recordOf( location: io.vertx.core.json.JsonObject? = null, metadata: io.vertx.core.json.JsonObject? = null, name: String? = null, - registration: String? = null, status: Status? = null, + registration: String? = null, type: String? = null): Record = io.vertx.servicediscovery.Record().apply { if (location != null) { @@ -51,12 +51,12 @@ fun recordOf( if (name != null) { this.setName(name) } - if (registration != null) { - this.setRegistration(registration) - } if (status != null) { this.setStatus(status) } + if (registration != null) { + this.setRegistration(registration) + } if (type != null) { this.setType(type) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/types/HttpLocation.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/types/HttpLocation.kt index 3a0954ff..97c351e2 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/types/HttpLocation.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/servicediscovery/types/HttpLocation.kt @@ -23,8 +23,8 @@ import io.vertx.servicediscovery.types.HttpLocation * Represents the location of a HTTP endpoint. This object (its json representation) will be used as "location" in a * service record. * - * @param endpoint Sets the endpoint, which is the URL of the service. The endpoint is automatically computed when you use the other `setX` method. * @param host Sets the host. + * @param endpoint Sets the endpoint, which is the URL of the service. The endpoint is automatically computed when you use the other `setX` method. * @param port Sets the port * @param root Sets the path of the service (root) * @param ssl Sets whether or not the HTTP service is using https. @@ -33,18 +33,18 @@ import io.vertx.servicediscovery.types.HttpLocation * NOTE: This function has been automatically generated from the [io.vertx.servicediscovery.types.HttpLocation original] using Vert.x codegen. */ fun httpLocationOf( - endpoint: String? = null, host: String? = null, + endpoint: String? = null, port: Int? = null, root: String? = null, ssl: Boolean? = null): HttpLocation = io.vertx.servicediscovery.types.HttpLocation().apply { - if (endpoint != null) { - this.setEndpoint(endpoint) - } if (host != null) { this.setHost(host) } + if (endpoint != null) { + this.setEndpoint(endpoint) + } if (port != null) { this.setPort(port) } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/PoolOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/PoolOptions.kt index 01b373ca..ad01df86 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/PoolOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/PoolOptions.kt @@ -23,71 +23,71 @@ import java.util.concurrent.TimeUnit * * The options for configuring a connection pool. * - * @param connectionTimeout Set the amount of time a client will wait for a connection from the pool. If the time is exceeded without a connection available, an exception is provided. - * @param connectionTimeoutUnit Set the time unit of [io.vertx.sqlclient.PoolOptions] - * @param eventLoopSize Set the number of event-loop the pool use.

The default size is 0. - * @param idleTimeout Establish an idle timeout for pooled connections, a value of zero disables the idle timeout. - * @param idleTimeoutUnit Establish an idle timeout unit for pooled connections. - * @param maxLifetime Establish a max lifetime for pooled connections, a value of zero disables the maximum lifetime. - * @param maxLifetimeUnit Establish a max lifetime unit for pooled connections. * @param maxSize Set the maximum pool size * @param maxWaitQueueSize Set the maximum connection request allowed in the wait queue, any requests beyond the max size will result in an failure. If the value is set to a negative number then the queue will be unbounded. - * @param name Set the pool name, used when the pool shared, otherwise ignored. + * @param idleTimeoutUnit Establish an idle timeout unit for pooled connections. + * @param idleTimeout Establish an idle timeout for pooled connections, a value of zero disables the idle timeout. + * @param maxLifetimeUnit Establish a max lifetime unit for pooled connections. + * @param maxLifetime Establish a max lifetime for pooled connections, a value of zero disables the maximum lifetime. * @param poolCleanerPeriod 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. + * @param connectionTimeoutUnit Set the time unit of [io.vertx.sqlclient.PoolOptions] + * @param connectionTimeout Set the amount of time a client will wait for a connection from the pool. If the time is exceeded without a connection available, an exception is provided. * @param shared Set to true to share the pool.

There can be multiple shared pools distinguished by [io.vertx.sqlclient.PoolOptions], when no specific name is set, the [io.vertx.sqlclient.PoolOptions] is used. + * @param name Set the pool name, used when the pool shared, otherwise ignored. + * @param eventLoopSize Set the number of event-loop the pool use.

The default size is 0. * *

* NOTE: This function has been automatically generated from the [io.vertx.sqlclient.PoolOptions original] using Vert.x codegen. */ fun poolOptionsOf( - connectionTimeout: Int? = null, - connectionTimeoutUnit: TimeUnit? = null, - eventLoopSize: Int? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - maxLifetime: Int? = null, - maxLifetimeUnit: TimeUnit? = null, maxSize: Int? = null, maxWaitQueueSize: Int? = null, - name: String? = null, + idleTimeoutUnit: TimeUnit? = null, + idleTimeout: Int? = null, + maxLifetimeUnit: TimeUnit? = null, + maxLifetime: Int? = null, poolCleanerPeriod: Int? = null, - shared: Boolean? = null): PoolOptions = io.vertx.sqlclient.PoolOptions().apply { + connectionTimeoutUnit: TimeUnit? = null, + connectionTimeout: Int? = null, + shared: Boolean? = null, + name: String? = null, + eventLoopSize: Int? = null): PoolOptions = io.vertx.sqlclient.PoolOptions().apply { - if (connectionTimeout != null) { - this.setConnectionTimeout(connectionTimeout) + if (maxSize != null) { + this.setMaxSize(maxSize) } - if (connectionTimeoutUnit != null) { - this.setConnectionTimeoutUnit(connectionTimeoutUnit) + if (maxWaitQueueSize != null) { + this.setMaxWaitQueueSize(maxWaitQueueSize) } - if (eventLoopSize != null) { - this.setEventLoopSize(eventLoopSize) + if (idleTimeoutUnit != null) { + this.setIdleTimeoutUnit(idleTimeoutUnit) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) + if (maxLifetimeUnit != null) { + this.setMaxLifetimeUnit(maxLifetimeUnit) } if (maxLifetime != null) { this.setMaxLifetime(maxLifetime) } - if (maxLifetimeUnit != null) { - this.setMaxLifetimeUnit(maxLifetimeUnit) + if (poolCleanerPeriod != null) { + this.setPoolCleanerPeriod(poolCleanerPeriod) } - if (maxSize != null) { - this.setMaxSize(maxSize) + if (connectionTimeoutUnit != null) { + this.setConnectionTimeoutUnit(connectionTimeoutUnit) } - if (maxWaitQueueSize != null) { - this.setMaxWaitQueueSize(maxWaitQueueSize) + if (connectionTimeout != null) { + this.setConnectionTimeout(connectionTimeout) + } + if (shared != null) { + this.setShared(shared) } if (name != null) { this.setName(name) } - if (poolCleanerPeriod != null) { - this.setPoolCleanerPeriod(poolCleanerPeriod) - } - if (shared != null) { - this.setShared(shared) + if (eventLoopSize != null) { + this.setEventLoopSize(eventLoopSize) } } diff --git a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/SqlConnectOptions.kt b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/SqlConnectOptions.kt index 89211614..9fe2c0d3 100644 --- a/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/SqlConnectOptions.kt +++ b/vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/sqlclient/SqlConnectOptions.kt @@ -16,230 +16,63 @@ package io.vertx.kotlin.sqlclient import io.vertx.sqlclient.SqlConnectOptions -import io.netty.handler.logging.ByteBufFormat -import io.vertx.core.net.JdkSSLEngineOptions -import io.vertx.core.net.JksOptions -import io.vertx.core.net.OpenSSLEngineOptions -import io.vertx.core.net.PemKeyCertOptions -import io.vertx.core.net.PemTrustOptions -import io.vertx.core.net.PfxOptions -import io.vertx.core.net.ProxyOptions +import io.vertx.core.net.ClientSSLOptions import io.vertx.core.tracing.TracingPolicy -import java.util.concurrent.TimeUnit /** * A function providing a DSL for building [io.vertx.sqlclient.SqlConnectOptions] objects. * * Connect options for configuring [io.vertx.sqlclient.SqlConnection] or [io.vertx.sqlclient.Pool]. * - * @param activityLogDataFormat Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. - * @param applicationLayerProtocols Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. - * @param cachePreparedStatements Set whether prepared statements cache should be enabled. - * @param connectTimeout Set the connect timeout - * @param crlPaths Add a CRL path - * @param crlValues Add a CRL value - * @param database Specify the default database for the connection. - * @param enabledCipherSuites Add an enabled cipher suite, appended to the ordered suites. - * @param enabledSecureTransportProtocols Sets the list of enabled SSL/TLS protocols. * @param host Specify the host for connecting to the server. - * @param hostnameVerificationAlgorithm Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String - * @param idleTimeout Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] - * @param idleTimeoutUnit Set the idle timeout unit. If not specified, default is seconds. - * @param jdkSslEngineOptions - * @param keyCertOptions Set the key/cert options. - * @param keyStoreOptions Set the key/cert options in jks format, aka Java keystore. - * @param localAddress Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null. - * @param logActivity Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. - * @param metricsName Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. - * @param nonProxyHosts Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com. - * @param openSslEngineOptions - * @param password Specify the user password to be used for the authentication. - * @param pemKeyCertOptions Set the key/cert store options in pem format. - * @param pemTrustOptions Set the trust options in pem format - * @param pfxKeyCertOptions Set the key/cert options in pfx format. - * @param pfxTrustOptions Set the trust options in pfx format * @param port Specify the port for connecting to the server. + * @param user Specify the user account to be used for the authentication. + * @param password Specify the user password to be used for the authentication. + * @param database Specify the default database for the connection. + * @param cachePreparedStatements Set whether prepared statements cache should be enabled. * @param preparedStatementCacheMaxSize Set the maximum number of prepared statements that the connection will cache. * @param preparedStatementCacheSqlLimit Set the maximum length of prepared statement SQL string that the connection will cache.

This is an helper setting the [io.vertx.sqlclient.SqlConnectOptions]. * @param properties Set properties for this client, which will be sent to server at the connection start. - * @param proxyOptions Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. - * @param readIdleTimeout Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] - * @param receiveBufferSize Set the TCP receive buffer size + * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. * @param reconnectAttempts Set the value of reconnect attempts * @param reconnectInterval Set the reconnect interval - * @param registerWriteHandler Whether a write-handler should be registered on the [io.vertx.core.eventbus.EventBus].

Defaults to false. - * @param reuseAddress Set the value of reuse address - * @param reusePort Set the value of reuse port.

This is only supported by native transports. - * @param sendBufferSize Set the TCP send buffer size - * @param soLinger Set whether SO_linger keep alive is enabled - * @param ssl Set whether SSL/TLS is enabled - * @param sslEngineOptions Set to use SSL engine implementation to use. - * @param sslHandshakeTimeout Set the SSL handshake timeout, default time unit is seconds. - * @param sslHandshakeTimeoutUnit Set the SSL handshake timeout unit. If not specified, default is seconds. - * @param tcpCork Enable the TCP_CORK option - only with linux native transport. - * @param tcpFastOpen Enable the TCP_FASTOPEN option - only with linux native transport. - * @param tcpKeepAlive Set whether TCP keep alive is enabled - * @param tcpNoDelay Set whether TCP no delay is enabled - * @param tcpQuickAck Enable the TCP_QUICKACK option - only with linux native transport. - * @param tcpUserTimeout Sets the TCP_USER_TIMEOUT option - only with linux native transport. - * @param tracingPolicy Set the tracing policy for the client behavior when Vert.x has tracing enabled. - * @param trafficClass Set the value of traffic class - * @param trustAll Set whether all server certificates should be trusted - * @param trustOptions Set the trust options. - * @param trustStoreOptions Set the trust options in jks format, aka Java truststore - * @param useAlpn Set the ALPN usage. - * @param user Specify the user account to be used for the authentication. - * @param writeIdleTimeout Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use [io.vertx.core.net.NetClientOptions] + * @param sslOptions * *

* NOTE: This function has been automatically generated from the [io.vertx.sqlclient.SqlConnectOptions original] using Vert.x codegen. */ fun sqlConnectOptionsOf( - activityLogDataFormat: ByteBufFormat? = null, - applicationLayerProtocols: Iterable? = null, - cachePreparedStatements: Boolean? = null, - connectTimeout: Int? = null, - crlPaths: Iterable? = null, - crlValues: Iterable? = null, - database: String? = null, - enabledCipherSuites: Iterable? = null, - enabledSecureTransportProtocols: Iterable? = null, host: String? = null, - hostnameVerificationAlgorithm: String? = null, - idleTimeout: Int? = null, - idleTimeoutUnit: TimeUnit? = null, - jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, - keyCertOptions: io.vertx.core.net.KeyCertOptions? = null, - keyStoreOptions: io.vertx.core.net.JksOptions? = null, - localAddress: String? = null, - logActivity: Boolean? = null, - metricsName: String? = null, - nonProxyHosts: Iterable? = null, - openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, - password: String? = null, - pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, - pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, - pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, - pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, port: Int? = null, + user: String? = null, + password: String? = null, + database: String? = null, + cachePreparedStatements: Boolean? = null, preparedStatementCacheMaxSize: Int? = null, preparedStatementCacheSqlLimit: Int? = null, properties: Map? = null, - proxyOptions: io.vertx.core.net.ProxyOptions? = null, - readIdleTimeout: Int? = null, - receiveBufferSize: Int? = null, + tracingPolicy: TracingPolicy? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, - registerWriteHandler: Boolean? = null, - reuseAddress: Boolean? = null, - reusePort: Boolean? = null, - sendBufferSize: Int? = null, - soLinger: Int? = null, - ssl: Boolean? = null, - sslEngineOptions: io.vertx.core.net.SSLEngineOptions? = null, - sslHandshakeTimeout: Long? = null, - sslHandshakeTimeoutUnit: TimeUnit? = null, - tcpCork: Boolean? = null, - tcpFastOpen: Boolean? = null, - tcpKeepAlive: Boolean? = null, - tcpNoDelay: Boolean? = null, - tcpQuickAck: Boolean? = null, - tcpUserTimeout: Int? = null, - tracingPolicy: TracingPolicy? = null, - trafficClass: Int? = null, - trustAll: Boolean? = null, - trustOptions: io.vertx.core.net.TrustOptions? = null, - trustStoreOptions: io.vertx.core.net.JksOptions? = null, - useAlpn: Boolean? = null, - user: String? = null, - writeIdleTimeout: Int? = null): SqlConnectOptions = io.vertx.sqlclient.SqlConnectOptions().apply { + sslOptions: io.vertx.core.net.ClientSSLOptions? = null): SqlConnectOptions = io.vertx.sqlclient.SqlConnectOptions().apply { - if (activityLogDataFormat != null) { - this.setActivityLogDataFormat(activityLogDataFormat) - } - if (applicationLayerProtocols != null) { - this.setApplicationLayerProtocols(applicationLayerProtocols.toList()) - } - if (cachePreparedStatements != null) { - this.setCachePreparedStatements(cachePreparedStatements) - } - if (connectTimeout != null) { - this.setConnectTimeout(connectTimeout) - } - if (crlPaths != null) { - for (item in crlPaths) { - this.addCrlPath(item) - } - } - if (crlValues != null) { - for (item in crlValues) { - this.addCrlValue(item) - } - } - if (database != null) { - this.setDatabase(database) - } - if (enabledCipherSuites != null) { - for (item in enabledCipherSuites) { - this.addEnabledCipherSuite(item) - } - } - if (enabledSecureTransportProtocols != null) { - this.setEnabledSecureTransportProtocols(enabledSecureTransportProtocols.toSet()) - } if (host != null) { this.setHost(host) } - if (hostnameVerificationAlgorithm != null) { - this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) - } - if (idleTimeout != null) { - this.setIdleTimeout(idleTimeout) - } - if (idleTimeoutUnit != null) { - this.setIdleTimeoutUnit(idleTimeoutUnit) - } - if (jdkSslEngineOptions != null) { - this.setJdkSslEngineOptions(jdkSslEngineOptions) - } - if (keyCertOptions != null) { - this.setKeyCertOptions(keyCertOptions) - } - if (keyStoreOptions != null) { - this.setKeyStoreOptions(keyStoreOptions) - } - if (localAddress != null) { - this.setLocalAddress(localAddress) - } - if (logActivity != null) { - this.setLogActivity(logActivity) - } - if (metricsName != null) { - this.setMetricsName(metricsName) - } - if (nonProxyHosts != null) { - this.setNonProxyHosts(nonProxyHosts.toList()) + if (port != null) { + this.setPort(port) } - if (openSslEngineOptions != null) { - this.setOpenSslEngineOptions(openSslEngineOptions) + if (user != null) { + this.setUser(user) } if (password != null) { this.setPassword(password) } - if (pemKeyCertOptions != null) { - this.setPemKeyCertOptions(pemKeyCertOptions) - } - if (pemTrustOptions != null) { - this.setPemTrustOptions(pemTrustOptions) - } - if (pfxKeyCertOptions != null) { - this.setPfxKeyCertOptions(pfxKeyCertOptions) - } - if (pfxTrustOptions != null) { - this.setPfxTrustOptions(pfxTrustOptions) + if (database != null) { + this.setDatabase(database) } - if (port != null) { - this.setPort(port) + if (cachePreparedStatements != null) { + this.setCachePreparedStatements(cachePreparedStatements) } if (preparedStatementCacheMaxSize != null) { this.setPreparedStatementCacheMaxSize(preparedStatementCacheMaxSize) @@ -250,14 +83,8 @@ fun sqlConnectOptionsOf( if (properties != null) { this.setProperties(properties) } - if (proxyOptions != null) { - this.setProxyOptions(proxyOptions) - } - if (readIdleTimeout != null) { - this.setReadIdleTimeout(readIdleTimeout) - } - if (receiveBufferSize != null) { - this.setReceiveBufferSize(receiveBufferSize) + if (tracingPolicy != null) { + this.setTracingPolicy(tracingPolicy) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) @@ -265,74 +92,8 @@ fun sqlConnectOptionsOf( if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } - if (registerWriteHandler != null) { - this.setRegisterWriteHandler(registerWriteHandler) - } - if (reuseAddress != null) { - this.setReuseAddress(reuseAddress) - } - if (reusePort != null) { - this.setReusePort(reusePort) - } - if (sendBufferSize != null) { - this.setSendBufferSize(sendBufferSize) - } - if (soLinger != null) { - this.setSoLinger(soLinger) - } - if (ssl != null) { - this.setSsl(ssl) - } - if (sslEngineOptions != null) { - this.setSslEngineOptions(sslEngineOptions) - } - if (sslHandshakeTimeout != null) { - this.setSslHandshakeTimeout(sslHandshakeTimeout) - } - if (sslHandshakeTimeoutUnit != null) { - this.setSslHandshakeTimeoutUnit(sslHandshakeTimeoutUnit) - } - if (tcpCork != null) { - this.setTcpCork(tcpCork) - } - if (tcpFastOpen != null) { - this.setTcpFastOpen(tcpFastOpen) - } - if (tcpKeepAlive != null) { - this.setTcpKeepAlive(tcpKeepAlive) - } - if (tcpNoDelay != null) { - this.setTcpNoDelay(tcpNoDelay) - } - if (tcpQuickAck != null) { - this.setTcpQuickAck(tcpQuickAck) - } - if (tcpUserTimeout != null) { - this.setTcpUserTimeout(tcpUserTimeout) - } - if (tracingPolicy != null) { - this.setTracingPolicy(tracingPolicy) - } - if (trafficClass != null) { - this.setTrafficClass(trafficClass) - } - if (trustAll != null) { - this.setTrustAll(trustAll) - } - if (trustOptions != null) { - this.setTrustOptions(trustOptions) - } - if (trustStoreOptions != null) { - this.setTrustStoreOptions(trustStoreOptions) - } - if (useAlpn != null) { - this.setUseAlpn(useAlpn) - } - if (user != null) { - this.setUser(user) - } - if (writeIdleTimeout != null) { - this.setWriteIdleTimeout(writeIdleTimeout) + if (sslOptions != null) { + this.setSslOptions(sslOptions) } }