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() |
String |
getHost() |
int |
getPort() |
default ConnectionFactory |
getPublisherConnectionFactory()
Return a separate connection factory for publishers (if implemented).
|
String |
getUsername() |
String |
getVirtualHost() |
default boolean |
isPublisherConfirms()
Return true if publisher confirms are enabled.
|
default boolean |
isPublisherReturns()
Return true if publisher returns are enabled.
|
default boolean |
isSimplePublisherConfirms()
Return true if simple publisher confirms are enabled.
|
boolean |
removeConnectionListener(ConnectionListener listener) |
Connection createConnection() throws AmqpException
AmqpException
String getHost()
int getPort()
String getVirtualHost()
String getUsername()
void addConnectionListener(ConnectionListener listener)
boolean removeConnectionListener(ConnectionListener listener)
void clearConnectionListeners()
@Nullable default ConnectionFactory getPublisherConnectionFactory()
default boolean isSimplePublisherConfirms()
default boolean isPublisherConfirms()
default boolean isPublisherReturns()