Interface ReconnectRuleConfig

    • Method Detail

      • getAction

        java.lang.String getAction()
        Returns:
        What action should be taken if an error occurs and that error matches the rule. Will either be null, empty string or one of 'reconnect' or 'error'. If null or empty, the engine that interprets the rule should use its default action.
      • getExceptionClass

        java.lang.String getExceptionClass()
        Returns:
        The Java class of exceptions to which this rule applies. If null or empty, the rule applies to all classes of exceptions.
      • getExceptionMessageRegExp

        java.lang.String getExceptionMessageRegExp()
        Returns:
        A regular expression that matches the messages of exceptions to which this rule applies. If null or empty, the rule applies to all exception messages.
      • validate

        void validate()
               throws java.lang.Exception
        Validate the contents of this reconnect rule.
        Throws:
        java.lang.Exception - If the reconnect action is neither null, an empty string, 'error' nor 'reconnect'. If the class definition of the exception class is not available to the JVM.