Package de.xima.fc.db

Class DatabaseMonitor

    • Constructor Detail

      • DatabaseMonitor

        public DatabaseMonitor()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • isConnected

        public static boolean isConnected()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the last known status of the database connection is connected. A check is run in a fixed interval. Use testConnection() to run a check now.
        Returns:
        true if the database connection is connected, false otherwise.
      • check

        public boolean check()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the database connection is healthy, i.e. whether the database is reachable.
        Returns:
        true if the database connection is healthy, false otherwise.
      • testConnection

        public static boolean testConnection()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the database connection is healthy, i.e. whether the database is reachable. In contrast with isConnected(), this method actually performs a check and tries to reach the database, instead of returning the current status.
        Returns:
        true if the database connection is healthy, false otherwise.
      • registerConnectionEstablishedListener

        public static void registerConnectionEstablishedListener​(IBaseNotificationListener listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • registerDisconnectedListener

        public static void registerDisconnectedListener​(IBaseNotificationListener listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • registerReconnectedListener

        public static void registerReconnectedListener​(IBaseNotificationListener listener)
        Deprecated, for removal: This API element is subject to removal in a future version.