public interface AmqpConnectionFactory
Connection
instancesModifier and Type | Method and Description |
---|---|
boolean |
canConnectionOpen()
Check if the connection can or should be opened
|
void |
close(boolean feedStopped)
Close the AMQP connection
|
com.rabbitmq.client.Connection |
getConnection()
Returns a
Connection instance representing connection to the AMQP broker |
long |
getConnectionStarted()
Get the timestamp when the connection started
|
boolean |
isConnectionHealthy()
Check if the connection is currently alive
|
com.rabbitmq.client.Connection getConnection() throws IOException, TimeoutException, NoSuchAlgorithmException, KeyManagementException
Connection
instance representing connection to the AMQP brokerConnection
instance representing connection to the AMQP brokerIOException
- An error occurred while creating the connection instanceTimeoutException
- An error occurred while creating the connection instanceNoSuchAlgorithmException
- An error occurred while configuring the factory to use SSLKeyManagementException
- An error occurred while configuring the factory to use SSLvoid close(boolean feedStopped) throws IOException
feedStopped
- indication if feed was stoppedIOException
- if the connection couldn't be terminatedboolean isConnectionHealthy()
long getConnectionStarted()
boolean canConnectionOpen()
Copyright © 2016–2025. All rights reserved.