@Experimental public class CircuitBreakerFailoverBase extends java.lang.Object implements java.lang.AutoCloseable
Base class for CommandExecutor with built-in retry, circuit-breaker, and failover to another cluster/database endpoint. With this executor users can seamlessly failover to Disaster Recovery (DR), Backup, and Active-Active cluster(s) by using simple configuration which is passed through from Resilience4j - https://resilience4j.readme.io/docs
Modifier and Type | Field and Description |
---|---|
protected MultiClusterPooledConnectionProvider |
provider |
Constructor and Description |
---|
CircuitBreakerFailoverBase(MultiClusterPooledConnectionProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
clusterFailover(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
Functional interface wrapped in retry and circuit breaker logic to handle open circuit breaker failure scenarios
|
protected final MultiClusterPooledConnectionProvider provider
public CircuitBreakerFailoverBase(MultiClusterPooledConnectionProvider provider)
public void close()
close
in interface java.lang.AutoCloseable
protected void clusterFailover(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
Copyright © 2024. All rights reserved.