Class BasicConnectionFactoryBuilder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.rabbitmq.client.ConnectionFactorybuild()Build the connection factory.The password.The username used to connection to the broker.voidsetPassword(String password) The password.voidsetUsername(String username) The username used to connection to the broker.<T extends BasicConnectionFactoryBuilder>
TwithCredentials(String u, String p) Methods inherited from class interlok.rabbitmq.SimpleConnectionFactoryBuilder
getBrokerUrl, setBrokerUrl, withBrokerUrl
-
Constructor Details
-
BasicConnectionFactoryBuilder
public BasicConnectionFactoryBuilder()
-
-
Method Details
-
build
Description copied from class:ConnectionFactoryBuilderBuild the connection factory.- Overrides:
buildin classSimpleConnectionFactoryBuilder- Throws:
Exception
-
withCredentials
-
setUsername
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
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
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
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.
-