Class BasicConnectionFactoryBuilder


  • @ComponentProfile(summary="Basic RabbitMQ Connection Builder",
                      since="4.3.0")
    public class BasicConnectionFactoryBuilder
    extends SimpleConnectionFactoryBuilder
    A basic connection factory for RabbitMQ.

    Extends SimpleConnectionFactoryBuilder and provides obfuscated password support. Both fields are entirely optional and you may still override the username and password via the URL. If the username and password are not explicitly specified then it may well default to guest/guest which appears to be the RabbitMQ SDK defaults.

    • Constructor Detail

      • BasicConnectionFactoryBuilder

        public BasicConnectionFactoryBuilder()
    • Method Detail

      • setUsername

        public void setUsername​(java.lang.String username)
        The username used to connection to the broker.

        If you do not explicitly override the user then it is likely to default to guest which appears to be the RabbitMQ SDK default.

      • getUsername

        public java.lang.String getUsername()
        The username used to connection to the broker.

        If you do not explicitly override the user then it is likely to default to guest which appears to be the RabbitMQ SDK default.

      • setPassword

        public void setPassword​(java.lang.String password)
        The password.

        If you do not explicitly override the password then it is likely to default to guest which appears to be the RabbitMQ SDK default.

      • getPassword

        public java.lang.String getPassword()
        The password.

        If you do not explicitly override the password then it is likely to default to guest which appears to be the RabbitMQ SDK default.