Class FaultTolerance
java.lang.Object
io.helidon.faulttolerance.FaultTolerance
System-wide fault tolerance configuration and access to a customized sequence of fault tolerance handlers.
Fault tolerance provides the following features:
Bulkhead- limit number of parallel requests to a resourceCircuitBreaker- stop trying to request a failing resource until it becomes availableFallback- fall back to another supplier of result in case the usual one failsRetry- try to call a supplier again if invocation failsTimeout- time out a request if it takes too long
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder used for setting up a customized list of fault tolerance handlers.static classA builder used for fault tolerance handlers that require a specific type to be used, such asFallback. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfig key to enable metrics in Fault Tolerance. -
Method Summary
Modifier and TypeMethodDescriptionstatic FaultTolerance.Builderbuilder()A builder to configure a customized sequence of fault tolerance handlers.static <T> FaultTolerance.TypedBuilder<T> A typed builder to configure a customized sequence of fault tolerance handlers.
-
Field Details
-
FT_METRICS_DEFAULT_ENABLED
Config key to enable metrics in Fault Tolerance. This flag can be overridden by each FT command builder. See for exampleBulkheadConfigBlueprint.enableMetrics(). All metrics are disabled by default.- See Also:
-
-
Method Details
-
builder
A builder to configure a customized sequence of fault tolerance handlers.- Returns:
- a new builder
-
typedBuilder
A typed builder to configure a customized sequence of fault tolerance handlers.- Type Parameters:
T- type of result- Returns:
- a new builder
-