AmqpConfiguration
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AmqpConfiguration.type
Members list
Type members
Classlikes
Configuration settings for connecting to a RabbitMQ server.
Configuration settings for connecting to a RabbitMQ server.
Value parameters
- host
-
The hostname of the RabbitMQ server. Must be a valid hostname.
- password
-
The password for authentication. Must contain printable ASCII characters only and be up to 255 characters long.
- port
-
The port number of the RabbitMQ server. Must be in the range 0 to 65535.
- ssl
-
Whether to use SSL for the connection. Defaults to
false
. - username
-
The username for authentication. Must be between 3 and 30 characters and can contain alphanumeric characters, dots, underscores, and hyphens.
- virtualHost
-
The virtual host to connect to. Defaults to an empty string. If set, must be a valid virtual host name.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Types
Value members
Concrete methods
Constructs a validated RabbitMQ configuration object.
Constructs a validated RabbitMQ configuration object.
Value parameters
- host
-
The hostname of the RabbitMQ server.
- password
-
The password for authentication.
- port
-
The port number of the RabbitMQ server.
- ssl
-
Whether to use SSL for the connection. Defaults to
false
. - username
-
The username for authentication.
- virtualHost
-
The virtual host to connect to.
Attributes
- Returns
-
A ValidationResult containing a
RabbitMQConfig
object if all fields are valid, or a list of validation errors otherwise.
Extensions
Extensions
Converts the RabbitMQ configuration into a URI string suitable for connection.
Converts the RabbitMQ configuration into a URI string suitable for connection.
Attributes
- Returns
-
A URI string of the format:
amqp[s]://username:password@host:port[/encodedVirtualHost]
. The scheme will beamqps
if SSL is enabled, otherwiseamqp
. The virtual host will be URL-encoded if specified and not/
.