Class BasicConnectionFactoryBuilder
- java.lang.Object
-
- interlok.rabbitmq.ConnectionFactoryBuilder
-
- interlok.rabbitmq.SimpleConnectionFactoryBuilder
-
- interlok.rabbitmq.BasicConnectionFactoryBuilder
-
@ComponentProfile(summary="Basic RabbitMQ Connection Builder", since="4.3.0") public class BasicConnectionFactoryBuilder extends SimpleConnectionFactoryBuilderA basic connection factory for RabbitMQ.Extends
SimpleConnectionFactoryBuilderand 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 toguest/guestwhich appears to be the RabbitMQ SDK defaults.
-
-
Constructor Summary
Constructors Constructor Description BasicConnectionFactoryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.rabbitmq.client.ConnectionFactorybuild()Build the connection factory.java.lang.StringgetPassword()The password.java.lang.StringgetUsername()The username used to connection to the broker.voidsetPassword(java.lang.String password)The password.voidsetUsername(java.lang.String username)The username used to connection to the broker.<T extends BasicConnectionFactoryBuilder>
TwithCredentials(java.lang.String u, java.lang.String p)-
Methods inherited from class interlok.rabbitmq.SimpleConnectionFactoryBuilder
getBrokerUrl, setBrokerUrl, withBrokerUrl
-
-
-
-
Method Detail
-
build
public com.rabbitmq.client.ConnectionFactory build() throws java.lang.ExceptionDescription copied from class:ConnectionFactoryBuilderBuild the connection factory.- Overrides:
buildin classSimpleConnectionFactoryBuilder- Throws:
java.lang.Exception
-
withCredentials
public <T extends BasicConnectionFactoryBuilder> T withCredentials(java.lang.String u, java.lang.String p)
-
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
guestwhich 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
guestwhich 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
guestwhich 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
guestwhich appears to be the RabbitMQ SDK default.
-
-