Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
Class CircuitBreakerConfig.BuilderBase.CircuitBreakerConfigImpl
java.lang.Object
io.helidon.faulttolerance.CircuitBreakerConfig.BuilderBase.CircuitBreakerConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<CircuitBreaker>
,CircuitBreakerConfig
,Supplier<CircuitBreaker>
- Enclosing class:
CircuitBreakerConfig.BuilderBase<BUILDER extends CircuitBreakerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CircuitBreakerConfig>
protected static class CircuitBreakerConfig.BuilderBase.CircuitBreakerConfigImpl
extends Object
implements CircuitBreakerConfig, Supplier<CircuitBreaker>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.faulttolerance.CircuitBreakerConfig
CircuitBreakerConfig.Builder, CircuitBreakerConfig.BuilderBase<BUILDER extends CircuitBreakerConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CircuitBreakerConfig> -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
CircuitBreakerConfigImpl
(CircuitBreakerConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
-
Field Details
-
DEFAULT_ERROR_RATIO
static final int DEFAULT_ERROR_RATIO- See Also:
-
DEFAULT_SUCCESS_THRESHOLD
static final int DEFAULT_SUCCESS_THRESHOLD- See Also:
-
DEFAULT_VOLUME
static final int DEFAULT_VOLUME- See Also:
-
-
Constructor Details
-
CircuitBreakerConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<CircuitBreaker>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<CircuitBreaker>
-
name
-
delay
-
errorRatio
public int errorRatio() -
volume
public int volume() -
successThreshold
public int successThreshold() -
executor
-
skipOn
-
applyOn
-
toString
-
equals
-
hashCode
public int hashCode()
-