public class ConnectionHolder extends Object
| Constructor and Description |
|---|
ConnectionHolder(com.rabbitmq.client.ConnectionFactory connectionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
com.rabbitmq.client.Channel |
createNewChannel() |
com.rabbitmq.client.Connection |
getConnection() |
@Inject public ConnectionHolder(com.rabbitmq.client.ConnectionFactory connectionFactory)
public com.rabbitmq.client.Connection getConnection()
throws IOException
IOExceptionpublic void closeConnection()
public com.rabbitmq.client.Channel createNewChannel()
throws IOException
IOExceptionCopyright © 2020 LeanIX GmbH. All rights reserved.