Class AllowsRetriesConnection

    • Constructor Detail

      • AllowsRetriesConnection

        public AllowsRetriesConnection()
        Default Constructor with the following default values.
        • connectionAttempts is -1
        • setConnectionWait is 60000
    • Method Detail

      • setConnectionAttempts

        public void setConnectionAttempts​(java.lang.Integer i)

        Sets the number of connection attempts to make. -1 means keep trying indefinitely.

        Parameters:
        i - the number of connection attempts to make
      • getConnectionAttempts

        public java.lang.Integer getConnectionAttempts()

        Returns the number of connection attempts to make.

        Returns:
        the number of connection attempts to make
      • connectionAttempts

        public int connectionAttempts()
      • connectionRetryInterval

        public long connectionRetryInterval()
        Returns the wait between connection attempts in milliseconds.
        Returns:
        the connection retry interval in ms.
      • logWarning

        protected boolean logWarning​(int attemptCount)
      • createLoggingStatement

        protected java.lang.String createLoggingStatement​(int attempt)
      • getConnectionRetryInterval

        public TimeInterval getConnectionRetryInterval()
      • setConnectionRetryInterval

        public void setConnectionRetryInterval​(TimeInterval interval)
        Set the interval between each retry attempt.
        Parameters:
        interval - the interval between each retry attempt.