public class CircuitBreakerFactory extends Object
This is a Factory class to create OciCircuitBreaker for OCI clients
Constructor and Description |
---|
CircuitBreakerFactory() |
Modifier and Type | Method and Description |
---|---|
static OciCircuitBreaker |
build(CircuitBreakerConfiguration cbConfig)
Creates OciCircuitBreaker a specialized
CircuitBreaker for OCI clients |
static OciCircuitBreaker |
build(CircuitBreakerConfiguration cbConfig,
Predicate<Throwable> recordExceptionPredicate)
Creates OciCircuitBreaker a specialized
CircuitBreaker for OCI clients |
public static OciCircuitBreaker build(CircuitBreakerConfiguration cbConfig)
Creates OciCircuitBreaker a specialized CircuitBreaker
for OCI clients
cbConfig
- Custom Oci CircuitBreaker configurationpublic static OciCircuitBreaker build(CircuitBreakerConfiguration cbConfig, Predicate<Throwable> recordExceptionPredicate)
Creates OciCircuitBreaker a specialized CircuitBreaker
for OCI clients
cbConfig
- Custom Oci CircuitBreaker configurationrecordExceptionPredicate
- Predicate which evaluates if an exception should be recorded
as a failureCopyright © 2016–2024. All rights reserved.