public interface ConnectionFactory
Connections
.
NOTE: The Rabbit API contains a ConnectionFactory class (same name).
Modifier and Type | Method and Description |
---|---|
void |
addConnectionListener(ConnectionListener listener) |
void |
clearConnectionListeners() |
Connection |
createConnection() |
java.lang.String |
getHost() |
int |
getPort() |
default ConnectionFactory |
getPublisherConnectionFactory()
Return a separate connection factory for publishers (if implemented).
|
java.lang.String |
getUsername() |
java.lang.String |
getVirtualHost() |
boolean |
removeConnectionListener(ConnectionListener listener) |
Connection createConnection() throws AmqpException
AmqpException
java.lang.String getHost()
int getPort()
java.lang.String getVirtualHost()
java.lang.String getUsername()
void addConnectionListener(ConnectionListener listener)
boolean removeConnectionListener(ConnectionListener listener)
void clearConnectionListeners()
@Nullable default ConnectionFactory getPublisherConnectionFactory()