接口 ClusterRules


  • public interface ClusterRules
    constant for Cluster fault-tolerant mode
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static String AVAILABLE  
      static String BROADCAST
      Call all providers by broadcast, call them one by one, and report an error if any one reports an error
      static String EMPTY  
      static String FAIL_BACK
      When fails, record failure requests and schedule for retry on a regular interval.
      static String FAIL_FAST
      Execute exactly once, which means this policy will throw an exception immediately in case of an invocation error.
      static String FAIL_OVER
      When invoke fails, log the initial error and retry other invokers (retry n times, which means at most n different invokers will be invoked)
      static String FAIL_SAFE
      When invoke fails, log the error message and ignore this error by returning an empty Result.
      static String FORKING
      Invoke a specific number of invokers concurrently, usually used for demanding real-time operations, but need to waste more service resources.
      static String MERGEABLE  
    • 字段详细资料

      • FAIL_OVER

        static final String FAIL_OVER
        When invoke fails, log the initial error and retry other invokers (retry n times, which means at most n different invokers will be invoked)
        另请参阅:
        常量字段值
      • FAIL_FAST

        static final String FAIL_FAST
        Execute exactly once, which means this policy will throw an exception immediately in case of an invocation error.
        另请参阅:
        常量字段值
      • FAIL_SAFE

        static final String FAIL_SAFE
        When invoke fails, log the error message and ignore this error by returning an empty Result.
        另请参阅:
        常量字段值
      • FAIL_BACK

        static final String FAIL_BACK
        When fails, record failure requests and schedule for retry on a regular interval.
        另请参阅:
        常量字段值
      • FORKING

        static final String FORKING
        Invoke a specific number of invokers concurrently, usually used for demanding real-time operations, but need to waste more service resources.
        另请参阅:
        常量字段值
      • BROADCAST

        static final String BROADCAST
        Call all providers by broadcast, call them one by one, and report an error if any one reports an error
        另请参阅:
        常量字段值