amqpConfig

Creates an AMQPConfig using a DSL builder.

Return

AMQPConfig instance configured with the provided block.

Parameters

block

The configuration block to apply to the AMQPConfigBuilder.


fun amqpConfig(urlString: String, tls: TLSConfig? = null, sniServerName: String? = null, timeout: Duration = AMQPConfig.Server.Defaults.timeout, connectionName: String = AMQPConfig.Server.Defaults.CONNECTION_NAME): AMQPConfig

Convenience function to create AMQPConfig from a URL string and key options.

Return

AMQPConfig instance configured from the URL and options.

Parameters

urlString

The URL string to create the configuration from.

tls

Optional TLS configuration.

sniServerName

Server name for TLS connection.

timeout

Optional connection timeout.

connectionName

Optional connection name.

Throws

if URL is invalid or scheme is not supported.


fun amqpConfig(url: Url, tls: TLSConfig? = null, sniServerName: String? = null, timeout: Duration = AMQPConfig.Server.Defaults.timeout, connectionName: String = AMQPConfig.Server.Defaults.CONNECTION_NAME): AMQPConfig

Convenience function to create AMQPConfig from a URL and key options.

Return

AMQPConfig instance configured from the URL and options.

Parameters

url

The URL to create the configuration from.

tls

Optional TLS configuration.

sniServerName

Server name for TLS connection.

timeout

Optional connection timeout.

connectionName

Optional connection name.

Throws

if URL scheme is not supported.