Package org.correomqtt.business.utils
Class ConnectionHolder
java.lang.Object
org.correomqtt.business.utils.ConnectionHolder
- All Implemented Interfaces:
ApplicationLifecycleObserver,BaseObserver
public class ConnectionHolder extends Object implements ApplicationLifecycleObserver
-
Method Summary
Modifier and Type Method Description CorreoMqttClientgetClient(String connectionId)ConnectionConfigDTOgetConfig(String connectionId)CorreoMqttConnectiongetConnection(String connectionId)Map<String,CorreoMqttConnection>getConnections()static ConnectionHoldergetInstance()List<ConnectionConfigDTO>getSortedConnections()booleanisConnectionUnused(ConnectionConfigDTO config)voidonShutdown()voidrefresh()
-
Method Details
-
getInstance
-
refresh
public void refresh() -
getConnection
-
getClient
-
getConfig
-
isConnectionUnused
-
getConnections
-
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfaceApplicationLifecycleObserver
-
getSortedConnections
-