Interface ClusterRules
public interface ClusterRules
constant for Cluster fault-tolerant mode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringCall all providers by broadcast, call them one by one, and report an error if any one reports an errorstatic final Stringstatic final StringWhen fails, record failure requests and schedule for retry on a regular interval.static final StringExecute exactly once, which means this policy will throw an exception immediately in case of an invocation error.static final StringWhen invoke fails, log the initial error and retry other invokers (retry n times, which means at most n different invokers will be invoked)static final StringWhen invoke fails, log the error message and ignore this error by returning an empty Result.static final StringInvoke a specific number of invokers concurrently, usually used for demanding real-time operations, but need to waste more service resources.static final String
-
Field Details
-
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)- See Also:
-
FAIL_FAST
Execute exactly once, which means this policy will throw an exception immediately in case of an invocation error.- See Also:
-
FAIL_SAFE
When invoke fails, log the error message and ignore this error by returning an empty Result.- See Also:
-
FAIL_BACK
When fails, record failure requests and schedule for retry on a regular interval.- See Also:
-
FORKING
Invoke a specific number of invokers concurrently, usually used for demanding real-time operations, but need to waste more service resources.- See Also:
-
BROADCAST
Call all providers by broadcast, call them one by one, and report an error if any one reports an error- See Also:
-
AVAILABLE
- See Also:
-
MERGEABLE
- See Also:
-
EMPTY
- See Also:
-